org.kuali.student.common.test.spring
Class ServiceTestClassRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.internal.runners.JUnit4ClassRunner
          extended by org.kuali.student.common.test.spring.ServiceTestClassRunner
All Implemented Interfaces:
org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class ServiceTestClassRunner
extends org.junit.internal.runners.JUnit4ClassRunner


Field Summary
private  org.mortbay.jetty.Server server
           
private  Class<?> testImplClass
           
 
Constructor Summary
ServiceTestClassRunner(Class<?> klass)
           
 
Method Summary
protected  Object createTest()
          Creates a client and injects it into the test class based on the @Client annotations
 void run(org.junit.runner.notification.RunNotifier notifier)
           
private  void startServer()
          Start a server based on the service Impl @WebService annotaions and the test class @
private  void stopServer()
           
 
Methods inherited from class org.junit.internal.runners.JUnit4ClassRunner
classAnnotations, filter, getDescription, getName, getTestClass, getTestMethods, invokeTestMethod, methodDescription, runMethods, sort, testAnnotations, testName, validate, wrapMethod
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testImplClass

private final Class<?> testImplClass

server

private org.mortbay.jetty.Server server
Constructor Detail

ServiceTestClassRunner

public ServiceTestClassRunner(Class<?> klass)
                       throws org.junit.internal.runners.InitializationError
Throws:
org.junit.internal.runners.InitializationError
Method Detail

createTest

protected Object createTest()
                     throws Exception
Creates a client and injects it into the test class based on the @Client annotations

Overrides:
createTest in class org.junit.internal.runners.JUnit4ClassRunner
Throws:
Exception

startServer

private void startServer()
Start a server based on the service Impl @WebService annotaions and the test class @


run

public void run(org.junit.runner.notification.RunNotifier notifier)
Overrides:
run in class org.junit.internal.runners.JUnit4ClassRunner

stopServer

private void stopServer()


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.