@@ -0,0 +1,1015 @@
+package eic.beike.projectx.network.projectXServer;%0A%0Aimport junit.framework.TestCase;%0A%0A/**%0A * Test the database interaction. As of now this is against the live server.%0A * Created by alex on 10/1/15.%0A */%0Apublic class DatabaseTest extends TestCase %7B%0A    private Database db;%0A%0A    /**%0A     * We use a fresh object for every test.%0A     * @throws Exception%0A     */%0A    public void setUp() throws Exception %7B%0A        super.setUp();%0A        db = new Database();%0A%0A    %7D%0A%0A    public void testRegister() throws Exception %7B%0A        String id = %22test%22 + Long.toString(System.currentTimeMillis());%0A        //Should be able to register.%0A        boolean success = db.register(id, %22alex%22);%0A        assertTrue(success);%0A        //Should not be able to register twice.%0A        success = db.register(id, %22alex%22);%0A        assertFalse(success);%0A    %7D%0A%0A    public void testRecordScore() throws Exception %7B%0A%0A    %7D%0A%0A    public void testGetTopTen() throws Exception %7B%0A%0A    %7D%0A%0A    public void testGetPlayerTopTen() throws Exception %7B%0A%0A    %7D%0A%7D

Add test for database.