Skip to content

Commit 2c396d9

Browse files
Removed unused import + formatting
1 parent b44b6d0 commit 2c396d9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rivescript-core/src/test/java/com/rivescript/RiveScriptResourceTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
package com.rivescript;
2424

25-
import jdk.internal.jline.internal.TestAccessible;
2625
import org.junit.Test;
2726

2827
import java.io.IOException;
@@ -35,6 +34,7 @@
3534
* Tests for the RiveScript classpath load methods.
3635
*/
3736
public class RiveScriptResourceTests {
37+
3838
/**
3939
* This method tests the loadInputStream() method of RiveScript. This implies
4040
* usage of the loadReader() method as well, as it delegates internally.
@@ -44,7 +44,7 @@ public class RiveScriptResourceTests {
4444
@Test
4545
public void testLoadFromInputStream() throws IOException {
4646
RiveScript engine=new RiveScript();
47-
try(InputStream is=RiveScript.class.getResourceAsStream("/test.rive")) {
47+
try (InputStream is = RiveScript.class.getResourceAsStream("/test.rive")) {
4848
engine.loadInputStream(is);
4949
engine.sortReplies();
5050
assertEquals(engine.reply("anyone", "hello"), "Hi there!");
@@ -62,7 +62,7 @@ public void testLoadFromInputStream() throws IOException {
6262
@Test
6363
public void testLoadFromNull() throws IOException {
6464
RiveScript engine=new RiveScript();
65-
try(InputStream is=RiveScript.class.getResourceAsStream("/notthere.rive")) {
65+
try (InputStream is = RiveScript.class.getResourceAsStream("/notthere.rive")) {
6666
assertNull(is);
6767
engine.loadInputStream(is);
6868
throw new AssertionError("Should have received error from loadInputStream with null input");

0 commit comments

Comments
 (0)