Skip to content

Commit

Permalink
Minor changes to the junit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
avekob committed Feb 26, 2015
1 parent 3b42126 commit ef1f807
Show file tree
Hide file tree
Showing 17 changed files with 2,832 additions and 2,829 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap
Binary file not shown.
Binary file not shown.
5,652 changes: 2,826 additions & 2,826 deletions .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi

Large diffs are not rendered by default.

Binary file modified .metadata/.plugins/org.eclipse.jdt.core/1328996958.index
Binary file not shown.
9 changes: 6 additions & 3 deletions server/src/test/java/server/ServerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ public void setUp() throws Exception {
stat.setQueryTimeout(10); // set timeout to 30 sec.

/* Populate the DB */
stat.executeUpdate("drop table if exists Vehicle");
//TODO: Use a schema file to create tables here (instead of hardcoding it).
stat.executeUpdate("create table Vehicle (id integer, name string, description string, vin string)");
stat.executeUpdate("insert into Vehicle values(1, 'de lux', 'A luxury car', 'a0:88:b4:de:4b:a8')");
stat.executeUpdate("insert into Vehicle values(2, 'simulator', 'Simulator instance', 'a0:88:b4:de:4b:a8:S0')");

stat.executeUpdate("insert into Vehicle (id, name, description, vin) "
+ "values(1, 'de lux', 'A luxury car', 'a0:88:b4:de:4b:a8')");
stat.executeUpdate("insert into Vehicle (id, name, description, vin) "
+ "values(2, 'simulator', 'Simulator instance', 'a0:88:b4:de:4b:a8:S0')");
}

@After
Expand Down

0 comments on commit ef1f807

Please sign in to comment.