Class IsolatedServerTest

All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class IsolatedServerTest
extends ServerTest
Server Test runner variant that sends separate execution requests for each test method.
By default, tests run on server side using default JUnit4 runner. However, this can be configured by annotating test class with @OnServerRunWith.

For example, to run theories test on server, use:
 @RunWith(IsolatedServerTest.class)
 @OnServerRunWith(Theories.class)
 public class MyTheoriesTest {
   ...
 }
 
Since:
20.0
See Also:
ServerTest
  • Constructor Details

    • IsolatedServerTest

      public IsolatedServerTest​(java.lang.Class<?> testClass, org.junit.runners.model.RunnerBuilder suiteBuilder) throws org.junit.runners.model.InitializationError
      Throws:
      org.junit.runners.model.InitializationError
  • Method Details

    • runOnClient

      public void runOnClient​(org.junit.runner.notification.RunNotifier notifier)
      Description copied from class: RemoteCapableRunner
      Invoked to run tests on the side of a client machine. Implementations are expected to not actually run tests when this method invoked, but instead send a test execution request(s) to remote server.
      Overrides:
      runOnClient in class ServerTest
      Parameters:
      notifier - client-side test run observer
      See Also:
      com.onenetwork.platform.tools.test.runner.ServerTest#runOnClient(org.junit.runner.notification.RunNotifier)