summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.http.test/tst/org/eclipse
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2018-09-29 12:45:20 +0900
committerDavid Pursehouse <david.pursehouse@gmail.com>2018-09-29 12:47:01 +0900
commit873b0b775435275865d93871906e76adccdbf53a (patch)
tree90ace7c8161f9c4abd1057a5bf1c460dfc926763 /org.eclipse.jgit.http.test/tst/org/eclipse
parent1bb430dc215f6522b62bab9b5f3c2663d522dc6a (diff)
downloadjgit-873b0b775435275865d93871906e76adccdbf53a.tar.gz
jgit-873b0b775435275865d93871906e76adccdbf53a.zip
FileResolverTest#testNotAGitRepository: Fail when exception is not thrown
Error Prone reports: Not calling fail() when expecting an exception masks bugs See https://errorprone.info/bugpattern/MissingFail Change-Id: I9ac844aa6c5a620d9b5d21d2e242347b3788b96a Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.http.test/tst/org/eclipse')
-rw-r--r--org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/FileResolverTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/FileResolverTest.java b/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/FileResolverTest.java
index 82e79b8e50..553c340a73 100644
--- a/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/FileResolverTest.java
+++ b/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/FileResolverTest.java
@@ -147,6 +147,7 @@ public class FileResolverTest extends LocalDiskRepositoryTestCase {
try {
resolver.open(null, name);
+ fail("opened non-git repository");
} catch (RepositoryNotFoundException e) {
assertEquals("repository not found: " + name, e.getMessage());