38
38
* @key jfr
39
39
* @requires vm.hasJFR
40
40
* @library /test/lib /test/jdk
41
- * @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetDescription
41
+ * @run main/othervm jdk.jfr.api.metadata.settingdescriptor.TestGetContentType
42
42
*/
43
43
public class TestGetContentType {
44
44
@@ -49,7 +49,7 @@ public static void main(String[] args) throws Exception {
49
49
Asserts .assertNull (plain .getContentType ());
50
50
51
51
SettingDescriptor annotatedType = Events .getSetting (type , "annotatedType" );
52
- Asserts .assertNull (annotatedType .getContentType (), Timestamp .class .getName ());
52
+ Asserts .assertEquals (annotatedType .getContentType (), Timestamp .class .getName ());
53
53
54
54
SettingDescriptor newName = Events .getSetting (type , "newName" );
55
55
Asserts .assertEquals (newName .getContentType (), Timespan .class .getName ());
@@ -58,7 +58,7 @@ public static void main(String[] args) throws Exception {
58
58
Asserts .assertNull (overridden .getContentType ());
59
59
60
60
SettingDescriptor protectedBase = Events .getSetting (type , "protectedBase" );
61
- Asserts .assertEquals (protectedBase .getContentType (), Frequency .class );
61
+ Asserts .assertEquals (protectedBase .getContentType (), Frequency .class . getName () );
62
62
63
63
SettingDescriptor publicBase = Events .getSetting (type , "publicBase" );
64
64
Asserts .assertEquals (publicBase .getContentType (), Timestamp .class .getName ());
0 commit comments