diff --git a/test/jdk/jdk/jfr/api/metadata/annotations/TestPeriod.java b/test/jdk/jdk/jfr/api/metadata/annotations/TestPeriod.java index bf679b05bbf..c1f02a7cac2 100644 --- a/test/jdk/jdk/jfr/api/metadata/annotations/TestPeriod.java +++ b/test/jdk/jdk/jfr/api/metadata/annotations/TestPeriod.java @@ -34,7 +34,7 @@ import jdk.test.lib.jfr.Events; * @requires vm.flagless * @requires vm.hasJFR * @library /test/lib - * @run main/othervm jdk.jfr.api.metadata.annotations.TestLabel + * @run main/othervm jdk.jfr.api.metadata.annotations.TestPeriod */ public class TestPeriod { diff --git a/test/jdk/jdk/jfr/api/metadata/settingdescriptor/TestGetContentType.java b/test/jdk/jdk/jfr/api/metadata/settingdescriptor/TestGetContentType.java index ba8e25dd449..f0a3a19ba40 100644 --- a/test/jdk/jdk/jfr/api/metadata/settingdescriptor/TestGetContentType.java +++ b/test/jdk/jdk/jfr/api/metadata/settingdescriptor/TestGetContentType.java @@ -38,7 +38,7 @@ import jdk.test.lib.jfr.Events; * @requires vm.flagless * @requires vm.hasJFR * @library /test/lib /test/jdk - * @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetDescription + * @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetContentType */ public class TestGetContentType { @@ -49,7 +49,7 @@ public class TestGetContentType { Asserts.assertNull(plain.getContentType()); SettingDescriptor annotatedType = Events.getSetting(type, "annotatedType"); - Asserts.assertNull(annotatedType.getContentType(), Timestamp.class.getName()); + Asserts.assertEquals(annotatedType.getContentType(), Timestamp.class.getName()); SettingDescriptor newName = Events.getSetting(type, "newName"); Asserts.assertEquals(newName.getContentType(), Timespan.class.getName()); @@ -58,7 +58,7 @@ public class TestGetContentType { Asserts.assertNull(overridden.getContentType()); SettingDescriptor protectedBase = Events.getSetting(type, "protectedBase"); - Asserts.assertEquals(protectedBase.getContentType(), Frequency.class); + Asserts.assertEquals(protectedBase.getContentType(), Frequency.class.getName()); SettingDescriptor publicBase = Events.getSetting(type, "publicBase"); Asserts.assertEquals(publicBase.getContentType(), Timestamp.class.getName());