ch.hsr.bieridee.test
Class DBUtilTest

java.lang.Object
  extended by ch.hsr.bieridee.test.DBTest
      extended by ch.hsr.bieridee.test.DBUtilTest

public class DBUtilTest
extends DBTest

Tests DBUtil functionality.


Constructor Summary
DBUtilTest()
           
 
Method Summary
 void createAndGetBeertype()
           
 void deleteRelationship()
          Tests if the a relation is deleted propery.
 void getBeerByNameTest()
          Tests if a beer could be obtained by name.
 void getBeersByTag()
          Test the Filter by Tag Function of DBUtil.
 void getMostRecentRatingforUserANDcrateNewRatingForAlreadyRatedBeer()
          Tests if only the most recent rating is linked to the Active Index.
 void getNotExistingBeerByNameTest()
           
 
Methods inherited from class ch.hsr.bieridee.test.DBTest
shutdownDB, startResletAPI
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBUtilTest

public DBUtilTest()
Method Detail

getBeerByNameTest

public void getBeerByNameTest()
Tests if a beer could be obtained by name.


getNotExistingBeerByNameTest

public void getNotExistingBeerByNameTest()
                                  throws org.neo4j.graphdb.NotFoundException,
                                         WrongNodeTypeException
Throws:
WrongNodeTypeException
org.neo4j.graphdb.NotFoundException

getBeersByTag

public void getBeersByTag()
Test the Filter by Tag Function of DBUtil.


getMostRecentRatingforUserANDcrateNewRatingForAlreadyRatedBeer

public void getMostRecentRatingforUserANDcrateNewRatingForAlreadyRatedBeer()
Tests if only the most recent rating is linked to the Active Index. Tests if the creation of new rating (to a already rated beer from the same user) is linked correctly.


createAndGetBeertype

public void createAndGetBeertype()

deleteRelationship

public void deleteRelationship()
Tests if the a relation is deleted propery.