test/jdk/jdk/jfr/api/consumer/streaming/TestRepositoryProperty.java
branchJEP-349-branch
changeset 58855 83c307e00630
parent 58271 e47423f1318b
equal deleted inserted replaced
58854:a79e68ec829a 58855:83c307e00630
    88     private static void testAfterInitialization() {
    88     private static void testAfterInitialization() {
    89         try (Recording r = new Recording()) {
    89         try (Recording r = new Recording()) {
    90             r.start();
    90             r.start();
    91             String location = System.getProperty(JFR_REPOSITORY_LOCATION_PROPERTY);
    91             String location = System.getProperty(JFR_REPOSITORY_LOCATION_PROPERTY);
    92             if (location == null) {
    92             if (location == null) {
    93                 throw new AssertionError("Repository path should exist before JFR is initialized");
    93                 throw new AssertionError("Repository path should exist after JFR is initialized");
    94             }
    94             }
    95             System.out.println("repository=" + location);
    95             System.out.println("repository=" + location);
    96             Path p = Path.of(location);
    96             Path p = Path.of(location);
    97             if (!Files.isDirectory(p)) {
    97             if (!Files.isDirectory(p)) {
    98                 throw new AssertionError("Repository path doesn't point to directory");
    98                 throw new AssertionError("Repository path doesn't point to directory");