/** * Check if the commit item has the expected data * @param ci the commit item to check * @param key the key of the item */ private void test(CommitItem ci, String key) { assertEquals("commit item path", myPath, ci.getPath()); assertEquals("commit item node kind", myNodeKind, ci.getNodeKind()); assertEquals("commit item state flags", myStateFlags, ci.getStateFlags()); assertEquals("commit item url", myUrl, ci.getUrl()); // after the test, remove the item from the expected map expectedCommitItems.remove(key); } }
/** * Check if the commit item has the expected data * @param ci the commit item to check * @param key the key of the item */ private void test(CommitItem ci, String key) { assertEquals("commit item path", myPath, ci.getPath()); assertEquals("commit item node kind", myNodeKind, ci.getNodeKind()); assertEquals("commit item state flags", myStateFlags, ci.getStateFlags()); assertEquals("commit item url", myUrl, ci.getUrl()); // after the test, remove the item from the expected map expectedCommitItems.remove(key); } }
key = commitItem.getUrl(); else key = commitItem.getPath();
key = commitItem.getUrl(); else key = commitItem.getPath();