org.springframework.web.servlet.view.json
Class JsonlibJsonViewTest

java.lang.Object
  extended by org.springjson.test.TestBase
      extended by org.springframework.web.servlet.view.json.JsonlibJsonViewTest

public class JsonlibJsonViewTest
extends TestBase


Field Summary
protected static String COMMAND_BEAN_NAME
           
protected  Date date1
           
protected  Date date2
           
static String HTTP_STATUS_ERROR_BEAN_1
           
static String HTTP_STATUS_ERROR_BEAN_2
           
static String JSON_VIEW_BEAN_NAME
           
static String MODEL_FLAG_ERROR_BEAN_1
           
static String MODEL_FLAG_ERROR_BEAN_2
           
 
Fields inherited from class org.springjson.test.TestBase
beanFactory, PATH_TO_CONTEXT_PATH
 
Constructor Summary
JsonlibJsonViewTest()
           
 
Method Summary
 void addTypedBindingResult()
           
 org.springframework.web.servlet.view.json.JsonWriterConfiguratorTemplateRegistry getConfiguratorTemplateRegistry(javax.servlet.http.HttpServletRequest request)
           
 org.springframework.web.servlet.view.json.JsonWriterConfiguratorTemplateRegistry getEmptyConfiguratorTemplateRegistry(javax.servlet.http.HttpServletRequest request)
           
 void setUp()
           
 void tearDown()
           
 void testGetBindingResult()
           
 void testGetEncoding()
           
 void testGetJsonErrors()
           
 void testGetJsonWriter()
           
 void testGetRequestContext()
           
 void testHasErrors()
           
 void testHijackSafe1()
           
 void testHijackSafe2()
           
 void testModelFlagErrorBoolean()
           
 void testModelFlagErrorDouble()
           
 void testModelFlagErrorFloat()
           
 void testModelFlagErrorInteger()
           
 void testModelFlagErrorLong()
           
 void testModelFlagErrorString()
           
 void testPopulateErrors()
           
 void testPopulateFeldErrors()
           
 void testPopulateGlobalErrors()
           
 void testPopulateNoErrors()
           
 void testRenderMergedOutputModelMapHttpServletRequestHttpServletResponse()
           
 void testRenderMergedOutputModelMapHttpServletRequestHttpServletResponseEmptyRegitry()
           
 void testRenderMergedOutputModelMapHttpServletRequestHttpServletResponseNoError()
           
 void testRenderMergedOutputModelMapHttpServletRequestHttpServletResponseNoErrorEmptyRegitry()
           
 void testRenderMergedOutputModelMapHttpServletRequestHttpServletResponseNoErrorSimpleRegitry()
           
 void testRenderMergedOutputModelMapHttpServletRequestHttpServletResponseSimpleRegitry()
           
 void testSetEncoding()
           
 void testSetJsonErrors()
           
 void testSetJsonWriter()
           
 void testStandartErrorConverter1()
           
 void testStandartErrorConverter1a()
           
 void testStandartErrorConverter2()
           
 void testTriggerJsonErrors()
           
 void testTriggerJsonNoErrors1()
           
 void testTriggerJsonNoErrors2()
           
 
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_VIEW_BEAN_NAME

public static final String JSON_VIEW_BEAN_NAME
See Also:
Constant Field Values

MODEL_FLAG_ERROR_BEAN_1

public static final String MODEL_FLAG_ERROR_BEAN_1
See Also:
Constant Field Values

HTTP_STATUS_ERROR_BEAN_1

public static final String HTTP_STATUS_ERROR_BEAN_1
See Also:
Constant Field Values

MODEL_FLAG_ERROR_BEAN_2

public static final String MODEL_FLAG_ERROR_BEAN_2
See Also:
Constant Field Values

HTTP_STATUS_ERROR_BEAN_2

public static final String HTTP_STATUS_ERROR_BEAN_2
See Also:
Constant Field Values

date1

protected Date date1

date2

protected Date date2
Constructor Detail

JsonlibJsonViewTest

public JsonlibJsonViewTest()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Throws:
Exception

testHijackSafe1

public void testHijackSafe1()
                     throws Exception
Throws:
Exception

testHijackSafe2

public void testHijackSafe2()
                     throws Exception
Throws:
Exception

testRenderMergedOutputModelMapHttpServletRequestHttpServletResponse

public void testRenderMergedOutputModelMapHttpServletRequestHttpServletResponse()
                                                                         throws Exception
Throws:
Exception

testRenderMergedOutputModelMapHttpServletRequestHttpServletResponseNoError

public void testRenderMergedOutputModelMapHttpServletRequestHttpServletResponseNoError()
                                                                                throws Exception
Throws:
Exception

testRenderMergedOutputModelMapHttpServletRequestHttpServletResponseEmptyRegitry

public void testRenderMergedOutputModelMapHttpServletRequestHttpServletResponseEmptyRegitry()
                                                                                     throws Exception
Throws:
Exception

testRenderMergedOutputModelMapHttpServletRequestHttpServletResponseNoErrorEmptyRegitry

public void testRenderMergedOutputModelMapHttpServletRequestHttpServletResponseNoErrorEmptyRegitry()
                                                                                            throws Exception
Throws:
Exception

testRenderMergedOutputModelMapHttpServletRequestHttpServletResponseSimpleRegitry

public void testRenderMergedOutputModelMapHttpServletRequestHttpServletResponseSimpleRegitry()
                                                                                      throws Exception
Throws:
Exception

testRenderMergedOutputModelMapHttpServletRequestHttpServletResponseNoErrorSimpleRegitry

public void testRenderMergedOutputModelMapHttpServletRequestHttpServletResponseNoErrorSimpleRegitry()
                                                                                             throws Exception
Throws:
Exception

testStandartErrorConverter1

public void testStandartErrorConverter1()
                                 throws Exception
Throws:
Exception

testStandartErrorConverter1a

public void testStandartErrorConverter1a()
                                  throws Exception
Throws:
Exception

testStandartErrorConverter2

public void testStandartErrorConverter2()
                                 throws Exception
Throws:
Exception

testPopulateNoErrors

public void testPopulateNoErrors()
                          throws Exception
Throws:
Exception

testPopulateGlobalErrors

public void testPopulateGlobalErrors()
                              throws Exception
Throws:
Exception

testPopulateFeldErrors

public void testPopulateFeldErrors()
                            throws Exception
Throws:
Exception

testPopulateErrors

public void testPopulateErrors()
                        throws Exception
Throws:
Exception

testHasErrors

public void testHasErrors()

testTriggerJsonErrors

public void testTriggerJsonErrors()
                           throws Exception
Throws:
Exception

testTriggerJsonNoErrors1

public void testTriggerJsonNoErrors1()
                              throws Exception
Throws:
Exception

testTriggerJsonNoErrors2

public void testTriggerJsonNoErrors2()
                              throws Exception
Throws:
Exception

testGetBindingResult

public void testGetBindingResult()

testGetRequestContext

public void testGetRequestContext()

testGetJsonErrors

public void testGetJsonErrors()

testSetJsonErrors

public void testSetJsonErrors()

testGetJsonWriter

public void testGetJsonWriter()

testSetJsonWriter

public void testSetJsonWriter()

testGetEncoding

public void testGetEncoding()

testSetEncoding

public void testSetEncoding()

testModelFlagErrorBoolean

public void testModelFlagErrorBoolean()
                               throws Exception
Throws:
Exception

testModelFlagErrorInteger

public void testModelFlagErrorInteger()
                               throws Exception
Throws:
Exception

testModelFlagErrorLong

public void testModelFlagErrorLong()
                            throws Exception
Throws:
Exception

testModelFlagErrorFloat

public void testModelFlagErrorFloat()
                             throws Exception
Throws:
Exception

testModelFlagErrorDouble

public void testModelFlagErrorDouble()
                              throws Exception
Throws:
Exception

testModelFlagErrorString

public void testModelFlagErrorString()
                              throws Exception
Throws:
Exception

addTypedBindingResult

public void addTypedBindingResult()

getConfiguratorTemplateRegistry

public org.springframework.web.servlet.view.json.JsonWriterConfiguratorTemplateRegistry getConfiguratorTemplateRegistry(javax.servlet.http.HttpServletRequest request)

getEmptyConfiguratorTemplateRegistry

public org.springframework.web.servlet.view.json.JsonWriterConfiguratorTemplateRegistry getEmptyConfiguratorTemplateRegistry(javax.servlet.http.HttpServletRequest request)


Copyright © 2010. All Rights Reserved.