|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.springframework.extensions.webscripts.WebScriptFormatReaderTest
public class WebScriptFormatReaderTest
Unit test to test Web Script API
Constructor Summary | |
---|---|
WebScriptFormatReaderTest()
|
Method Summary | |
---|---|
void |
testAtomEntry()
Ensure that for a .atom.js script and an application/atom+xml;type=entry request (for which a less generalized atomentry format is registered) the entry variable is available as "entry". |
void |
testBogus()
Ensure that for a .bogus.js script and an application/bogus request, an error is returned because the bogus format is registered, but no FormatReader is registered. |
void |
testJson()
Ensure that for a .json.js script and an application/json request, the json string is available as "json". |
void |
testRequestBody()
Ensure that, for a non request type specific .js script, the request body is available as requestbody. |
void |
testXWwwFormUrlEncoded()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WebScriptFormatReaderTest()
Method Detail |
---|
public void testRequestBody() throws Exception
Exception
public void testJson() throws Exception
Exception
public void testXWwwFormUrlEncoded() throws Exception
Exception
public void testAtomEntry() throws Exception
Exception
public void testBogus() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |