summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2017-07-17 11:12:43 -0700
committerGeorge Fraser <george@fivetran.com>2017-07-17 11:12:43 -0700
commitf8139ecf46896aa773b15d8bba9eae6878f6c95c (patch)
treede254dda0906f8531d0af454f6ae947dd16a200e /src/test
parent4cb8d32b52c69d5de6633ad5e196406f83de9187 (diff)
downloadjava-language-server-f8139ecf46896aa773b15d8bba9eae6878f6c95c.zip
Still doesn't work on .class files
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/javacs/IncrementalFileManagerTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/org/javacs/IncrementalFileManagerTest.java b/src/test/java/org/javacs/IncrementalFileManagerTest.java
index 7cb5c9c..1d7a600 100644
--- a/src/test/java/org/javacs/IncrementalFileManagerTest.java
+++ b/src/test/java/org/javacs/IncrementalFileManagerTest.java
@@ -35,14 +35,14 @@ public class IncrementalFileManagerTest {
@Test
public void classFileSignature() {
- IncrementalFileManager.ClassSig sig = test.classSignature("com.example.Test");
+ IncrementalFileManager.ClassSig sig = test.classSignature("com.example.Test").orElseThrow(() -> new RuntimeException("com.example.Test class not found"));
assertThat(sig.methods, hasKey("test"));
}
@Test
public void simpleSignatureEquals() {
- IncrementalFileManager.ClassSig classSig = test.classSignature("com.example.Test"),
+ IncrementalFileManager.ClassSig classSig = test.classSignature("com.example.Test").orElseThrow(() -> new RuntimeException("com.example.Test class not found")),
sourceSig = test.sourceSignature("com.example.Test");
assertThat(classSig, equalTo(sourceSig));