/** * 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); } }
items[i] = new CommitItem(path, kind, stateFlag, url, sc.getCopyFromURL() != null ? sc.getCopyFromURL().toString() : null, sc.getRevision().getNumber());
items[i] = new CommitItem(path, kind, stateFlag, url, sc.getCopyFromURL() != null ? sc.getCopyFromURL().toString() : null, sc.getRevision().getNumber());
/** * 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); } }
items[i] = new CommitItem(path, kind, stateFlag, url, sc.getCopyFromURL() != null ? sc.getCopyFromURL().toString() : null, sc.getRevision().getNumber());
items[i] = new CommitItem(path, kind, stateFlag, url, sc.getCopyFromURL() != null ? sc.getCopyFromURL().toString() : null, sc.getRevision().getNumber());
stateFlag += CommitItemStateFlags.IsCopy; items[i] = new CommitItem(sc.getPath(), getNodeKind(sc.getKind()), stateFlag, sc.getURL() != null ? sc.getURL().toString() : null, sc.getCopyFromURL() != null ? sc.getCopyFromURL().toString() : null, sc.getRevision().getNumber());