testing.social.game
Class DatabaseTest
java.lang.Object
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
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 |
myData
SocialInfoDatabase myData
commentList
java.util.List<java.lang.String> commentList
ratingsList
java.util.List<java.lang.String> ratingsList
rating
Rating rating
DatabaseTest
public DatabaseTest()
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.