Skip to content

Commit

Permalink
0001295 - Fix test for rest service based on new batch for heartbeat.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwilmer committed Jun 15, 2013
1 parent 6d2a335 commit 5767c19
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -97,7 +97,7 @@ protected void test(ISymmetricEngine rootServer, ISymmetricEngine clientServer)
registrationInfo.getNodePassword(), false, false, true, null);
Assert.assertNotNull("Should have a non null results object", results);
Assert.assertEquals(1, results.getNbrBatches());
Assert.assertEquals(3, results.getBatches().get(0).getBatchId());
Assert.assertEquals(4, results.getBatches().get(0).getBatchId());

log.info(results.getBatches().get(0).getSqlStatements().get(0));

Expand All @@ -106,7 +106,7 @@ protected void test(ISymmetricEngine rootServer, ISymmetricEngine clientServer)
registrationInfo.getNodePassword(), false, false, false, null);
Assert.assertNotNull("Should have a non null results object", results);
Assert.assertEquals(1, results.getNbrBatches());
Assert.assertEquals(3, results.getBatches().get(0).getBatchId());
Assert.assertEquals(4, results.getBatches().get(0).getBatchId());

// test that when we don't request jdbc timestamp format sql statements come back in that format
Assert.assertFalse(results.getBatches().get(0).getSqlStatements().get(0).contains("{ts '"));
Expand All @@ -123,8 +123,8 @@ protected void test(ISymmetricEngine rootServer, ISymmetricEngine clientServer)
registrationInfo.getNodePassword(), true, false, true, null);
Assert.assertNotNull("Should have a non null results object", results);
Assert.assertEquals(2, results.getNbrBatches());
Assert.assertEquals(3, results.getBatches().get(0).getBatchId());
Assert.assertEquals(4, results.getBatches().get(1).getBatchId());
Assert.assertEquals(4, results.getBatches().get(0).getBatchId());
Assert.assertEquals(5, results.getBatches().get(1).getBatchId());
Assert.assertEquals(2, results.getBatches().get(1).getSqlStatements().size());

// test that when we request jdbc timestamp format sql statements come back in that format
Expand Down

0 comments on commit 5767c19

Please sign in to comment.