Re: [EGIT PATCH 1/7] Test the origName part of the key vs the ref itself
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Nov 11, 2008, 18:05 UTC
- Message-ID
- <20081111180520.GN2932@spearce.org>
- In-Reply-To
- <1226095664-13759-2-git-send-email-robin.rosenberg@dewire.com>
Robin Rosenberg <robin.rosenberg@dewire.com> wrote:
Show 12 quoted lines
> @@ -127,4 +129,12 @@ public void testDeleteEmptyDirs() throws IOException {
> private void assertExists(final boolean expected, final String name) {
> assertEquals(expected, new File(db.getDirectory(), name).exists());
> }
> +
> + public void testRefKeySameAsOrigName() {
> + Map<String, Ref> allRefs = db.getAllRefs();
> + for (Entry<String, Ref> e : allRefs.entrySet()) {
> + assertEquals(e.getKey(), e.getValue().getOrigName());
> +
> + }
> + }Hmm, doesn't this have to go after "Keep original ref name ..." so getOrigName() is actually defined?
-- Shawn.