equal
deleted
inserted
replaced
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"); |