Permalink
Browse files

Added simple FlashBuilder test to ensure that it compiles

  • Loading branch information...
1 parent cb6c0b5 commit b793b15eb18783df65b9b6e14bb757c62bd2fd3f @lukebayes lukebayes committed Mar 26, 2011
@@ -1,19 +1,22 @@
package asunit.printers {
+ import asunit.framework.ITestFailure;
+ import asunit.framework.ITestWarning;
+ import asunit.framework.IResult;
+ import asunit.framework.IRunListener;
+ import asunit.framework.ITestSuccess;
+ import asunit.framework.Method;
+
+ import flash.events.Event;
+ import flash.events.IOErrorEvent;
+ import flash.events.SecurityErrorEvent;
+ import flash.utils.getQualifiedClassName;
+ import flash.net.XMLSocket;
- import asunit.errors.AssertionFailedError;
- import asunit.framework.Test;
- import asunit.framework.TestListener;
- import asunit.framework.TestResult;
- import flash.events.EventDispatcher;
- import flash.net.XMLSocket;
- import flash.utils.setTimeout;
- import flash.utils.Dictionary;
-
/**
* FlashBuilderPrinter should connect to the running Flash Builder test result
* view over an XMLSocket and send it test results as they accumulate.
*/
- public class FlashBuilderPrinter extends XMLResultPrinter {
+ public class FlashBuilderPrinter extends XMLPrinter {
protected var socket:XMLSocket;
@@ -62,7 +65,7 @@ package asunit.printers {
}
}
- protected function sendMessage(message:String):void {
+ override protected function sendMessage(message:String):void {
if (!socket.connected) {
messageQueue.push(message);
return;
@@ -28,6 +28,7 @@ package {
import asunit.framework.VisualTestCaseTest;
import asunit.printers.TextPrinterTest;
import asunit.printers.XMLPrinterTest;
+ import asunit.printers.FlashBuilderPrinterTest;
import asunit.runners.LegacyRunnerTest;
import asunit.runners.SuiteRunnerTest;
import asunit.runners.TestRunnerAsyncMethodTest;
@@ -62,7 +63,7 @@ package {
public var asunit_framework_TestIteratorSingleMethodTest:asunit.framework.TestIteratorSingleMethodTest;
public var asunit_framework_VisualTestCaseTest:asunit.framework.VisualTestCaseTest;
public var asunit_printers_TextPrinterTest:asunit.printers.TextPrinterTest;
- public var asunit_printers_XMLPrinterTest:asunit.printers.XMLPrinterTest;
+ public var asunit_printers_FlashBuilderPrinterTest:asunit.printers.FlashBuilderPrinterTest;
public var asunit_runners_LegacyRunnerTest:asunit.runners.LegacyRunnerTest;
public var asunit_runners_SuiteRunnerTest:asunit.runners.SuiteRunnerTest;
public var asunit_runners_TestRunnerAsyncMethodTest:asunit.runners.TestRunnerAsyncMethodTest;
@@ -0,0 +1,18 @@
+
+package asunit.printers {
+
+ import asunit.asserts.*;
+ import asunit.framework.TestCase;
+
+ public class FlashBuilderPrinterTest extends TestCase {
+
+ public function FlashBuilderPrinterTest(method:String=null) {
+ super(method);
+ }
+
+ private function testInstantiable():void {
+ var printer:FlashBuilderPrinter = new FlashBuilderPrinter();
+ }
+ }
+}
+

0 comments on commit b793b15

Please sign in to comment.