langtools/test/jdk/jshell/ToolFormatTest.java
changeset 37640 42e5136a367c
parent 36990 ec0b843a7af5
child 38513 0ae85633d035
equal deleted inserted replaced
37639:d4828c4d569c 37640:42e5136a367c
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 8148316 8148317 8151755 8152246
    26  * @bug 8148316 8148317 8151755 8152246 8153551
    27  * @summary Tests for output customization
    27  * @summary Tests for output customization
    28  * @library /tools/lib
    28  * @library /tools/lib
    29  * @modules jdk.compiler/com.sun.tools.javac.api
    29  * @modules jdk.compiler/com.sun.tools.javac.api
    30  *          jdk.compiler/com.sun.tools.javac.main
    30  *          jdk.compiler/com.sun.tools.javac.main
    31  *          jdk.jdeps/com.sun.tools.javap
    31  *          jdk.jdeps/com.sun.tools.javap
   153             assertCommandCheckOutput(false, "/set feedback normal", s -> {
   153             assertCommandCheckOutput(false, "/set feedback normal", s -> {
   154             });
   154             });
   155         }
   155         }
   156     }
   156     }
   157 
   157 
       
   158     public void testShowFeedbackModes() {
       
   159         test(
       
   160                 (a) -> assertCommandOutputContains(a, "/set feedback", "normal")
       
   161         );
       
   162     }
       
   163 
   158     public void testSetNewModeQuiet() {
   164     public void testSetNewModeQuiet() {
   159         try {
   165         try {
   160             test(
   166             test(
   161                     (a) -> assertCommandOutputStartsWith(a, "/set newmode nmq quiet normal", "|  Created new feedback mode: nmq"),
   167                     (a) -> assertCommandOutputStartsWith(a, "/set newmode nmq quiet normal", "|  Created new feedback mode: nmq"),
   162                     (a) -> assertCommand(a, "/set feedback nmq", ""),
   168                     (a) -> assertCommand(a, "/set feedback nmq", ""),