test/jdk/jdk/jfr/jmx/security/TestEnoughPermission.java
changeset 52981 4eff16f47ae2
parent 51214 67736b4846a0
equal deleted inserted replaced
52980:24525070d934 52981:4eff16f47ae2
    83         System.out.println("D");
    83         System.out.println("D");
    84         Asserts.assertTrue(bean.getRecordings().stream().anyMatch(r -> { return r.getId() == recId; }), "recId not found");
    84         Asserts.assertTrue(bean.getRecordings().stream().anyMatch(r -> { return r.getId() == recId; }), "recId not found");
    85         System.out.println("E");
    85         System.out.println("E");
    86         bean.stopRecording(recId);
    86         bean.stopRecording(recId);
    87 
    87 
    88         final Path path = Paths.get(".", String.format("rec%d.jfr", recId));
    88         final Path path = Paths.get(".", "rec" + recId + ".jfr");
    89         bean.copyTo(recId, path.toString());
    89         bean.copyTo(recId, path.toString());
    90         //EventSet events = EventSet.fromFile(path);
    90         //EventSet events = EventSet.fromFile(path);
    91         return recId;
    91         return recId;
    92     }
    92     }
    93 
    93