sprout-as2-bundle 0.1.27 → 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
data/lib/sprout/as2/version.rb
CHANGED
@@ -1,30 +1,30 @@
|
|
1
|
-
package <%= package_name %> {
|
2
1
|
|
3
|
-
|
2
|
+
import asunit.framework.TestCase;
|
3
|
+
import <%= full_class_name %>;
|
4
4
|
|
5
|
-
|
6
|
-
|
5
|
+
class <%= full_test_case_name %> extends TestCase {
|
6
|
+
private var className:String = "<%= package_name %>.<%= test_case_name %>";
|
7
|
+
private var <%= instance_name %>:<%= class_name %>;
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
9
|
+
public function <%= test_case_name %>(testMethod:String) {
|
10
|
+
super(testMethod);
|
11
|
+
}
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
public function setUp():Void {
|
14
|
+
super.setUp();
|
15
|
+
<%= instance_name %> = new <%= class_name %>();
|
16
|
+
}
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
public function tearDown():Void {
|
19
|
+
super.tearDown();
|
20
|
+
delete <%= instance_name %>;
|
21
|
+
}
|
21
22
|
|
22
|
-
|
23
|
-
|
24
|
-
|
23
|
+
public function testInstantiated():Void {
|
24
|
+
assertTrue("<%= instance_name %> instanceof <%= class_name %>", <%= instance_name %> instanceof <%= class_name %>);
|
25
|
+
}
|
25
26
|
|
26
|
-
|
27
|
-
|
28
|
-
}
|
27
|
+
public function testFailure():Void {
|
28
|
+
assertTrue("Failing test", false);
|
29
29
|
}
|
30
|
-
}
|
30
|
+
}
|