Skip to content

Commit c342b05

Browse files
committed
flip the path
so that it will work reliably if positive test case is introduced
1 parent 04c946a commit c342b05

File tree

1 file changed

+2
-2
lines changed
  • opengrok-indexer/src/test/java/org/opengrok/indexer/web

1 file changed

+2
-2
lines changed

opengrok-indexer/src/test/java/org/opengrok/indexer/web/UtilTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,10 +621,10 @@ void getQueryParamsEmptyAndNormalValuesCombinedTest() throws MalformedURLExcepti
621621
@Test
622622
void testWriteHADNegative() throws Exception {
623623
StringWriter writer = new StringWriter();
624-
String filePath = "/git/nonexistent.c";
624+
String filePath = "/nonexistent/file.c";
625625
Util.writeHAD(writer, "/source", filePath);
626626
String output = writer.toString();
627-
assertEquals("<td class=\"q\"><a href=\"/source/download/git/nonexistent.c\" title=\"Download\">D</a></td>",
627+
assertEquals("<td class=\"q\"><a href=\"/source/download/nonexistent/file.c\" title=\"Download\">D</a></td>",
628628
output);
629629
}
630630
}

0 commit comments

Comments
 (0)