testing.social.game
Class DatabaseTest

java.lang.Object
  extended by testing.social.game.DatabaseTest

public class DatabaseTest
extends java.lang.Object

Class for testing storage to/retrieval from the game info database.

Author:
Heidi Slater

Field Summary
(package private)  java.util.List<java.lang.String> commentList
           
(package private)  SocialInfoDatabase myData
           
(package private)  Rating rating
           
(package private)  java.util.List<java.lang.String> ratingsList
           
 
Constructor Summary
DatabaseTest()
           
 
Method Summary
 void setUp()
           
 void testComments()
          Tests the getting comments returns the appropriate list.
 void testRatings()
          Tests that the rating returns the appropriate number by averaging the ratings in the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myData

SocialInfoDatabase myData

commentList

java.util.List<java.lang.String> commentList

ratingsList

java.util.List<java.lang.String> ratingsList

rating

Rating rating
Constructor Detail

DatabaseTest

public DatabaseTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Throws:
java.lang.Exception

testComments

public void testComments()
Tests the getting comments returns the appropriate list.


testRatings

public void testRatings()
Tests that the rating returns the appropriate number by averaging the ratings in the list.