Skip to content
thk123 edited this page Jan 23, 2012 · 3 revisions

Tests that can be performed on the server

To run the tests, first start the Server normally. Then you must run the ServerTest file with arguments specifying which test group(s) to run. To do this in Eclipse:

Click on the arrow next to the Launch/Debug button and click configure. Create a new Java Application configuration by double clicking on Java Application Select ServerTest project and on the arguments tab put in any number of the following test groups

Test Groups:

  1. CreateGet
  2. CreateUpdate
  3. CreateWithGuestRespond

CreateGet

Creates a new event, adds it to the server then gets it

NewEventCorrectId - Pass: Get an non-negative ID back from the host

NewEventEventReturnedToHost - Pass: The host should not get the event back from the server

NewEventEventReturnedGuest - Pass: The guest should receive the data from the new event

#CreateUpdate

Creates a new event then sends an update to it

NewEventCorrectId - Pass: Get an non-negative ID back from the

NewEventEventReturnedToHost - Pass: The host should not get the event back from the server

NewEventEventReturnedGuest - Pass: The guest should receive the data from the new event

UpdateReturnedToHost - Pass: The host should not receive an update

UpdateReturnedToGuest - Pass: The event with correct ID was returned

UpdateWasApplied - Pass: This event had the new data

#CreateWithGuestRespond

Creates an event with another guest who responds to the invite

NewEventCorrectId - Pass: Get an non-negative ID back from the

EventReturnedToGuest - Pass: The event is given to the guest

EventReturnedToGuestAfterRespond - Pass: The event is not given back to the user after they have responded

EventReturnedToHostAfterRespond - Pass: The event is given to the host after the user has responded

EventResponseGivenToHost - Pass: The user now has the correct status

Clone this wiki locally