Skip to content

Commit

Permalink
more testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jyh09001 committed May 1, 2015
1 parent 2fd3a42 commit f2015d8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/testing/DatabaseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ public class DatabaseTest implements Thermostatable, Serializable{
public DatabaseTest(){
Database testbase =new Database(this);

testbase.createUser("herp@derp.com", "herpderp", "123456789.0", null);
testbase.createUser("herp@derp.com", "herpderp", "123456789.0", "testthermo1");
Hashtable<String, String> testuser = testbase.getUserFromEmail("herp@derp.com");

testbase.createThermostat("testthermo1", "testthemo", "123456789.1", "80", "90");


if(testuser.get("email").equals("herp@derp.com")){
System.out.println("email pass");
}
Expand All @@ -36,6 +39,8 @@ public DatabaseTest(){
else{
System.out.println("user ip fail");
}



//if(testuser.get()))
}
Expand Down

0 comments on commit f2015d8

Please sign in to comment.