Skip to content

Commit

Permalink
Fixing TestUcfOpenDj: tolerating pseudo change to update the token
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Dec 17, 2015
1 parent 5a91c96 commit 708ae1e
Showing 1 changed file with 9 additions and 1 deletion.
Expand Up @@ -400,7 +400,15 @@ public void test200FetchChanges() throws Exception {
assertNotNull("No last token value", lastToken.getRealValue());

List<Change<ShadowType>> changes = cc.fetchChanges(accountDefinition, lastToken, null, null, result);
AssertJUnit.assertEquals(0, changes.size());
display("Changes", changes);

// Just one pseudo-change that updates the token
AssertJUnit.assertEquals(1, changes.size());
Change<ShadowType> change = changes.get(0);
assertNull(change.getCurrentShadow());
assertNull(change.getIdentifiers());
assertNull(change.getObjectDelta());
assertNotNull(change.getToken());
}

private PrismProperty createProperty(String propertyName, String propertyValue) {
Expand Down

0 comments on commit 708ae1e

Please sign in to comment.