equal
deleted
inserted
replaced
60 import jdk.management.jfr.ConfigurationInfo; |
60 import jdk.management.jfr.ConfigurationInfo; |
61 import jdk.management.jfr.EventTypeInfo; |
61 import jdk.management.jfr.EventTypeInfo; |
62 import jdk.management.jfr.FlightRecorderMXBean; |
62 import jdk.management.jfr.FlightRecorderMXBean; |
63 import jdk.management.jfr.RecordingInfo; |
63 import jdk.management.jfr.RecordingInfo; |
64 import jdk.management.jfr.SettingDescriptorInfo; |
64 import jdk.management.jfr.SettingDescriptorInfo; |
|
65 import jdk.test.lib.Utils; |
65 |
66 |
66 /* |
67 /* |
67 * @test TestUnsupportedVM |
68 * @test TestUnsupportedVM |
68 * @key jfr |
69 * @key jfr |
69 * |
70 * |
142 |
143 |
143 // Class Configuration |
144 // Class Configuration |
144 if (!Configuration.getConfigurations().isEmpty()) { |
145 if (!Configuration.getConfigurations().isEmpty()) { |
145 throw new AssertionError("Configuration files should not exist on an unsupported VM"); |
146 throw new AssertionError("Configuration files should not exist on an unsupported VM"); |
146 } |
147 } |
147 Path jfcFile = Files.createTempFile("my", ".jfr"); |
148 Path jfcFile = Utils.createTempFile("empty", ".jfr"); |
148 assertIOException(() -> Configuration.getConfiguration("default")); |
149 assertIOException(() -> Configuration.getConfiguration("default")); |
149 assertIOException(() -> Configuration.create(jfcFile)); |
150 assertIOException(() -> Configuration.create(jfcFile)); |
150 assertIOException(() -> Configuration.create(new FileReader(jfcFile.toFile()))); |
151 assertIOException(() -> Configuration.create(new FileReader(jfcFile.toFile()))); |
151 |
152 |
152 // Class EventType |
153 // Class EventType |