|
|
@ -50,8 +50,8 @@ public class DatabaseTest extends TestCase { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void testUpdate(){ |
|
|
|
public void testUpdate(){ |
|
|
|
assertEquals("UPDATE Test",Database.open().update("Test").sql()); |
|
|
|
assertEquals("UPDATE Test",Database.open().update("Test").compile().toString()); |
|
|
|
assertEquals("UPDATE Test SET x = 5",Database.open().update("Test").set("x",5).sql()); |
|
|
|
assertEquals("UPDATE Test SET x = 5",Database.open().update("Test").set("x",5).compile().toString()); |
|
|
|
assertEquals("UPDATE Test SET x = 5, y = 6",Database.open().update("Test").set("x",5).set("y",6).sql()); |
|
|
|
assertEquals("UPDATE Test SET x = 5, y = 6",Database.open().update("Test").set("x",5).set("y",6).compile().toString()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|