org.springjson.test
Class TestBase

java.lang.Object
  extended by org.springjson.test.TestBase
Direct Known Subclasses:
AllwaysMatchingValueProcessorMatcherTest, AnnotationStreamJsonStringWriterTest, BugsTest, BugsTest, ComplexDefaultJsonStringWriterTest, ComplexJsonlibJsonStringWriterTest, ComplexSojoJsonStringWriterTest, ComplexXStreamJsonStringWriterTest, CustomEditorReferenceByXPathMarshallerTest, ExceptionMessageExceptionHandlerTest, FilteredJsonViewTest, HttpStatusErrorTest, IndexBindingJsonlibsonStringWriterTest, IndexBindingSojoJsonStringWriterTest, IndexBindingXStreamJsonStringWriterTest, JsonExceptionResolverTest, JsonlibCommandControllerTest, JsonlibControllerInterfaceImplTest, JsonlibJsonViewTest, JsonlibSimpleFormControllerTest, JsonViewWalkerInterceptorTest, KeepValuesSojoJsonStringWriterTest, KeepValuesXStreamStringWriterTest, MapGraphWalkerTest, ModelFlagErrorTest, OtherXStreamJsonStringWriterTest, SimpleCollectionJsonXStreamStringWriterTest, SimpleDefaultJsonStringWriterTest, SimpleJsonJsonlibStringWriterTest, SimpleJsonXStreamStringWriterTest, SimplePropertyFilterTest, SimpleSojoJsonStringWriterTest, SojoCommandControllerTest, SojoControllerInterfaceImplTest, SojoJsonViewTest, SojoJsonWriterConfiguratorTemplateTest, SojoSimpleFormControllerTest, StackTraceExceptionHandlerTest, XStreamCommandControllerTest, XStreamControllerInterfaceImplTest, XStreamJsonViewTest, XStreamSimpleFormControllerTest

public class TestBase
extends Object


Field Summary
protected static org.springframework.beans.factory.BeanFactory beanFactory
           
static String PATH_TO_CONTEXT_PATH
           
 
Constructor Summary
TestBase()
           
 
Method Summary
 net.sf.json.JSONObject assertEqualsJson(String expected, String actual)
           
static void cleanupTests()
           
protected static org.springframework.beans.factory.BeanFactory getBeanFactory()
           
protected  org.springframework.beans.factory.BeanFactory getBeanFactory(String pathToContextFile, Class clazz)
           
static void prepareTests()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATH_TO_CONTEXT_PATH

public static final String PATH_TO_CONTEXT_PATH
See Also:
Constant Field Values

beanFactory

protected static org.springframework.beans.factory.BeanFactory beanFactory
Constructor Detail

TestBase

public TestBase()
Method Detail

getBeanFactory

protected static org.springframework.beans.factory.BeanFactory getBeanFactory()

getBeanFactory

protected org.springframework.beans.factory.BeanFactory getBeanFactory(String pathToContextFile,
                                                                       Class clazz)

prepareTests

public static void prepareTests()
                         throws Exception
Throws:
Exception

cleanupTests

public static void cleanupTests()
                         throws Exception
Throws:
Exception

assertEqualsJson

public net.sf.json.JSONObject assertEqualsJson(String expected,
                                               String actual)


Copyright © 2010. All Rights Reserved.