org.codehaus.mojo.javascript
Class JsUnitTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.jsunit.StandaloneTest
              extended by org.codehaus.mojo.javascript.JsUnitTestCase
All Implemented Interfaces:
junit.framework.Test

public class JsUnitTestCase
extends net.jsunit.StandaloneTest

Simple wrapper arround StandaloneTest to setup the jetty http server from Maven.

Author:
Nicolas De Loof

Field Summary
 
Fields inherited from class net.jsunit.StandaloneTest
MAX_SECONDS_TO_WAIT
 
Constructor Summary
JsUnitTestCase(java.lang.String name)
           
 
Method Summary
 void run(junit.framework.TestResult result)
          Override the junit run method to gather browser test result an run a fake junit test suite that replay the browser results.
static void setSharedServer(net.jsunit.JsUnitServer server)
           
static void setSuite(junit.framework.TestSuite suite)
           
 void setUp()
          
static junit.framework.Test suite()
           
 
Methods inherited from class net.jsunit.StandaloneTest
setServer, tearDown, testStandaloneRun
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsUnitTestCase

public JsUnitTestCase(java.lang.String name)
Parameters:
name -
Method Detail

setSharedServer

public static void setSharedServer(net.jsunit.JsUnitServer server)
Parameters:
server - the server to set

setUp

public void setUp()
           throws java.lang.Exception

Overrides:
setUp in class net.jsunit.StandaloneTest
Throws:
java.lang.Exception
See Also:
StandaloneTest.setUp()

run

public void run(junit.framework.TestResult result)
Override the junit run method to gather browser test result an run a fake junit test suite that replay the browser results.

Specified by:
run in interface junit.framework.Test
Overrides:
run in class junit.framework.TestCase
See Also:
TestCase.run(junit.framework.TestResult)

suite

public static junit.framework.Test suite()

setSuite

public static void setSuite(junit.framework.TestSuite suite)
Parameters:
suite - the suite to set


Copyright © 2011 SOFTEC sa. All Rights Reserved.