langtools/test/jdk/jshell/RejectedFailedTest.java
changeset 40836 2c3901225ff2
parent 40304 0318f4e75c6d
equal deleted inserted replaced
40835:6ab9ed1abc46 40836:2c3901225ff2
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test 8080352
    26  * @summary Tests for hard errors, like syntax errors
    26  * @summary Tests for hard errors, like syntax errors
    27  * @build KullaTesting
    27  * @build KullaTesting
    28  * @run testng RejectedFailedTest
    28  * @run testng RejectedFailedTest
    29  */
    29  */
    30 
    30 
    79         String[] inputsErroneous = {
    79         String[] inputsErroneous = {
    80                 "%&^%&",
    80                 "%&^%&",
    81                 " a b c",
    81                 " a b c",
    82                 ")",
    82                 ")",
    83                 "class interface A",
    83                 "class interface A",
       
    84                 "package foo;"
    84         };
    85         };
    85         checkByKind(inputsErroneous, Kind.ERRONEOUS);
    86         checkByKind(inputsErroneous, Kind.ERRONEOUS);
    86     }
    87     }
    87 
    88 
    88     public void testBadMethod() {
    89     public void testBadMethod() {