Skip to content

Commit 7e15081

Browse files
committed
Add exclusion check for agility shortcuts in test
1 parent 0cd1af2 commit 7e15081

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/java/shortestpath/AgilityShortcutTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ public void everyEnumHasTsvEntry()
108108
for (AgilityShortcut s : AgilityShortcut.values())
109109
{
110110
boolean matched = false;
111+
boolean excluded = false;
111112

112113
// check worldLocation (x y z) if present
113114
if (s.getWorldLocation() != null)
@@ -124,6 +125,8 @@ public void everyEnumHasTsvEntry()
124125
if (excludedIds.contains(id))
125126
{
126127
// skip known-excluded IDs
128+
System.out.println("Skipping excluded ID " + id + " for " + s.name());
129+
excluded = true;
127130
continue;
128131
}
129132

@@ -135,7 +138,7 @@ public void everyEnumHasTsvEntry()
135138
}
136139
}
137140

138-
if (!matched)
141+
if (!matched && !excluded)
139142
{
140143
missing.append(s.name()).append('\n');
141144
}

0 commit comments

Comments
 (0)