diff options
author | George Fraser <george@fivetran.com> | 2017-07-17 11:12:43 -0700 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2017-07-17 11:12:43 -0700 |
commit | f8139ecf46896aa773b15d8bba9eae6878f6c95c (patch) | |
tree | de254dda0906f8531d0af454f6ae947dd16a200e /src/test | |
parent | 4cb8d32b52c69d5de6633ad5e196406f83de9187 (diff) | |
download | java-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.java | 4 |
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)); |