equal
deleted
inserted
replaced
35 * @test |
35 * @test |
36 * @summary Tests RecordingStream::onClose(...) |
36 * @summary Tests RecordingStream::onClose(...) |
37 * @key jfr |
37 * @key jfr |
38 * @requires vm.hasJFR |
38 * @requires vm.hasJFR |
39 * @library /test/lib |
39 * @library /test/lib |
40 * @run main/othervm jdk.jfr.api.consumer.recordingstream.TestMaxAge |
40 * @run main/othervm jdk.jfr.api.consumer.recordingstream.TestOnClose |
41 */ |
41 */ |
42 public class TestOnClose { |
42 public class TestOnClose { |
43 |
43 |
44 private static class CloseEvent extends Event { |
44 private static class CloseEvent extends Event { |
45 } |
45 } |
|
46 |
46 public static void main(String... args) throws Exception { |
47 public static void main(String... args) throws Exception { |
47 testOnCloseNull(); |
48 testOnCloseNull(); |
48 testOnClosedUnstarted(); |
49 testOnClosedUnstarted(); |
49 testOnClosedStarted(); |
50 testOnClosedStarted(); |
50 } |
51 } |