You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cz...@apache.org on 2013/05/22 15:50:30 UTC

[10/41] git commit: removed adobe copyright header

removed adobe copyright header


Project: http://git-wip-us.apache.org/repos/asf/flex-flexunit/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-flexunit/commit/0f812e35
Tree: http://git-wip-us.apache.org/repos/asf/flex-flexunit/tree/0f812e35
Diff: http://git-wip-us.apache.org/repos/asf/flex-flexunit/diff/0f812e35

Branch: refs/heads/makeFlexUnitApacheReady
Commit: 0f812e359b7d250ce0ddbcbb246ac153b8482f0c
Parents: 4a6e50f
Author: cyrill.zadra <cy...@gmail.com>
Authored: Sat May 18 12:11:30 2013 +0800
Committer: cyrill.zadra <cy...@gmail.com>
Committed: Sat May 18 12:11:30 2013 +0800

----------------------------------------------------------------------
 .../flexUnit1/framework/AllFrameworkTests.as       |   31 +--
 .../flexUnit1/framework/AsynchronousTestCase.as    |  162 +++++++++++-
 .../framework/AsynchronousValueDispatcher.as       |   61 ++++-
 .../flexUnit1/framework/ErrorTestCase.as           |   25 ++-
 .../flexUnit1/framework/FailureTestCase.as         |    3 +-
 .../framework/SetupErrorTearDownTestCase.as        |    3 +-
 .../flexUnit1/framework/SetupErrorTestCase.as      |    3 +-
 .../flexUnit1/framework/SuccessTestCase.as         |    3 +-
 .../flexUnit1/framework/TearDownErrorTestCase.as   |    3 +-
 .../flexUnit1/framework/TearDownTestCase.as        |    3 +-
 .../flexUnit1/framework/TestAssert.as              |   31 +--
 .../flexUnit1/framework/TestAsynchronous.as        |    3 +-
 .../flexUnit1/framework/TestEventfulTestCase.as    |   29 --
 .../flexUnit1/framework/TestTestCase.as            |  219 ++++++++++++++-
 .../flexUnit1/framework/TestTestListener.as        |    3 +-
 .../flexUnit1/framework/ValueEvent.as              |    3 +-
 .../flexUnit1/framework/AllFrameworkTests.as       |   31 +--
 .../flexUnit1/framework/AsynchronousTestCase.as    |  162 +++++++++++-
 .../framework/AsynchronousValueDispatcher.as       |   61 ++++-
 .../flexUnit1/framework/ErrorTestCase.as           |   25 ++-
 .../flexUnit1/framework/FailureTestCase.as         |    3 +-
 .../framework/SetupErrorTearDownTestCase.as        |    3 +-
 .../flexUnit1/framework/SetupErrorTestCase.as      |    3 +-
 .../flexUnit1/framework/SuccessTestCase.as         |    3 +-
 .../flexUnit1/framework/TearDownErrorTestCase.as   |    3 +-
 .../flexUnit1/framework/TearDownTestCase.as        |    3 +-
 .../flexUnit1/framework/TestAssert.as              |   31 +--
 .../flexUnit1/framework/TestAsynchronous.as        |    3 +-
 .../flexUnit1/framework/TestEventfulTestCase.as    |   29 --
 .../flexUnit1/framework/TestTestCase.as            |  219 ++++++++++++++-
 .../flexUnit1/framework/TestTestListener.as        |    3 +-
 .../flexUnit1/framework/ValueEvent.as              |    3 +-
 .../src/org/flexunit/flexui/TestRunnerBase.mxml    |    2 +-
 .../org/flexunit/flexui/controls/FlexUnitLabels.as |   29 --
 .../org/flexunit/flexui/controls/LeftHandSide.mxml |   29 +--
 .../flexunit/flexui/controls/RightHandSide.mxml    |   29 +--
 .../src/org/flexunit/flexui/controls/Title.mxml    |   27 --
 .../flexunit/flexui/controls/left/FilterArea.mxml  |   29 +--
 .../flexui/controls/left/TestCasesTree.mxml        |   29 +--
 .../flexui/controls/left/events/SearchBarEvent.as  |   28 --
 .../itemRenderer/TestResultTreeItemRenderer.as     |   28 --
 .../flexui/controls/right/RunningTests.mxml        |   27 --
 .../controls/right/SelectedTestCaseForm.mxml       |   29 +--
 .../flexui/controls/right/StackTraceContainer.mxml |   27 --
 .../flexui/controls/right/TestsComplete.mxml       |   29 +--
 .../org/flexunit/flexui/data/AbstractRowData.as    |   28 --
 .../org/flexunit/flexui/data/FilterTestsModel.as   |   28 --
 .../src/org/flexunit/flexui/data/TestCaseData.as   |   28 --
 .../flexunit/flexui/data/TestFunctionRowData.as    |   28 --
 .../flexui/data/TestRunnerBasePresentationModel.as |   28 --
 .../flexui/data/filter/AllTestFunctionStatus.as    |   28 --
 .../flexui/data/filter/EmptyTestFunctionStatus.as  |   28 --
 .../flexui/data/filter/ErrorTestFunctionStatus.as  |   28 --
 .../flexui/data/filter/ITestFunctionStatus.as      |   28 --
 .../flexui/data/filter/TestfFunctionStatuses.as    |   28 --
 ...nnerBasePresentationModelProperyChangedEvent.as |   28 --
 .../flexunit/flexui/event/TestsCompleteEvent.as    |   28 --
 .../flexunit/flexui/patterns/AbstractPattern.as    |   28 --
 .../flexui/patterns/AssertContainedPattern.as      |   28 --
 .../flexui/patterns/AssertEqualsPattern.as         |   28 --
 .../flexui/patterns/AssertEventOcurredPattern.as   |   28 --
 .../flexunit/flexui/patterns/AssertMatchPattern.as |   28 --
 .../flexui/patterns/AssertNoMatchPattern.as        |   28 --
 .../flexui/patterns/AssertNotContainedPattern.as   |   28 --
 .../flexui/patterns/AssertNotNullPattern.as        |   28 --
 .../flexui/patterns/AssertNotUndefinedPattern.as   |   28 --
 .../flexunit/flexui/patterns/AssertNullPattern.as  |   28 --
 .../flexui/patterns/AssertUndefinedPattern.as      |   28 --
 .../flexui/patterns/FailAsyncCallPattern.as        |   28 --
 69 files changed, 933 insertions(+), 1251 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/0f812e35/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/AllFrameworkTests.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/AllFrameworkTests.as b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/AllFrameworkTests.as
index 5130393..37422bc 100644
--- a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/AllFrameworkTests.as
+++ b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/AllFrameworkTests.as
@@ -1,33 +1,4 @@
-/*
-	Copyright (c) 2008. Adobe Systems Incorporated.
-   All rights reserved.
-
-   Redistribution and use in source and binary forms, with or without
-   modification, are permitted provided that the following conditions are met:
-
-     * Redistributions of source code must retain the above copyright notice,
-       this list of conditions and the following disclaimer.
-     * Redistributions in binary form must reproduce the above copyright notice,
-       this list of conditions and the following disclaimer in the documentation
-       and/or other materials provided with the distribution.
-     * Neither the name of Adobe Systems Incorporated nor the names of its
-       contributors may be used to endorse or promote products derived from this
-       software without specific prior written permission.
-
-   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-   POSSIBILITY OF SUCH DAMAGE.
-*/
-
-package flexUnitTests.flexUnit1.framework
+package flexUnitTests.flexUnit1.framework
 {
 
    import flexunit.framework.TestSuite;

http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/0f812e35/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/AsynchronousTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/AsynchronousTestCase.as b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/AsynchronousTestCase.as
index b2fb01e..1ef7756 100644
--- a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/AsynchronousTestCase.as
+++ b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/AsynchronousTestCase.as
@@ -1,3 +1,159 @@
-/*
	Copyright (c) 2008. Adobe Systems Incorporated.
   All rights reserved.

   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright notice,
       this list of conditions and the following disclaimer.
     * Redistributions in binary form must reproduce the above copyright notice,
       this list of conditions and the following disclaimer in the documentation
       and/or other materials provided with the distribution.
     * Neither the name of Adobe Systems Incorporated nor the names of its
       contributors may be used to endorse or promote products derived from this
       software without specific prior written permission.

   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   IMPLIED WARRANTIES OF MERCHANTAB
 ILITY AND FITNESS FOR A PARTICULAR PURPOSE
   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   POSSIBILITY OF SUCH DAMAGE.
*/

package flexUnitTests.flexUnit1.framework
{

   import flexunit.framework.*;
   
   public class AsynchronousTestCase extends TestCase
   {   
       public function AsynchronousTestCase(name : String)
       {
           super(name);
       }
   
       override public function setUp() : void
       {
           dispatcher = new AsynchronousValueDispatcher();
       }
   
       public functi
 on testInTimePass() : void
       {
           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1));
           dispatcher.dispatchValue(VALUE_1, TIME_PASS);
       }
   
       public function testInTimeFail() : void
       {
           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1));
           dispatcher.dispatchValue(VALUE_2, TIME_PASS);
       }
   
       public function testInTimeError() : void
       {
           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1));
           dispatcher.dispatchError(TIME_PASS);
       }
   
       public function testTooLatePass() : void
       {
           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1));
           dispatcher.dispatchValue(VALUE_1, TIME_FAIL);
       }
   
       public function testTooLateFail() : void
       {
           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1));
   
         dispatcher.dispatchValue(VALUE_2, TIME_FAIL);
       }
   
       public function testTooLateError() : void
       {
           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1));
           dispatcher.dispatchError(TIME_FAIL);
       }
   
       public function handleValue(event : ValueEvent, expected : String) : void
       {
           var actual : String = event.value;
           Assert.assertEquals(expected, actual);
       }
   
-   
-       public function testSecondInTimePass() : void
       {
           dispatcher.addEventListener("value", addAsync(handleFirstValueThenPassInTime, TIME_SYNC, VALUE_1));
           dispatcher.dispatchValue(VALUE_1, TIME_PASS);
       }
   
       public function handleFirstValueThenPassInTime(event : ValueEvent, expected : String) : void
       {
           var actual : String = event.value;
           Assert.assertEquals(expected, actual);
           addAsync(handleValue, TIME_SYNC, VALUE_2);
           dispatcher.dispatchValue(VALUE_2, TIME_PASS);
       }
   
       public function testSecondInTimeFail() : void
       {
           dispatcher.addEventListener("value", addAsync(handleFirstValueThenFailInTime, TIME_SYNC, VALUE_1));
           dispatcher.dispatchValue(VALUE_1, TIME_PASS);
       }
   
       public function handleFirstValueThenFailInTime(event : ValueEvent, expected : String) : void
       {
           var actual : String = event.value;
           Assert.assertEqu
 als(expected, actual);
           addAsync(handleValue, TIME_SYNC, VALUE_2);
           dispatcher.dispatchValue(VALUE_1, TIME_PASS);
       }
   
       public function testSecondTooLatePass() : void
       {
           dispatcher.addEventListener("value", addAsync(handleFirstValueThenPassTooLate, TIME_SYNC, VALUE_1));
           dispatcher.dispatchValue(VALUE_1, TIME_PASS);
       }
   
       public function handleFirstValueThenPassTooLate(event : ValueEvent, expected : String) : void
       {
           var actual : String = event.value;
           Assert.assertEquals(expected, actual);
           addAsync(handleValue, TIME_SYNC, VALUE_2);
           dispatcher.dispatchValue(VALUE_2, TIME_FAIL);
       }
   
       public function testSecondTooLateFail() : void
       {
           dispatcher.addEventListener("value", addAsync(handleFirstValueThenFailTooLate, TIME_SYNC, VALUE_1));
           dispatcher.dispatchValue(VALUE_1, TIME_PASS);
       }
   
       public function handleF
 irstValueThenFailTooLate(event : ValueEvent, expected : String) : void
       {
           var actual : String = event.value;
           Assert.assertEquals(expected, actual);
           addAsync(handleValue, TIME_SYNC, VALUE_2);
           dispatcher.dispatchValue(VALUE_1, TIME_FAIL);
       }
   
       public function testTimeoutFunctionPass() : void
       {
           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1, handleTimeoutPass));
           dispatcher.dispatchValue(VALUE_1, TIME_FAIL);
       }
   
       public function handleTimeoutPass(expected : String) : void
       {
           //do nothing, this should turn into a pass
       }
   
       public function testTimeoutFunctionFail() : void
       {
           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1, handleTimeoutFail));
           dispatcher.dispatchValue(VALUE_1, TIME_FAIL);
       }
   
       public function handleTimeoutFail(expected : String) : 
 void
       {
           fail("async method not called in time");
       }
   
       public function testNotReallyAsynchronousPass() : void
       {
           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1, handleValue));
           dispatcher.dispatchValue(VALUE_1, 0);
       }
   
       public function testNotReallyAsynchronousFail() : void
       {
           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1, handleValue));
           dispatcher.dispatchValue(VALUE_2, 0);
       }
   
       private var dispatcher : AsynchronousValueDispatcher;
   
       private static var VALUE_1 : String = "value1";
       private static var VALUE_2 : String = "value2";
       public static var TIME_PASS : int = 50;
       public static var TIME_FAIL : int = 250;
       public static var TIME_SYNC : int = 100;
   }
}
\ No newline at end of file
+package flexUnitTests.flexUnit1.framework
+{
+
+   import flexunit.framework.*;
+   
+   public class AsynchronousTestCase extends TestCase
+   {   
+       public function AsynchronousTestCase(name : String)
+       {
+           super(name);
+       }
+   
+       override public function setUp() : void
+       {
+           dispatcher = new AsynchronousValueDispatcher();
+       }
+   
+       public function testInTimePass() : void
+       {
+           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1));
+           dispatcher.dispatchValue(VALUE_1, TIME_PASS);
+       }
+   
+       public function testInTimeFail() : void
+       {
+           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1));
+           dispatcher.dispatchValue(VALUE_2, TIME_PASS);
+       }
+   
+       public function testInTimeError() : void
+       {
+           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1));
+           dispatcher.dispatchError(TIME_PASS);
+       }
+   
+       public function testTooLatePass() : void
+       {
+           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1));
+           dispatcher.dispatchValue(VALUE_1, TIME_FAIL);
+       }
+   
+       public function testTooLateFail() : void
+       {
+           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1));
+           dispatcher.dispatchValue(VALUE_2, TIME_FAIL);
+       }
+   
+       public function testTooLateError() : void
+       {
+           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1));
+           dispatcher.dispatchError(TIME_FAIL);
+       }
+   
+       public function handleValue(event : ValueEvent, expected : String) : void
+       {
+           var actual : String = event.value;
+           Assert.assertEquals(expected, actual);
+       }
+   
+   
+       public function testSecondInTimePass() : void
+       {
+           dispatcher.addEventListener("value", addAsync(handleFirstValueThenPassInTime, TIME_SYNC, VALUE_1));
+           dispatcher.dispatchValue(VALUE_1, TIME_PASS);
+       }
+   
+       public function handleFirstValueThenPassInTime(event : ValueEvent, expected : String) : void
+       {
+           var actual : String = event.value;
+           Assert.assertEquals(expected, actual);
+           addAsync(handleValue, TIME_SYNC, VALUE_2);
+           dispatcher.dispatchValue(VALUE_2, TIME_PASS);
+       }
+   
+       public function testSecondInTimeFail() : void
+       {
+           dispatcher.addEventListener("value", addAsync(handleFirstValueThenFailInTime, TIME_SYNC, VALUE_1));
+           dispatcher.dispatchValue(VALUE_1, TIME_PASS);
+       }
+   
+       public function handleFirstValueThenFailInTime(event : ValueEvent, expected : String) : void
+       {
+           var actual : String = event.value;
+           Assert.assertEquals(expected, actual);
+           addAsync(handleValue, TIME_SYNC, VALUE_2);
+           dispatcher.dispatchValue(VALUE_1, TIME_PASS);
+       }
+   
+       public function testSecondTooLatePass() : void
+       {
+           dispatcher.addEventListener("value", addAsync(handleFirstValueThenPassTooLate, TIME_SYNC, VALUE_1));
+           dispatcher.dispatchValue(VALUE_1, TIME_PASS);
+       }
+   
+       public function handleFirstValueThenPassTooLate(event : ValueEvent, expected : String) : void
+       {
+           var actual : String = event.value;
+           Assert.assertEquals(expected, actual);
+           addAsync(handleValue, TIME_SYNC, VALUE_2);
+           dispatcher.dispatchValue(VALUE_2, TIME_FAIL);
+       }
+   
+       public function testSecondTooLateFail() : void
+       {
+           dispatcher.addEventListener("value", addAsync(handleFirstValueThenFailTooLate, TIME_SYNC, VALUE_1));
+           dispatcher.dispatchValue(VALUE_1, TIME_PASS);
+       }
+   
+       public function handleFirstValueThenFailTooLate(event : ValueEvent, expected : String) : void
+       {
+           var actual : String = event.value;
+           Assert.assertEquals(expected, actual);
+           addAsync(handleValue, TIME_SYNC, VALUE_2);
+           dispatcher.dispatchValue(VALUE_1, TIME_FAIL);
+       }
+   
+       public function testTimeoutFunctionPass() : void
+       {
+           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1, handleTimeoutPass));
+           dispatcher.dispatchValue(VALUE_1, TIME_FAIL);
+       }
+   
+       public function handleTimeoutPass(expected : String) : void
+       {
+           //do nothing, this should turn into a pass
+       }
+   
+       public function testTimeoutFunctionFail() : void
+       {
+           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1, handleTimeoutFail));
+           dispatcher.dispatchValue(VALUE_1, TIME_FAIL);
+       }
+   
+       public function handleTimeoutFail(expected : String) : void
+       {
+           fail("async method not called in time");
+       }
+   
+       public function testNotReallyAsynchronousPass() : void
+       {
+           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1, handleValue));
+           dispatcher.dispatchValue(VALUE_1, 0);
+       }
+   
+       public function testNotReallyAsynchronousFail() : void
+       {
+           dispatcher.addEventListener("value", addAsync(handleValue, TIME_SYNC, VALUE_1, handleValue));
+           dispatcher.dispatchValue(VALUE_2, 0);
+       }
+   
+       private var dispatcher : AsynchronousValueDispatcher;
+   
+       private static var VALUE_1 : String = "value1";
+       private static var VALUE_2 : String = "value2";
+       public static var TIME_PASS : int = 50;
+       public static var TIME_FAIL : int = 250;
+       public static var TIME_SYNC : int = 100;
+   }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/0f812e35/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/AsynchronousValueDispatcher.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/AsynchronousValueDispatcher.as b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/AsynchronousValueDispatcher.as
index 071e7c1..d1e60c1 100644
--- a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/AsynchronousValueDispatcher.as
+++ b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/AsynchronousValueDispatcher.as
@@ -1,3 +1,58 @@
-/*
-	Copyright (c) 2008. Adobe Systems Incorporated.
   All rights reserved.

   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright notice,
       this list of conditions and the following disclaimer.
     * Redistributions in binary form must reproduce the above copyright notice,
       this list of conditions and the following disclaimer in the documentation
       and/or other materials provided with the distribution.
     * Neither the name of Adobe Systems Incorporated nor the names of its
       contributors may be used to endorse or promote products derived from this
       software without specific prior written permission.

   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   IMPLIED WARRANTIES OF MERCHANTABILI
 TY AND FITNESS FOR A PARTICULAR PURPOSE
   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   POSSIBILITY OF SUCH DAMAGE.
-*/

package flexUnitTests.flexUnit1.framework
{
   import flash.events.Event;
   import flash.events.EventDispatcher;
   
   import flash.utils.Timer;
   
   public class AsynchronousValueDispatcher extends EventDispatcher
   {
       public function AsynchronousValueDispatcher()
       {
           timer = new Timer(100, 1);
           timer.addEventListener("timer", timeout);
       }
   
       public function dispatchValue(value : String, time : int) : void
       {
           this.value = value;
           if (time > 0)
           {
               //BUG 114824 WORKAROUND - This bug is marked as fixed, but removing
               //the workaround causes the unit tests to fail. Need to look into this.
               timer = new Timer(time, 1);
               timer.addEventListener("timer", timeout);
               //END WORKAROUND
               //timer.delay = time;
               timer.start();
           }
           else
           {
               timeout(null);
           }
 
       }
   
       public function dispatchError(time : int) : void
       {
           dispatchValue("ERROR", time);
       }
   
   
       public function timeout(event : Event) : void
       {
           if (value == "ERROR")
           {
               throw new Error();
           }
           else
           {
               dispatchEvent(new ValueEvent(value));
           }
       }
   
       private var timer : Timer;
       private var value : String;
   
   }

}
+package flexUnitTests.flexUnit1.framework
+{
+   import flash.events.Event;
+   import flash.events.EventDispatcher;
+   
+   import flash.utils.Timer;
+   
+   public class AsynchronousValueDispatcher extends EventDispatcher
+   {
+       public function AsynchronousValueDispatcher()
+       {
+           timer = new Timer(100, 1);
+           timer.addEventListener("timer", timeout);
+       }
+   
+       public function dispatchValue(value : String, time : int) : void
+       {
+           this.value = value;
+           if (time > 0)
+           {
+               //BUG 114824 WORKAROUND - This bug is marked as fixed, but removing
+               //the workaround causes the unit tests to fail. Need to look into this.
+               timer = new Timer(time, 1);
+               timer.addEventListener("timer", timeout);
+               //END WORKAROUND
+               //timer.delay = time;
+               timer.start();
+           }
+           else
+           {
+               timeout(null);
+           }
+       }
+   
+       public function dispatchError(time : int) : void
+       {
+           dispatchValue("ERROR", time);
+       }
+   
+   
+       public function timeout(event : Event) : void
+       {
+           if (value == "ERROR")
+           {
+               throw new Error();
+           }
+           else
+           {
+               dispatchEvent(new ValueEvent(value));
+           }
+       }
+   
+       private var timer : Timer;
+       private var value : String;
+   
+   }
+
+}

http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/0f812e35/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/ErrorTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/ErrorTestCase.as b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/ErrorTestCase.as
index 0418636..d9ac0b7 100644
--- a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/ErrorTestCase.as
+++ b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/ErrorTestCase.as
@@ -1,5 +1,20 @@
-/*
-	Copyright (c) 2008. Adobe Systems Incorporated.
   All rights reserved.

   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright notice,
       this list of conditions and the following disclaimer.
     * Redistributions in binary form must reproduce the above copyright notice,
       this list of conditions and the following disclaimer in the documentation
       and/or other materials provided with the distribution.
     * Neither the name of Adobe Systems Incorporated nor the names of its
       contributors may be used to endorse or promote products derived from this
       software without specific prior written permission.

   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   IMPLIED WARRANTIES OF MERCHANTABILI
 TY AND FITNESS FOR A PARTICULAR PURPOSE
   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   POSSIBILITY OF SUCH DAMAGE.
-*/

package flexUnitTests.flexUnit1.framework
{
   import flexunit.framework.*;
   
   public class ErrorTestCase extends TestCase
   {
   
       public function ErrorTestCase(name : String):void
       {
           super(name);
       }
   
       public function throwError():void
       {
-          assertTrue( true ) 
          
-          throw new Error();
       }
   }
}
\ No newline at end of file
+package flexUnitTests.flexUnit1.framework
+{
+   import flexunit.framework.*;
+   
+   public class ErrorTestCase extends TestCase
+   {
+   
+       public function ErrorTestCase(name : String):void
+       {
+           super(name);
+       }
+   
+       public function throwError():void
+       {
+          assertTrue( true ) 
+          
+          throw new Error();
+       }
+   }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/0f812e35/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/FailureTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/FailureTestCase.as b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/FailureTestCase.as
index 064ce39..d22fe0d 100644
--- a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/FailureTestCase.as
+++ b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/FailureTestCase.as
@@ -1,2 +1 @@
-/*
Copyright (c) 2008. Adobe Systems Incorporated.
   All rights reserved.

   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright notice,
       this list of conditions and the following disclaimer.
     * Redistributions in binary form must reproduce the above copyright notice,
       this list of conditions and the following disclaimer in the documentation
       and/or other materials provided with the distribution.
     * Neither the name of Adobe Systems Incorporated nor the names of its
       contributors may be used to endorse or promote products derived from this
       software without specific prior written permission.

   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   IMPLIED WARRANTIES OF MERCHANTABI
 LITY AND FITNESS FOR A PARTICULAR PURPOSE
   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   POSSIBILITY OF SUCH DAMAGE.
-*/

package flexUnitTests.flexUnit1.framework
{
   import flexunit.framework.*;
   
   public class FailureTestCase extends TestCase
   {
       public function FailureTestCase(name : String):void
       {
           super(name);
       }
   
       public function testFailure():void
       {
           fail("intentional failure");
       }
   }
}
\ No newline at end of file
+package flexUnitTests.flexUnit1.framework
{
   import flexunit.framework.*;
   
   public class FailureTestCase extends TestCase
   {
       public function FailureTestCase(name : String):void
       {
           super(name);
       }
   
       public function testFailure():void
       {
           fail("intentional failure");
       }
   }
}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/0f812e35/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/SetupErrorTearDownTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/SetupErrorTearDownTestCase.as b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/SetupErrorTearDownTestCase.as
index 5985d10..f6b7ed5 100644
--- a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/SetupErrorTearDownTestCase.as
+++ b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/SetupErrorTearDownTestCase.as
@@ -1,2 +1 @@
-/*
Copyright (c) 2008. Adobe Systems Incorporated.
   All rights reserved.

   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright notice,
       this list of conditions and the following disclaimer.
     * Redistributions in binary form must reproduce the above copyright notice,
       this list of conditions and the following disclaimer in the documentation
       and/or other materials provided with the distribution.
     * Neither the name of Adobe Systems Incorporated nor the names of its
       contributors may be used to endorse or promote products derived from this
       software without specific prior written permission.

   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   IMPLIED WARRANTIES OF MERCHANTABI
 LITY AND FITNESS FOR A PARTICULAR PURPOSE
   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   POSSIBILITY OF SUCH DAMAGE.
-*/

package flexUnitTests.flexUnit1.framework
{
   import flexunit.framework.*;
   
   public class SetupErrorTearDownTestCase extends TearDownTestCase
   {
       public function SetupErrorTearDownTestCase(name : String)
       {
           super(name);
       }
   
       override public function setUp() : void
       {
           throw new Error();
       }
   
       public function testSuccess():void
       {
          assertTrue( true );
       }
   }
}
\ No newline at end of file
+package flexUnitTests.flexUnit1.framework
{
   import flexunit.framework.*;
   
   public class SetupErrorTearDownTestCase extends TearDownTestCase
   {
       public function SetupErrorTearDownTestCase(name : String)
       {
           super(name);
       }
   
       override public function setUp() : void
       {
           throw new Error();
       }
   
       public function testSuccess():void
       {
          assertTrue( true );
       }
   }
}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/0f812e35/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/SetupErrorTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/SetupErrorTestCase.as b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/SetupErrorTestCase.as
index 59ceeb9..53e77ee 100644
--- a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/SetupErrorTestCase.as
+++ b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/SetupErrorTestCase.as
@@ -1,2 +1 @@
-/*
Copyright (c) 2008. Adobe Systems Incorporated.
   All rights reserved.

   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright notice,
       this list of conditions and the following disclaimer.
     * Redistributions in binary form must reproduce the above copyright notice,
       this list of conditions and the following disclaimer in the documentation
       and/or other materials provided with the distribution.
     * Neither the name of Adobe Systems Incorporated nor the names of its
       contributors may be used to endorse or promote products derived from this
       software without specific prior written permission.

   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   IMPLIED WARRANTIES OF MERCHANTABI
 LITY AND FITNESS FOR A PARTICULAR PURPOSE
   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   POSSIBILITY OF SUCH DAMAGE.
-*/

package flexUnitTests.flexUnit1.framework
{
   import flexunit.framework.*;
   
   public class SetupErrorTestCase extends ErrorTestCase
   {
   
       public function SetupErrorTestCase(name : String)
       {
           super(name);
       }
   
       override public function setUp() : void
       {
           throw new Error();    
       }
   }
}
\ No newline at end of file
+package flexUnitTests.flexUnit1.framework
{
   import flexunit.framework.*;
   
   public class SetupErrorTestCase extends ErrorTestCase
   {
   
       public function SetupErrorTestCase(name : String)
       {
           super(name);
       }
   
       override public function setUp() : void
       {
           throw new Error();    
       }
   }
}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/0f812e35/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/SuccessTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/SuccessTestCase.as b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/SuccessTestCase.as
index f35bd45..d81f74d 100644
--- a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/SuccessTestCase.as
+++ b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/SuccessTestCase.as
@@ -1,2 +1 @@
-/*
   Copyright (c) 2008. Adobe Systems Incorporated.
   All rights reserved.

   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright notice,
       this list of conditions and the following disclaimer.
     * Redistributions in binary form must reproduce the above copyright notice,
       this list of conditions and the following disclaimer in the documentation
       and/or other materials provided with the distribution.
     * Neither the name of Adobe Systems Incorporated nor the names of its
       contributors may be used to endorse or promote products derived from this
       software without specific prior written permission.

   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   IMPLIED WARRANTIES OF MERCHANT
 ABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   POSSIBILITY OF SUCH DAMAGE.
-*/

package flexUnitTests.flexUnit1.framework
{
   import flexunit.framework.*;
   
   public class SuccessTestCase extends TestCase
   {
       public function SuccessTestCase(name : String):void
       {
           super(name);
       }
   
       public function testSuccess():void
       {
           expectedResult = true;
           
           assertTrue( expectedResult );
       }
   
       public var expectedResult : Boolean = false;
   }
}
\ No newline at end of file
+package flexUnitTests.flexUnit1.framework
{
   import flexunit.framework.*;
   
   public class SuccessTestCase extends TestCase
   {
       public function SuccessTestCase(name : String):void
       {
           super(name);
       }
   
       public function testSuccess():void
       {
           expectedResult = true;
           
           assertTrue( expectedResult );
       }
   
       public var expectedResult : Boolean = false;
   }
}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/0f812e35/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TearDownErrorTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TearDownErrorTestCase.as b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TearDownErrorTestCase.as
index 52826c4..2b98218 100644
--- a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TearDownErrorTestCase.as
+++ b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TearDownErrorTestCase.as
@@ -1,2 +1 @@
-/*
Copyright (c) 2008. Adobe Systems Incorporated.
   All rights reserved.

   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright notice,
       this list of conditions and the following disclaimer.
     * Redistributions in binary form must reproduce the above copyright notice,
       this list of conditions and the following disclaimer in the documentation
       and/or other materials provided with the distribution.
     * Neither the name of Adobe Systems Incorporated nor the names of its
       contributors may be used to endorse or promote products derived from this
       software without specific prior written permission.

   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   IMPLIED WARRANTIES OF MERCHANTABI
 LITY AND FITNESS FOR A PARTICULAR PURPOSE
   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   POSSIBILITY OF SUCH DAMAGE.
-*/

package flexUnitTests.flexUnit1.framework
{
   import flexunit.framework.*;
   
   public class TearDownErrorTestCase extends TearDownTestCase
   {
   
       public function TearDownErrorTestCase(name : String)
       {
           super(name);
       }
   
       public function testSuccess() : void
       {
          assertTrue( true );
       }
   
       override public function tearDown() : void
       {
           super.tearDown();
           throw new Error("tearDown");
       }
   }
}
\ No newline at end of file
+package flexUnitTests.flexUnit1.framework
{
   import flexunit.framework.*;
   
   public class TearDownErrorTestCase extends TearDownTestCase
   {
   
       public function TearDownErrorTestCase(name : String)
       {
           super(name);
       }
   
       public function testSuccess() : void
       {
          assertTrue( true );
       }
   
       override public function tearDown() : void
       {
           super.tearDown();
           throw new Error("tearDown");
       }
   }
}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/0f812e35/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TearDownTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TearDownTestCase.as b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TearDownTestCase.as
index fa7563f..4b52d56 100644
--- a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TearDownTestCase.as
+++ b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TearDownTestCase.as
@@ -1,2 +1 @@
-/*
   Copyright (c) 2008. Adobe Systems Incorporated.
   All rights reserved.

   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright notice,
       this list of conditions and the following disclaimer.
     * Redistributions in binary form must reproduce the above copyright notice,
       this list of conditions and the following disclaimer in the documentation
       and/or other materials provided with the distribution.
     * Neither the name of Adobe Systems Incorporated nor the names of its
       contributors may be used to endorse or promote products derived from this
       software without specific prior written permission.

   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   IMPLIED WARRANTIES OF MERCHANT
 ABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   POSSIBILITY OF SUCH DAMAGE.
-*/
package flexUnitTests.flexUnit1.framework
{
   import flexunit.framework.*;
   
   public class TearDownTestCase extends ErrorTestCase
   {
   
       public function TearDownTestCase(name : String)
       {
           super(name);
       }
   
       override public function tearDown() : void
       {
           expectedResult = true;
       }
   
       public var expectedResult : Boolean = false;
   }
}
\ No newline at end of file
+package flexUnitTests.flexUnit1.framework
{
   import flexunit.framework.*;
   
   public class TearDownTestCase extends ErrorTestCase
   {
   
       public function TearDownTestCase(name : String)
       {
           super(name);
       }
   
       override public function tearDown() : void
       {
           expectedResult = true;
       }
   
       public var expectedResult : Boolean = false;
   }
}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/0f812e35/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestAssert.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestAssert.as b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestAssert.as
index f0c5e02..447ff89 100644
--- a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestAssert.as
+++ b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestAssert.as
@@ -1,33 +1,4 @@
-/*
-   Copyright (c) 2008. Adobe Systems Incorporated.
-   All rights reserved.
-
-   Redistribution and use in source and binary forms, with or without
-   modification, are permitted provided that the following conditions are met:
-
-     * Redistributions of source code must retain the above copyright notice,
-       this list of conditions and the following disclaimer.
-     * Redistributions in binary form must reproduce the above copyright notice,
-       this list of conditions and the following disclaimer in the documentation
-       and/or other materials provided with the distribution.
-     * Neither the name of Adobe Systems Incorporated nor the names of its
-       contributors may be used to endorse or promote products derived from this
-       software without specific prior written permission.
-
-   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-   POSSIBILITY OF SUCH DAMAGE.
-*/
-
-package flexUnitTests.flexUnit1.framework
+package flexUnitTests.flexUnit1.framework
 {
    import flexunit.framework.*;
    

http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/0f812e35/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestAsynchronous.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestAsynchronous.as b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestAsynchronous.as
index 2092002..34ac69e 100644
--- a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestAsynchronous.as
+++ b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestAsynchronous.as
@@ -1,2 +1 @@
-/*
   Copyright (c) 2008. Adobe Systems Incorporated.
   All rights reserved.

   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright notice,
       this list of conditions and the following disclaimer.
     * Redistributions in binary form must reproduce the above copyright notice,
       this list of conditions and the following disclaimer in the documentation
       and/or other materials provided with the distribution.
     * Neither the name of Adobe Systems Incorporated nor the names of its
       contributors may be used to endorse or promote products derived from this
       software without specific prior written permission.

   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   IMPLIED WARRANTIES OF MERCHANT
 ABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   POSSIBILITY OF SUCH DAMAGE.
-*/
package flexUnitTests.flexUnit1.framework
{
   import flash.events.Event;
   import flash.events.TimerEvent;
   import flash.utils.Timer;
   
   import flexunit.framework.Assert;
   import flexunit.framework.TestCase;
   import flexunit.framework.TestResult;

   public class TestAsynchronous extends TestCase
   {
       public function TestAsynchronous(name : String = null)
       {
           super(name);
       }
   
       public function testInTimePass() : void
       {
           var test : TestCase = new AsynchronousTestCase("testInTimePass");
           var result : TestResult = test.run();
           initAsync(result, 1, 0, 0);
       }
   
       public function testInTimeFail() : void
       {
           var test : TestCase = new AsynchronousTestCase("testInTimeFail");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       //this test won't be run right now because the Error that is thrown propagates up and creates a 
 dialog
       //and if the dialog isn't closed in time it screws up the timer in here.  however if you run it manaully and close
       //the dialog in time it should be ok
       public function STOPtestInTimeError() : void
       {
           var test : TestCase = new AsynchronousTestCase("testInTimeError");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       public function testTooLatePass() : void
       {
           var test : TestCase = new AsynchronousTestCase("testTooLatePass");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       public function testTooLateFail() : void
       {
           var test : TestCase = new AsynchronousTestCase("testTooLateFail");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       //this test won't be run right now because the Error that is thrown propagates up and creates a dialog
  
      //and if the dialog isn't closed in time it screws up the timer in here.  however if you run it manaully and close
       //the dialog in time it should be ok
       public function STOPtestTooLateError() : void
       {
           var test : TestCase = new AsynchronousTestCase("testTooLateError");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       public function testSecondInTimePass() : void
       {
           var test : TestCase = new AsynchronousTestCase("testSecondInTimePass");
           var result : TestResult = test.run();
           initAsync(result, 1, 0, 0);
       }
   
       public function testSecondInTimeFail() : void
       {
           var test : TestCase = new AsynchronousTestCase("testSecondInTimeFail");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       public function testSecondTooLatePass() : void
       {
           var test : TestCase = new
  AsynchronousTestCase("testSecondTooLatePass");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       public function testSecondTooLateFail() : void
       {
           var test : TestCase = new AsynchronousTestCase("testSecondTooLateFail");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       public function testTimeoutFunctionPass() : void
       {
           var test : TestCase = new AsynchronousTestCase("testTimeoutFunctionPass");
           var result : TestResult = test.run();
           initAsync(result, 1, 0, 0);
       }
   
       public function testTimeoutFunctionFail() : void
       {
           var test : TestCase = new AsynchronousTestCase("testTimeoutFunctionFail");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       public function testNotReallyAsynchronousPass() : void
       {
           var test : Tes
 tCase = new AsynchronousTestCase("testNotReallyAsynchronousPass");
           var result : TestResult = test.run();
           initAsync(result, 1, 0, 0);
       }
   
       public function testNotReallyAsynchronousFail() : void
       {
           var test : TestCase = new AsynchronousTestCase("testNotReallyAsynchronousFail");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       public function shouldBeRun(event : Event, passedData : Object) : void
       {
           var result : TestResult = passedData.result;
           var expectedRun : int = passedData.expectedRun;
           var expectedFail : int = passedData.expectedFail;
           var expectedError : int = passedData.expectedError;
   
           Assert.assertEquals("result.runCount() is not correct", expectedRun, result.runCount());
           Assert.assertEquals("result.failureCount() is not correct",expectedFail, result.failureCount());
           Assert.assertEqu
 als("result.errorCount() is not correct", expectedError, result.errorCount());
       }
   
       private function initAsync(result : TestResult, expectedRun : int, expectedFail : int, expectedError : int):void
       {
           var data : Object = new Object();
           data.result = result;
           data.expectedRun = expectedRun;
           data.expectedFail = expectedFail;
           data.expectedError = expectedError;
           var t : Timer = new Timer(1000, 1);
           var helper : Function = addAsync(shouldBeRun, 1500, data, function():void { fail('shouldBeRun did not fire')} );
           t.addEventListener( TimerEvent.TIMER, helper );
           t.start();
       }
   }
}
\ No newline at end of file
+package flexUnitTests.flexUnit1.framework
{
   import flash.events.Event;
   import flash.events.TimerEvent;
   import flash.utils.Timer;
   
   import flexunit.framework.Assert;
   import flexunit.framework.TestCase;
   import flexunit.framework.TestResult;

   public class TestAsynchronous extends TestCase
   {
       public function TestAsynchronous(name : String = null)
       {
           super(name);
       }
   
       public function testInTimePass() : void
       {
           var test : TestCase = new AsynchronousTestCase("testInTimePass");
           var result : TestResult = test.run();
           initAsync(result, 1, 0, 0);
       }
   
       public function testInTimeFail() : void
       {
           var test : TestCase = new AsynchronousTestCase("testInTimeFail");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       //this test won't be run right now because the Error that is thrown propagates up and creates a dia
 log
       //and if the dialog isn't closed in time it screws up the timer in here.  however if you run it manaully and close
       //the dialog in time it should be ok
       public function STOPtestInTimeError() : void
       {
           var test : TestCase = new AsynchronousTestCase("testInTimeError");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       public function testTooLatePass() : void
       {
           var test : TestCase = new AsynchronousTestCase("testTooLatePass");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       public function testTooLateFail() : void
       {
           var test : TestCase = new AsynchronousTestCase("testTooLateFail");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       //this test won't be run right now because the Error that is thrown propagates up and creates a dialog
     
   //and if the dialog isn't closed in time it screws up the timer in here.  however if you run it manaully and close
       //the dialog in time it should be ok
       public function STOPtestTooLateError() : void
       {
           var test : TestCase = new AsynchronousTestCase("testTooLateError");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       public function testSecondInTimePass() : void
       {
           var test : TestCase = new AsynchronousTestCase("testSecondInTimePass");
           var result : TestResult = test.run();
           initAsync(result, 1, 0, 0);
       }
   
       public function testSecondInTimeFail() : void
       {
           var test : TestCase = new AsynchronousTestCase("testSecondInTimeFail");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       public function testSecondTooLatePass() : void
       {
           var test : TestCase = new As
 ynchronousTestCase("testSecondTooLatePass");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       public function testSecondTooLateFail() : void
       {
           var test : TestCase = new AsynchronousTestCase("testSecondTooLateFail");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       public function testTimeoutFunctionPass() : void
       {
           var test : TestCase = new AsynchronousTestCase("testTimeoutFunctionPass");
           var result : TestResult = test.run();
           initAsync(result, 1, 0, 0);
       }
   
       public function testTimeoutFunctionFail() : void
       {
           var test : TestCase = new AsynchronousTestCase("testTimeoutFunctionFail");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       public function testNotReallyAsynchronousPass() : void
       {
           var test : TestCa
 se = new AsynchronousTestCase("testNotReallyAsynchronousPass");
           var result : TestResult = test.run();
           initAsync(result, 1, 0, 0);
       }
   
       public function testNotReallyAsynchronousFail() : void
       {
           var test : TestCase = new AsynchronousTestCase("testNotReallyAsynchronousFail");
           var result : TestResult = test.run();
           initAsync(result, 1, 1, 0);
       }
   
       public function shouldBeRun(event : Event, passedData : Object) : void
       {
           var result : TestResult = passedData.result;
           var expectedRun : int = passedData.expectedRun;
           var expectedFail : int = passedData.expectedFail;
           var expectedError : int = passedData.expectedError;
   
           Assert.assertEquals("result.runCount() is not correct", expectedRun, result.runCount());
           Assert.assertEquals("result.failureCount() is not correct",expectedFail, result.failureCount());
           Assert.assertEquals
 ("result.errorCount() is not correct", expectedError, result.errorCount());
       }
   
       private function initAsync(result : TestResult, expectedRun : int, expectedFail : int, expectedError : int):void
       {
           var data : Object = new Object();
           data.result = result;
           data.expectedRun = expectedRun;
           data.expectedFail = expectedFail;
           data.expectedError = expectedError;
           var t : Timer = new Timer(1000, 1);
           var helper : Function = addAsync(shouldBeRun, 1500, data, function():void { fail('shouldBeRun did not fire')} );
           t.addEventListener( TimerEvent.TIMER, helper );
           t.start();
       }
   }
}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/0f812e35/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestEventfulTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestEventfulTestCase.as b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestEventfulTestCase.as
index 70f2d1e..e2831a0 100644
--- a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestEventfulTestCase.as
+++ b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestEventfulTestCase.as
@@ -1,32 +1,3 @@
-/*
-   Copyright (c) 2008. Adobe Systems Incorporated.
-   All rights reserved.
-
-   Redistribution and use in source and binary forms, with or without
-   modification, are permitted provided that the following conditions are met:
-
-     * Redistributions of source code must retain the above copyright notice,
-       this list of conditions and the following disclaimer.
-     * Redistributions in binary form must reproduce the above copyright notice,
-       this list of conditions and the following disclaimer in the documentation
-       and/or other materials provided with the distribution.
-     * Neither the name of Adobe Systems Incorporated nor the names of its
-       contributors may be used to endorse or promote products derived from this
-       software without specific prior written permission.
-
-   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-   POSSIBILITY OF SUCH DAMAGE.
-*/
-
 package flexUnitTests.flexUnit1.framework
 {
    import flash.events.Event;

http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/0f812e35/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestTestCase.as b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestTestCase.as
index a71525e..865e047 100644
--- a/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestTestCase.as
+++ b/FlexUnit4Test/src/flexUnitTests/flexUnit1/framework/TestTestCase.as
@@ -1,4 +1,215 @@
-/*
   Copyright (c) 2008. Adobe Systems Incorporated.
   All rights reserved.

   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright notice,
       this list of conditions and the following disclaimer.
     * Redistributions in binary form must reproduce the above copyright notice,
       this list of conditions and the following disclaimer in the documentation
       and/or other materials provided with the distribution.
     * Neither the name of Adobe Systems Incorporated nor the names of its
       contributors may be used to endorse or promote products derived from this
       software without specific prior written permission.

   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   IMPLIED WARRANTIES OF MERCH
 ANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   POSSIBILITY OF SUCH DAMAGE.
-*/
package flexUnitTests.flexUnit1.framework
{
   import flexunit.framework.*;
   
   public class TestTestCase extends TestCase
   {
       public function TestTestCase(name : String = null)
       {
           super(name);
       }
   
       public function testCaseToString() : void
       {
           Assert.assertEquals( "testCaseToString (flexUnitTests.flexUnit1.framework::TestTestCase)", toString() );
       }
   
   //------------------------------------------------------------------------------
   
       public function testError() : void
       {
           var error : ErrorTestCase = new ErrorTestCase("throwError");
           verifyError( error );
       }
   
   //------------------------------------------------------------------------------
   
       public function testRunAndTearDownFails() : void
       {
           var fails : TearDownErrorTestCase = new TearDownErrorTestCase("throwError");
           //MATT: because of the asynchronous support an error in tearDow
 n will now be an additional
           //error instead of overwriting the error that was thrown in the test run
           verifyError( fails, 2 );
           Assert.assertTrue( fails.expectedResult );
       }
   
   //------------------------------------------------------------------------------
   
       public function testSetupFails() : void
       {
           var fails : SetupErrorTestCase = new SetupErrorTestCase( "throwError" )
           verifyError( fails, 1 );
       }
   
   //------------------------------------------------------------------------------
   
       public function testSuccess() : void
       {
           var success : TestCase = new SuccessTestCase( "testSuccess" )
           verifySuccess( success );
       }
   
   //------------------------------------------------------------------------------
   
       public function testFailure() : void
       {
           var failure : TestCase = new FailureTestCase( "testFailure" )
           verifyFailure( fa
 ilure );
       }
   
   //------------------------------------------------------------------------------
   
       public function testTearDownAfterError() : void
       {
           var fails : TearDownTestCase = new TearDownTestCase("throwError");
           verifyError( fails );
           Assert.assertTrue( fails.expectedResult );
       }
   
   //------------------------------------------------------------------------------
   
       public function testTearDownFails() : void
       {
           var fails : TearDownErrorTestCase = new TearDownErrorTestCase( "testSuccess" )
           verifyError( fails );
       }
   
-   //------------------------------------------------------------------------------
   
-       public function testTearDownSetupFails() : void
       {
           var fails : SetupErrorTearDownTestCase = new SetupErrorTearDownTestCase("testSuccess");
           verifyError( fails );
           Assert.assertFalse( fails.expectedResult );
       }
   
   //------------------------------------------------------------------------------
   
       public function testWasRun() : void
       {
           var test : SuccessTestCase = new SuccessTestCase("testSuccess");
           test.run();
           Assert.assertTrue( test.expectedResult );
       }
   
   //------------------------------------------------------------------------------
   
       public function testExceptionRunningAndTearDown() : void
       {
           var t : TestCase = new TearDownErrorTestCase("testSuccess");
           var result : TestResult = new TestResult();
           t.runWithResult( result );
           var failure : TestFailure = TestFailure ( result.errorsIterator().next() );
           Asse
 rt.assertEquals( "tearDown", failure.thrownException().message );
       }
   
   //------------------------------------------------------------------------------
   
   //MATT: since the automatic test creation doesn't work anymore and we've verified other no-arg tests (in SuccessTestCase)
   //we should be cool without this one
   /*
       public function testNoArgTestCasePasses() : void
       {
           var t : Test = new TestSuite( NoArgTestCase );
           var result : TestResult = new TestResult();
           
           t.runWithResult(  result );
   
           Assert.assertEquals( 1, result.runCount() );
           Assert.assertEquals( 0, result.failureCount() );
           Assert.assertEquals( 0, result.errorCount() );
   
       }
   */
   
   //------------------------------------------------------------------------------
   
       public function testNamelessTestCase() : void
       {
           var test : TestCase = new TestCase();
           var result : TestRe
 sult = test.run();
           Assert.assertEquals( 
                     "result.runCount() is not correct", 
                     1, 
                     result.runCount() );
           Assert.assertEquals( 
                     "result.failureCount() is not correct", 
                     1, 
                     result.failureCount() );
           Assert.assertEquals( 
                     "result.errorCount() is not correct", 
                     0, 
                     result.errorCount()  );
           Assert.assertEquals( 
                     "No test method to run",
                     TestFailure( result.failuresIterator().next() ).thrownException().message );
           /*
           try
           {
               t.run();
               fail();
           }
           catch ( e: AssertionFailedError )
           {
           }
           */
       }
   
   //------------------------------------------------------------------------------
   
       private function ve
 rifyError( test : TestCase , errorCount : int = 1) : void
       {
           var result : TestResult = test.run();
           Assert.assertEquals( 
                     "result.runCount() is not correct", 
                     1, 
                     result.runCount() );
           Assert.assertEquals( 
                     "result.failureCount() is not correct", 
                     0, 
                     result.failureCount() );
           Assert.assertEquals( 
                     "result.errorCount() is not correct", 
                     errorCount, 
                     result.errorCount()  );
       }
       
   //------------------------------------------------------------------------------
   
       private function  verifyFailure( test : TestCase ) : void
       {
           var result : TestResult = test.run();
           Assert.assertEquals( 
                     "result.runCount() is not correct", 
                     1,  
                     result.runCount() )
 ;
           Assert.assertEquals( 
                     "result.failureCount() is not correct", 
                     1, 
                     result.failureCount()  );
           Assert.assertEquals(  
                     "result.errorCount() is not correct", 
                     0, 
                     result.errorCount() );
       }
   
   //------------------------------------------------------------------------------
   
       private function  verifySuccess( test : TestCase ) : void
       {
           var result : TestResult = test.run();
           Assert.assertEquals(  
                     "result.runCount() is not correct", 
                     1, 
                     result.runCount() );
           Assert.assertEquals( 
                     "result.failureCount() is not correct", 
                     0, 
                     result.failureCount() );
           Assert.assertEquals(   
                     "result.errorCount() is not correct", 
                     
 0, 
                     result.errorCount() );
       }
   }
}
\ No newline at end of file
+package flexUnitTests.flexUnit1.framework
+{
+   import flexunit.framework.*;
+   
+   public class TestTestCase extends TestCase
+   {
+       public function TestTestCase(name : String = null)
+       {
+           super(name);
+       }
+   
+       public function testCaseToString() : void
+       {
+           Assert.assertEquals( "testCaseToString (flexUnitTests.flexUnit1.framework::TestTestCase)", toString() );
+       }
+   
+   //------------------------------------------------------------------------------
+   
+       public function testError() : void
+       {
+           var error : ErrorTestCase = new ErrorTestCase("throwError");
+           verifyError( error );
+       }
+   
+   //------------------------------------------------------------------------------
+   
+       public function testRunAndTearDownFails() : void
+       {
+           var fails : TearDownErrorTestCase = new TearDownErrorTestCase("throwError");
+           //MATT: because of the asynchronous support an error in tearDown will now be an additional
+           //error instead of overwriting the error that was thrown in the test run
+           verifyError( fails, 2 );
+           Assert.assertTrue( fails.expectedResult );
+       }
+   
+   //------------------------------------------------------------------------------
+   
+       public function testSetupFails() : void
+       {
+           var fails : SetupErrorTestCase = new SetupErrorTestCase( "throwError" )
+           verifyError( fails, 1 );
+       }
+   
+   //------------------------------------------------------------------------------
+   
+       public function testSuccess() : void
+       {
+           var success : TestCase = new SuccessTestCase( "testSuccess" )
+           verifySuccess( success );
+       }
+   
+   //------------------------------------------------------------------------------
+   
+       public function testFailure() : void
+       {
+           var failure : TestCase = new FailureTestCase( "testFailure" )
+           verifyFailure( failure );
+       }
+   
+   //------------------------------------------------------------------------------
+   
+       public function testTearDownAfterError() : void
+       {
+           var fails : TearDownTestCase = new TearDownTestCase("throwError");
+           verifyError( fails );
+           Assert.assertTrue( fails.expectedResult );
+       }
+   
+   //------------------------------------------------------------------------------
+   
+       public function testTearDownFails() : void
+       {
+           var fails : TearDownErrorTestCase = new TearDownErrorTestCase( "testSuccess" )
+           verifyError( fails );
+       }
+   
+   //------------------------------------------------------------------------------
+   
+       public function testTearDownSetupFails() : void
+       {
+           var fails : SetupErrorTearDownTestCase = new SetupErrorTearDownTestCase("testSuccess");
+           verifyError( fails );
+           Assert.assertFalse( fails.expectedResult );
+       }
+   
+   //------------------------------------------------------------------------------
+   
+       public function testWasRun() : void
+       {
+           var test : SuccessTestCase = new SuccessTestCase("testSuccess");
+           test.run();
+           Assert.assertTrue( test.expectedResult );
+       }
+   
+   //------------------------------------------------------------------------------
+   
+       public function testExceptionRunningAndTearDown() : void
+       {
+           var t : TestCase = new TearDownErrorTestCase("testSuccess");
+           var result : TestResult = new TestResult();
+           t.runWithResult( result );
+           var failure : TestFailure = TestFailure ( result.errorsIterator().next() );
+           Assert.assertEquals( "tearDown", failure.thrownException().message );
+       }
+   
+   //------------------------------------------------------------------------------
+   
+   //MATT: since the automatic test creation doesn't work anymore and we've verified other no-arg tests (in SuccessTestCase)
+   //we should be cool without this one
+   /*
+       public function testNoArgTestCasePasses() : void
+       {
+           var t : Test = new TestSuite( NoArgTestCase );
+           var result : TestResult = new TestResult();
+           
+           t.runWithResult(  result );
+   
+           Assert.assertEquals( 1, result.runCount() );
+           Assert.assertEquals( 0, result.failureCount() );
+           Assert.assertEquals( 0, result.errorCount() );
+   
+       }
+   */
+   
+   //------------------------------------------------------------------------------
+   
+       public function testNamelessTestCase() : void
+       {
+           var test : TestCase = new TestCase();
+           var result : TestResult = test.run();
+           Assert.assertEquals( 
+                     "result.runCount() is not correct", 
+                     1, 
+                     result.runCount() );
+           Assert.assertEquals( 
+                     "result.failureCount() is not correct", 
+                     1, 
+                     result.failureCount() );
+           Assert.assertEquals( 
+                     "result.errorCount() is not correct", 
+                     0, 
+                     result.errorCount()  );
+           Assert.assertEquals( 
+                     "No test method to run",
+                     TestFailure( result.failuresIterator().next() ).thrownException().message );
+           /*
+           try
+           {
+               t.run();
+               fail();
+           }
+           catch ( e: AssertionFailedError )
+           {
+           }
+           */
+       }
+   
+   //------------------------------------------------------------------------------
+   
+       private function verifyError( test : TestCase , errorCount : int = 1) : void
+       {
+           var result : TestResult = test.run();
+           Assert.assertEquals( 
+                     "result.runCount() is not correct", 
+                     1, 
+                     result.runCount() );
+           Assert.assertEquals( 
+                     "result.failureCount() is not correct", 
+                     0, 
+                     result.failureCount() );
+           Assert.assertEquals( 
+                     "result.errorCount() is not correct", 
+                     errorCount, 
+                     result.errorCount()  );
+       }
+       
+   //------------------------------------------------------------------------------
+   
+       private function  verifyFailure( test : TestCase ) : void
+       {
+           var result : TestResult = test.run();
+           Assert.assertEquals( 
+                     "result.runCount() is not correct", 
+                     1,  
+                     result.runCount() );
+           Assert.assertEquals( 
+                     "result.failureCount() is not correct", 
+                     1, 
+                     result.failureCount()  );
+           Assert.assertEquals(  
+                     "result.errorCount() is not correct", 
+                     0, 
+                     result.errorCount() );
+       }
+   
+   //------------------------------------------------------------------------------
+   
+       private function  verifySuccess( test : TestCase ) : void
+       {
+           var result : TestResult = test.run();
+           Assert.assertEquals(  
+                     "result.runCount() is not correct", 
+                     1, 
+                     result.runCount() );
+           Assert.assertEquals( 
+                     "result.failureCount() is not correct", 
+                     0, 
+                     result.failureCount() );
+           Assert.assertEquals(   
+                     "result.errorCount() is not correct", 
+                     0, 
+                     result.errorCount() );
+       }
+   }
+}
\ No newline at end of file