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

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

public class SojoJsonViewTest
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 JSON_WRITER_FALSE_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
SojoJsonViewTest()
           
 
Method Summary
 void addTypedBindingResult()
           
 void setUp()
           
 void tearDown()
           
 void testGetBindingResult()
           
 void testGetEncoding()
           
 void testGetJsonErrors()
           
 void testGetRequestContext()
           
 void testHasErrors()
           
 void testHijackSafe1()
           
 void testHijackSafe2()
           
 void testModelFlagErrorBoolean()
           
 void testModelFlagErrorBooleanAll()
           
 void testModelFlagErrorDouble()
           
 void testModelFlagErrorDoubleAll()
           
 void testModelFlagErrorFloat()
           
 void testModelFlagErrorFloatAll()
           
 void testModelFlagErrorInteger()
           
 void testModelFlagErrorIntegerAll()
           
 void testModelFlagErrorLong()
           
 void testModelFlagErrorLongAll()
           
 void testModelFlagErrorString()
           
 void testModelFlagErrorStringAll()
           
 void testPopulateErrors()
           
 void testPopulateFeldErrors()
           
 void testPopulateGlobalErrors()
           
 void testPopulateNoErrors()
           
 void testRenderMergedOutputModelMapHttpServletRequestHttpServletResponse()
           
 void testRenderMergedOutputModelMapHttpServletRequestHttpServletResponseNoError()
           
 void testSetContentType()
           
 void testSetEncoding()
           
 void testSetErrorconverter()
           
 void testSetHiJackSave()
           
 void testSetJsonErrors()
           
 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

JSON_WRITER_FALSE_BEAN_NAME

public static final String JSON_WRITER_FALSE_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

SojoJsonViewTest

public SojoJsonViewTest()
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

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()

testGetEncoding

public void testGetEncoding()

testSetEncoding

public void testSetEncoding()

testSetErrorconverter

public void testSetErrorconverter()
                           throws Exception
Throws:
Exception

testSetHiJackSave

public void testSetHiJackSave()
                       throws Exception
Throws:
Exception

testSetContentType

public void testSetContentType()
                        throws Exception
Throws:
Exception

testModelFlagErrorBoolean

public void testModelFlagErrorBoolean()
                               throws Exception
Throws:
Exception

testModelFlagErrorBooleanAll

public void testModelFlagErrorBooleanAll()
                                  throws Exception
Throws:
Exception

testModelFlagErrorInteger

public void testModelFlagErrorInteger()
                               throws Exception
Throws:
Exception

testModelFlagErrorIntegerAll

public void testModelFlagErrorIntegerAll()
                                  throws Exception
Throws:
Exception

testModelFlagErrorLong

public void testModelFlagErrorLong()
                            throws Exception
Throws:
Exception

testModelFlagErrorLongAll

public void testModelFlagErrorLongAll()
                               throws Exception
Throws:
Exception

testModelFlagErrorFloat

public void testModelFlagErrorFloat()
                             throws Exception
Throws:
Exception

testModelFlagErrorFloatAll

public void testModelFlagErrorFloatAll()
                                throws Exception
Throws:
Exception

testModelFlagErrorDouble

public void testModelFlagErrorDouble()
                              throws Exception
Throws:
Exception

testModelFlagErrorDoubleAll

public void testModelFlagErrorDoubleAll()
                                 throws Exception
Throws:
Exception

testModelFlagErrorString

public void testModelFlagErrorString()
                              throws Exception
Throws:
Exception

testModelFlagErrorStringAll

public void testModelFlagErrorStringAll()
                                 throws Exception
Throws:
Exception

addTypedBindingResult

public void addTypedBindingResult()


Copyright © 2010. All Rights Reserved.