org.springframework.web.servlet.view.json.writer.jsonlib
Class SimpleJsonJsonlibStringWriterTest

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

public class SimpleJsonJsonlibStringWriterTest
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_JSONLIB_CONFIG_SUPORT_BEAN
           
protected  org.springframework.web.servlet.view.json.writer.jsonlib.JsonlibJsonStringWriter jsonStringWriter
           
 
Fields inherited from class org.springjson.test.TestBase
beanFactory, PATH_TO_CONTEXT_PATH
 
Constructor Summary
SimpleJsonJsonlibStringWriterTest()
           
 
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 testConvertAllSimpleModel()
           
 void testConvertAllSimpleModelWithEmptyBindingResult()
           
 void testConvertAllSimpleModelWithPathedPropertyEditor()
           
 void testConvertAllSimpleModelWithPathedPropertyEditorOutBean()
           
 void testConvertAllSimpleModelWithTypedPropertyEditor()
           
 void testConvertSimpleModel()
           
 void testConvertSimpleModelWithEmptyBindingResult()
           
 void testConvertSimpleModelWithPathedPropertyEditor()
           
 void testConvertSimpleModelWithPathedPropertyEditorOutBean()
           
 void testConvertSimpleModelWithTypedPropertyEditor()
           
 void testConvertWithCustomEditorHirachy()
           
 
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_JSONLIB_CONFIG_SUPORT_BEAN

public static final String JSON_STRING_WRITER_WITH_JSONLIB_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.jsonlib.JsonlibJsonStringWriter jsonStringWriter
Constructor Detail

SimpleJsonJsonlibStringWriterTest

public SimpleJsonJsonlibStringWriterTest()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

getModelMap

public Map getModelMap()

testConvertSimpleModel

public void testConvertSimpleModel()

testConvertAllSimpleModel

public void testConvertAllSimpleModel()

testConvertSimpleModelWithEmptyBindingResult

public void testConvertSimpleModelWithEmptyBindingResult()

testConvertAllSimpleModelWithEmptyBindingResult

public void testConvertAllSimpleModelWithEmptyBindingResult()

testConvertSimpleModelWithTypedPropertyEditor

public void testConvertSimpleModelWithTypedPropertyEditor()

testConvertAllSimpleModelWithTypedPropertyEditor

public void testConvertAllSimpleModelWithTypedPropertyEditor()

testConvertSimpleModelWithPathedPropertyEditor

public void testConvertSimpleModelWithPathedPropertyEditor()

testConvertAllSimpleModelWithPathedPropertyEditor

public void testConvertAllSimpleModelWithPathedPropertyEditor()

testConvertSimpleModelWithPathedPropertyEditorOutBean

public void testConvertSimpleModelWithPathedPropertyEditorOutBean()

testConvertAllSimpleModelWithPathedPropertyEditorOutBean

public void testConvertAllSimpleModelWithPathedPropertyEditorOutBean()

testConvertWithCustomEditorHirachy

public void testConvertWithCustomEditorHirachy()

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.