org.mule.example.webapp
Class JettyTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.mule.example.webapp.JettyTestCase
All Implemented Interfaces:
Test

public class JettyTestCase
extends TestCase

This tests runs in Maven's "integration-test" phase, after the .war has been built. It starts up the .war inside Jetty and runs tests against the Mule instance. Note that the MuleClient does not work in this case because we have no access to the MuleContext (which is inside the Jetty container).


Field Summary
static int JETTY_PORT
           
static String WEBAPP_CONTEXT_PATH
           
static String WEBAPP_WAR_FILE
           
 
Constructor Summary
JettyTestCase()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testSanity()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WEBAPP_WAR_FILE

public static final String WEBAPP_WAR_FILE
See Also:
Constant Field Values

WEBAPP_CONTEXT_PATH

public static final String WEBAPP_CONTEXT_PATH
See Also:
Constant Field Values

JETTY_PORT

public static final int JETTY_PORT
See Also:
Constant Field Values
Constructor Detail

JettyTestCase

public JettyTestCase()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class TestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class TestCase
Throws:
Exception

testSanity

public void testSanity()
                throws Exception
Throws:
Exception


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.