org.springframework.web.servlet.view.json.writer.xstream
Class SimpleCollectionJsonXStreamStringWriterTest

java.lang.Object
  extended by org.springjson.test.TestBase
      extended by org.springframework.web.servlet.view.json.writer.xstream.SimpleCollectionJsonXStreamStringWriterTest

public class SimpleCollectionJsonXStreamStringWriterTest
extends TestBase


Field Summary
protected static String COMMAND_BEAN_NAME
           
protected  Date date1
           
protected  Date date2
           
static String JSON_STRING_WRITER_BEAN
           
static String JSON_STRING_WRITER_WITH_XSTREAM_CONFIG_SUPORT_BEAN
           
protected  org.springframework.web.servlet.view.json.writer.xstream.XStreamJsonStringWriter jsonStringWriter
           
 
Fields inherited from class org.springjson.test.TestBase
beanFactory, PATH_TO_CONTEXT_PATH
 
Constructor Summary
SimpleCollectionJsonXStreamStringWriterTest()
           
 
Method Summary
 MockBindingResult getBeanPathAndTypedBindingResult(String nestedPath1, String nestedPath2)
           
 MockBindingResult getBeanPathBindingResult(String nestedPath)
           
 org.springframework.web.servlet.view.json.JsonWriterConfiguratorTemplateRegistry getConfiguratorTemplateRegistry()
           
 MockBindingResult getEmptyBindingResult()
           
 org.springframework.web.servlet.view.json.JsonWriterConfiguratorTemplateRegistry getEmptyConfiguratorTemplateRegistry()
           
 Map getModelMap()
           
 MockBindingResult getTypedBindingResult()
           
 void setUp()
           
 void testConvertSimpleCollection()
           
 
Methods inherited from class org.springjson.test.TestBase
assertEqualsJson, cleanupTests, getBeanFactory, getBeanFactory, prepareTests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMAND_BEAN_NAME

protected static final String COMMAND_BEAN_NAME
See Also:
Constant Field Values

JSON_STRING_WRITER_BEAN

public static final String JSON_STRING_WRITER_BEAN
See Also:
Constant Field Values

JSON_STRING_WRITER_WITH_XSTREAM_CONFIG_SUPORT_BEAN

public static final String JSON_STRING_WRITER_WITH_XSTREAM_CONFIG_SUPORT_BEAN
See Also:
Constant Field Values

date1

protected Date date1

date2

protected Date date2

jsonStringWriter

protected org.springframework.web.servlet.view.json.writer.xstream.XStreamJsonStringWriter jsonStringWriter
Constructor Detail

SimpleCollectionJsonXStreamStringWriterTest

public SimpleCollectionJsonXStreamStringWriterTest()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

getModelMap

public Map getModelMap()

testConvertSimpleCollection

public void testConvertSimpleCollection()

getEmptyBindingResult

public MockBindingResult getEmptyBindingResult()

getTypedBindingResult

public MockBindingResult getTypedBindingResult()

getBeanPathBindingResult

public MockBindingResult getBeanPathBindingResult(String nestedPath)

getBeanPathAndTypedBindingResult

public MockBindingResult getBeanPathAndTypedBindingResult(String nestedPath1,
                                                          String nestedPath2)

getEmptyConfiguratorTemplateRegistry

public org.springframework.web.servlet.view.json.JsonWriterConfiguratorTemplateRegistry getEmptyConfiguratorTemplateRegistry()

getConfiguratorTemplateRegistry

public org.springframework.web.servlet.view.json.JsonWriterConfiguratorTemplateRegistry getConfiguratorTemplateRegistry()


Copyright © 2010. All Rights Reserved.