Skip to content

Commit ab2658b

Browse files
committed
Remove public keyword and unnecessary throws declaration
1 parent 3369550 commit ab2658b

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

org.eclipse.lsp4e.test/src/org/eclipse/lsp4e/test/edit/LSPEclipseUtilsTest.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313
*******************************************************************************/
1414
package org.eclipse.lsp4e.test.edit;
1515

16-
import static org.junit.jupiter.api.Assertions.*;
16+
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
17+
import static org.junit.jupiter.api.Assertions.assertEquals;
18+
import static org.junit.jupiter.api.Assertions.assertFalse;
19+
import static org.junit.jupiter.api.Assertions.assertNotEquals;
20+
import static org.junit.jupiter.api.Assertions.assertNotNull;
21+
import static org.junit.jupiter.api.Assertions.assertNull;
22+
import static org.junit.jupiter.api.Assertions.assertTrue;
1723

1824
import java.io.ByteArrayInputStream;
1925
import java.io.ByteArrayOutputStream;
@@ -640,7 +646,7 @@ void getHtmlDocString(Either<@Nullable String, MarkupContent> arg, String expect
640646
"file:///home/username/path/to/SomeDir/SomeType.hpp, SomeType.hpp",
641647
"file:///,"
642648
})
643-
public void testReadingFileNameFromUri(String uriText, String expectedFileName) throws Exception {
649+
void testReadingFileNameFromUri(String uriText, String expectedFileName) {
644650
URI uri = URI.create(uriText);
645651

646652
String actualFileName = assertDoesNotThrow(() -> LSPEclipseUtils.getFileName(uri));

0 commit comments

Comments
 (0)