Class AbstractServerUITest

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.cactus.internal.AbstractCactusTestCase
org.apache.cactus.ServletTestCase
com.onenetwork.platform.tools.test.AbstractServerTest
com.onenetwork.platform.tools.test.ui.AbstractServerUITest
All Implemented Interfaces:
junit.framework.Test, org.apache.cactus.internal.CactusTestCase

public class AbstractServerUITest
extends AbstractServerTest
Base class for UI Tests which should execute inside the Platform server (via Cactus). This has the added advantage of making all server APIs available inside the UI test itself, easing data setup/teardown.

Like AbstractUITest, this will take a screenshot on any failed test. Please note that this only applies to the test method itself, not the setUp or tearDown methods.

  • Field Summary

    Fields inherited from class com.onenetwork.platform.tools.test.AbstractServerTest

    BASE_URL

    Fields inherited from class org.apache.cactus.ServletTestCase

    config, request, response, session
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected AbstractServerUITest()  
    protected AbstractServerUITest​(java.lang.String testName)  
  • Method Summary

    Modifier and Type Method Description
    void runBare()  
    protected void runTest()  

    Methods inherited from class com.onenetwork.platform.tools.test.AbstractServerTest

    runBareServer

    Methods inherited from class org.apache.cactus.ServletTestCase

    createProtocolHandler

    Methods inherited from class junit.framework.TestCase

    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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, setName, setUp, tearDown, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • runTest

      protected void runTest() throws java.lang.Throwable
      Overrides:
      runTest in class junit.framework.TestCase
      Throws:
      java.lang.Throwable
    • runBare

      public void runBare() throws java.lang.Throwable
      Overrides:
      runBare in class org.apache.cactus.internal.AbstractCactusTestCase
      Throws:
      java.lang.Throwable