File tree Expand file tree Collapse file tree
rivescript-core/src/test/java/com/rivescript Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222
2323package com .rivescript ;
2424
25- import jdk .internal .jline .internal .TestAccessible ;
2625import org .junit .Test ;
2726
2827import java .io .IOException ;
3534 * Tests for the RiveScript classpath load methods.
3635 */
3736public 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" );
You can’t perform that action at this time.
0 commit comments