ch.hsr.bieridee.test.resources
Class ConsumptionListResourceTest

java.lang.Object
  extended by ch.hsr.bieridee.test.ServerTest
      extended by ch.hsr.bieridee.test.resources.ResourceTest
          extended by ch.hsr.bieridee.test.resources.ConsumptionListResourceTest

public class ConsumptionListResourceTest
extends ResourceTest

Tests for the beer consumptions.


Constructor Summary
ConsumptionListResourceTest()
           
 
Method Summary
 void createConsumption()
          Tests the creation of a consumption.
 void getBeerConsumptions()
          Tests the retrieval of all consumptions of a beer.
 void getChronologicalConsumptions()
          Tests if the order of consumptions is chronological and if the cypherquery only returns consumption nodes.
 void getUserBeerConsumptions()
          Tests the beer consumptions of a specific beer for specific user.
 
Methods inherited from class ch.hsr.bieridee.test.ServerTest
shutdownDB, startResletAPI
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsumptionListResourceTest

public ConsumptionListResourceTest()
Method Detail

createConsumption

public void createConsumption()
Tests the creation of a consumption.


getChronologicalConsumptions

public void getChronologicalConsumptions()
Tests if the order of consumptions is chronological and if the cypherquery only returns consumption nodes.


getBeerConsumptions

public void getBeerConsumptions()
                         throws org.json.JSONException
Tests the retrieval of all consumptions of a beer.

Throws:
org.json.JSONException

getUserBeerConsumptions

public void getUserBeerConsumptions()
Tests the beer consumptions of a specific beer for specific user.