- put example fluint test

git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@1221 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
Richard Alam 2009-04-08 21:15:42 +00:00
parent 7f09116ac1
commit 5f6f3ac715
6 changed files with 58 additions and 2 deletions

View File

@ -4,6 +4,7 @@
<compilerSourcePath>
<compilerSourcePathEntry kind="1" linkType="1" path="tests/integration"/>
<compilerSourcePathEntry kind="1" linkType="1" path="tests/unit"/>
<compilerSourcePathEntry kind="1" linkType="1" path="tests/suite"/>
</compilerSourcePath>
<libraryPath defaultLinkType="1">
<libraryPathEntry kind="4" path="">
@ -11,8 +12,8 @@
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/framework.swc" sourcepath="${PROJECT_FRAMEWORKS}/source" useDefaultLinkType="true"/>
</modifiedEntries>
<excludedEntries>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation_agent.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation_agent.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/qtp.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation_dmv.swc" useDefaultLinkType="false"/>
</excludedEntries>
@ -25,6 +26,7 @@
</sourceAttachmentPath>
</compiler>
<applications>
<application path="FlexTestRunner.mxml"/>
<application path="src/main.mxml"/>
<application path="MessagingUnitTests.mxml"/>
<application path="PresentationUnitTest.mxml"/>

Binary file not shown.

View File

@ -7,7 +7,8 @@
import org.bigbluebutton.modules.listeners.ListenersTests;
import org.bigbluebutton.main.ModulesProxyTests;
import org.bigbluebutton.main.BbbModuleManagerTests;
import org.bigbluebutton.common.RouterTest;
import flexunit.framework.TestSuite;
private function onCreationComplete():void{
bbbTestRunner.test = createSuite();
@ -20,6 +21,7 @@
// TODO: Add more tests here to test more classes
// by calling addTest as often as necessary
ts.addTest( RouterTest.suite() );
ts.addTest( BbbModuleManagerTests.suite() );
ts.addTest( ModulesProxyTests.suite() );
ts.addTest( ListenersTests.suite() );

View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:fluint="http://www.digitalprimates.net/2008/fluint"
layout="absolute"
creationComplete="startTestProcess(event)"
width="100%" height="100%">
<mx:Script>
<![CDATA[
import net.digitalprimates.fluint.unitTests.frameworkSuite.FrameworkSuite;
import org.bigbluebutton.suites.SampleSuite;
protected function startTestProcess( event:Event ) : void
{
var suiteArray:Array = new Array();
suiteArray.push( new FrameworkSuite() );
suiteArray.push(new SampleSuite());
testRunner.startTests( suiteArray );
}
]]>
</mx:Script>
<fluint:TestResultDisplay width="100%" height="100%" />
<fluint:TestRunner id="testRunner"/>
</mx:Application>

View File

@ -0,0 +1,12 @@
package org.bigbluebutton.suites
{
import org.bigbluebutton.common.TestCase1;
import net.digitalprimates.fluint.tests.TestSuite;
public class SampleSuite extends TestSuite
{
public function SampleSuite() {
addTestCase( new TestCase1() );
}
}
}

View File

@ -0,0 +1,12 @@
package org.bigbluebutton.common
{
import net.digitalprimates.fluint.tests.TestCase
public class TestCase1 extends TestCase
{
public function testMath():void {
var x:int = 5 + 3;
assertEquals( 8, x );
}
}
}