Permalink
Browse files

fixed tests

  • Loading branch information...
1 parent 8eb8c17 commit 0f0bec94b2f782c7fe3bb069ae6666350a9d0f5b @tjdavies tjdavies committed Feb 7, 2012
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<!-- This is an auto generated file and is not intended for modification. -->
-
-<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:s="library://ns.adobe.com/flex/spark"
- xmlns:mx="library://ns.adobe.com/flex/mx"
- xmlns:flexui="flexunit.flexui.*"
- minWidth="955" minHeight="600" creationComplete="onCreationComplete()">
- <fx:Script>
- <![CDATA[
- import com.tomseysdavies.ember.io.JsonSerialiserTest;
- import com.tomseysdavies.utils.VectorMapTest;
- import com.tomseysdavies.ember.io.EntityEncoderTest;
- import com.tomseysdavies.ember.io.ComponentEncoderTest;
- import com.tomseysdavies.ember.entitySystem.impl.NodeConfigurationTest;
- import com.tomseysdavies.ember.entitySystem.impl.EntityTest;
- import com.tomseysdavies.ember.io.ComponentConfigTests;
- import com.tomseysdavies.ember.entitySystem.impl.SystemsTest;
- import com.tomseysdavies.ember.entitySystem.impl.EntitySystemTest;
-
- public function currentRunTestSuite():Array
- {
- var testsToRun:Array = new Array();
- testsToRun.push(com.tomseysdavies.ember.entitySystem.impl.EntitySystemTest);
- testsToRun.push(com.tomseysdavies.ember.entitySystem.impl.SystemsTest);
- testsToRun.push(com.tomseysdavies.ember.io.ComponentConfigTests);
- testsToRun.push(com.tomseysdavies.ember.entitySystem.impl.EntityTest);
- testsToRun.push(com.tomseysdavies.ember.entitySystem.impl.NodeConfigurationTest);
- testsToRun.push(com.tomseysdavies.ember.io.ComponentEncoderTest);
- testsToRun.push(com.tomseysdavies.ember.io.EntityEncoderTest);
- testsToRun.push(com.tomseysdavies.utils.VectorMapTest);
- testsToRun.push(com.tomseysdavies.ember.io.JsonSerialiserTest);
- return testsToRun;
- }
-
-
- private function onCreationComplete():void
- {
- testRunner.runWithFlexUnit4Runner(currentRunTestSuite(), "Ember2");
- }
-
- ]]>
- </fx:Script>
- <fx:Declarations>
- <!-- Place non-visual elements (e.g., services, value objects) here -->
- </fx:Declarations>
- <flexui:FlexUnitTestRunnerUI id="testRunner">
- </flexui:FlexUnitTestRunnerUI>
-</s:Application>
View
@@ -0,0 +1,37 @@
+/**
+ * Created by IntelliJ IDEA.
+ * User: tom
+ * Date: 07/02/12
+ * Time: 09:27
+ * To change this template use File | Settings | File Templates.
+ */
+package {
+import com.tomseysdavies.ember.entitySystem.impl.NodeConfigurationTest;
+import com.tomseysdavies.ember.io.JsonSerialiserTest;
+import com.tomseysdavies.utils.VectorMapTest;
+
+import flexunit.framework.Test;
+
+import flexunit.framework.TestSuite;
+
+[Suite]
+[RunWith("org.flexunit.runners.Suite")]
+public class AllTests {
+
+
+ public var t1:com.tomseysdavies.ember.entitySystem.impl.EntitySystemTest;
+ public var t2:com.tomseysdavies.ember.entitySystem.impl.SystemsTest;
+ public var t3:com.tomseysdavies.ember.io.ComponentConfigTests;
+ public var t4:com.tomseysdavies.ember.entitySystem.impl.EntityTest;
+ public var t5:com.tomseysdavies.ember.entitySystem.impl.NodeConfigurationTest;
+ public var t6:com.tomseysdavies.ember.io.ComponentEncoderTest;
+ public var t7:com.tomseysdavies.ember.io.EntityEncoderTest;
+ public var t8:com.tomseysdavies.utils.VectorMapTest;
+ public var t9:com.tomseysdavies.ember.io.JsonSerialiserTest;
+
+
+
+
+
+}
+}
@@ -65,7 +65,7 @@ public class EntitySystemTest
var a:IEntity = system.create();
var b:IEntity = system.create();
- assertThat(system.getAll(), hasItem(a), hasItem(b));
+ assertTrue(system.getAll(), hasItem(a), hasItem(b));
}
[Test]

0 comments on commit 0f0bec9

Please sign in to comment.