Skip to content

Commit

Permalink
fix test to look for subset of initial load configuration based on no…
Browse files Browse the repository at this point in the history
…de group
  • Loading branch information
erilong committed Jan 3, 2008
1 parent b0571fc commit e243bd8
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -59,6 +59,7 @@ protected void setUp() {
dataService = (IDataService) getBeanFactory().getBean(Constants.DATA_SERVICE);
node = new Node();
node.setNodeId(TestConstants.TEST_CLIENT_EXTERNAL_ID);
node.setNodeGroupId(TestConstants.TEST_CLIENT_NODE_GROUP);
Set<Long> histKeys = configurationService.getHistoryRecords().keySet();
Assert.assertFalse(histKeys.isEmpty());
triggerHistId = histKeys.iterator().next().intValue();
Expand All @@ -72,7 +73,7 @@ public void testInitialLoadExtract() throws Exception {
TestConstants.TEST_PREFIX + "node_group", TestConstants.TEST_CONTINUOUS_NODE_GROUP),
mockTransport);
String loadResults = mockTransport.toString();
Assert.assertEquals(10, countLines(loadResults), "Unexpected number of lines in the csv result: "
Assert.assertEquals(9, countLines(loadResults), "Unexpected number of lines in the csv result: "
+ loadResults);
Assert.assertTrue(loadResults.contains("insert, \"test-root-group\",\"a test config\""),
"Did not find expected insert for CORP");
Expand Down

0 comments on commit e243bd8

Please sign in to comment.