[israfil-mojo commit] r590 - in trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test: maven-flex2-actionscriptdep-test/...

3 views
Skip to first unread message

codesite...@google.com

unread,
Jan 11, 2008, 1:52:32 PM1/11/08
to israfil-...@googlegroups.com
Author: christianedwardgruber
Date: Fri Jan 11 10:52:22 2008
New Revision: 590

Added:
trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-actionscriptdep-test/src/main/flex/maven/plugin/test/code/dep/
trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-actionscriptdep-test/src/main/flex/maven/plugin/test/code/dep/ExampleInterface.as
trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-actionscriptdep-test/src/main/flex/maven/plugin/test/code/dep/ExampleInterfaceImplementation.as
trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-mxmldep-test/src/main/flex/maven/plugin/test/code/Main.as
trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-mxmldep-test/src/main/flex/maven/plugin/test/code/MyButton.as
Removed:
trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-actionscriptdep-test/src/main/flex/maven/plugin/test/code/ExampleInterface.as
trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-actionscriptdep-test/src/main/flex/maven/plugin/test/code/ExampleInterfaceImplementation.as
trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-mxmldep-test/src/main/flex/maven/plugin/test/code/ExampleInterface.as
trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-mxmldep-test/src/main/flex/maven/plugin/test/code/ExampleInterfaceImplementation.as
Modified:
trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-mxmldep-test/src/main/flex/Test.mxml

Log:
Re-work test cases so they fail when they're supposed to, and actually
are valid - especially around dependency and compiling of something meaningful.

Added: trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-actionscriptdep-test/src/main/flex/maven/plugin/test/code/dep/ExampleInterface.as
==============================================================================
--- (empty file)
+++
trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-actionscriptdep-test/src/main/flex/maven/plugin/test/code/dep/ExampleInterface.as
Fri Jan 11 10:52:22 2008
@@ -0,0 +1,8 @@
+package maven.plugin.test.code.dep {
+
+ public interface ExampleInterface {
+
+ function getStringVariable() : String;
+
+ }
+}
\ No newline at end of file

Added: trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-actionscriptdep-test/src/main/flex/maven/plugin/test/code/dep/ExampleInterfaceImplementation.as
==============================================================================
--- (empty file)
+++
trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-actionscriptdep-test/src/main/flex/maven/plugin/test/code/dep/ExampleInterfaceImplementation.as
Fri Jan 11 10:52:22 2008
@@ -0,0 +1,11 @@
+package maven.plugin.test.code.dep {
+
+ public class ExampleInterfaceImplementation implements
ExampleInterface {
+
+ public function getStringVariable() : String {
+ return "Hello world.";
+ }
+
+ }
+
+}
\ No newline at end of file

Modified: trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-mxmldep-test/src/main/flex/Test.mxml
==============================================================================
---
trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-mxmldep-test/src/main/flex/Test.mxml (original)
+++
trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-mxmldep-test/src/main/flex/Test.mxml
Fri Jan 11 10:52:22 2008
@@ -1,4 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
-<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
+<ex:Main
+ xmlns:mx="http://www.adobe.com/2006/mxml"
+ xmlns:ex="maven.plugin.test.code.*"
+ width="400" height="300">

-</mx:Canvas>
+ <ex:MyButton x="215" y="150" id="myButton" label="MyButton" />
+
+</ex:Main>

Added: trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-mxmldep-test/src/main/flex/maven/plugin/test/code/Main.as
==============================================================================
--- (empty file)
+++
trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-mxmldep-test/src/main/flex/maven/plugin/test/code/Main.as
Fri Jan 11 10:52:22 2008
@@ -0,0 +1,14 @@
+package maven.plugin.test.code {
+
+ import mx.core.Application;
+ import maven.plugin.test.code.dep.ExampleInterface;
+ import maven.plugin.test.code.dep.ExampleInterfaceImplementation;
+
+ public class Main extends Application {
+
+ public function Main():void {
+ var _example:ExampleInterface = new ExampleInterfaceImplementation();
+ }
+
+ }
+}
\ No newline at end of file

Added: trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-mxmldep-test/src/main/flex/maven/plugin/test/code/MyButton.as
==============================================================================
--- (empty file)
+++
trunk/maven-flex2-plugin/src/it/maven-flex2-dep-test/maven-flex2-mxmldep-test/src/main/flex/maven/plugin/test/code/MyButton.as
Fri Jan 11 10:52:22 2008
@@ -0,0 +1,18 @@
+package maven.plugin.test.code {
+
+ import mx.controls.Button;
+ import maven.plugin.test.code.dep.ExampleInterface;
+
+ public class MyButton extends Button {
+
+ private var _example:ExampleInterface;
+
+ public function setExample(example:ExampleInterface) : void {
+ _example = example;
+ }
+
+ public function getExample() : ExampleInterface { return
_example; }
+
+ }
+
+}
\ No newline at end of file

codesite...@google.com

unread,
Jan 11, 2008, 1:52:32 PM1/11/08
to israfil-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages