|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.almanach.control.DisplayableEventOccurrenceTest
public class DisplayableEventOccurrenceTest
Unit tests on the EventOccurrenceDTO. The tests are on the JSON encoding of the DTO.
Constructor Summary | |
---|---|
DisplayableEventOccurrenceTest()
|
Method Summary | |
---|---|
protected void |
assertJSONEventMatchesEventDTO(DisplayableEventOccurrence occurrence,
org.json.JSONObject jsonObject)
Asserts the specified JSON object matches the specified event DTO. |
void |
emptyTest()
For checking all is ok by default. |
protected DisplayableEventOccurrence |
getADisplaybleEventOccurrenceOf(EventDetail event)
|
protected EventDetail |
getEventDetail()
Gets the detail on an event. |
void |
setUp()
|
static void |
setUpClass()
|
void |
tearDown()
|
static void |
tearDownClass()
|
void |
testJSONRepresentationOfAListOfEvents()
Check the JSON representation of a list of events is the expected one. |
void |
testJSONRepresentationOfAnEvent()
Check the JSON representation of a given event is the expected one. |
void |
theCSSClassOfAnEventShouldBeTheAlmanachId()
The CSS class of an event DTO should be the identifier of the almanach instance it belongs to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DisplayableEventOccurrenceTest()
Method Detail |
---|
public static void setUpClass() throws Exception
Exception
public static void tearDownClass() throws Exception
Exception
public void setUp()
public void tearDown()
public void emptyTest()
public void theCSSClassOfAnEventShouldBeTheAlmanachId()
public void testJSONRepresentationOfAnEvent() throws Exception
Exception
- if an error occurs during the test execution.public void testJSONRepresentationOfAListOfEvents() throws Exception
Exception
- if an error occurs during the test execution.protected EventDetail getEventDetail()
protected DisplayableEventOccurrence getADisplaybleEventOccurrenceOf(EventDetail event)
protected void assertJSONEventMatchesEventDTO(DisplayableEventOccurrence occurrence, org.json.JSONObject jsonObject)
occurrence
- the expected object to match.jsonObject
- the actual JSON object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |