org.apache.wink.test.mock
Class SpringAwareTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.wink.test.mock.SpringAwareTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
SpringMockServletInvocationTest

public abstract class SpringAwareTestCase
extends junit.framework.TestCase

Loads Spring Context for the unit tests


Field Summary
protected  org.springframework.context.ApplicationContext applicationContext
           
protected  org.springframework.mock.web.MockServletContext servletContext
           
 
Constructor Summary
SpringAwareTestCase()
           
 
Method Summary
protected  java.util.List<java.lang.String> getAdditionalContextNames()
           
protected  java.lang.String getPackagePath()
           
protected  void setUp()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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
 

Field Detail

applicationContext

protected org.springframework.context.ApplicationContext applicationContext

servletContext

protected org.springframework.mock.web.MockServletContext servletContext
Constructor Detail

SpringAwareTestCase

public SpringAwareTestCase()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

getAdditionalContextNames

protected java.util.List<java.lang.String> getAdditionalContextNames()
Returns:
additional context, override to add more context files

getPackagePath

protected java.lang.String getPackagePath()


Copyright © 2009 The Apache Software Foundation. All Rights Reserved.