@@ -239,7 +239,7 @@ public void testSerialization() throws Exception
239239 assertEquals ("{\" @type\" :\" typeB\" ,\" b\" :1}" , mapper .writeValueAsString (bean ));
240240
241241 // and default name ought to be simple class name; with context
242- assertEquals ("{\" @type\" :\" TestSubtypesWithSealedTypes $SubD\" ,\" d\" :0}" , mapper .writeValueAsString (new SubD ()));
242+ assertEquals ("{\" @type\" :\" SealedTypesWithSubtypesTest $SubD\" ,\" d\" :0}" , mapper .writeValueAsString (new SubD ()));
243243 }
244244
245245 @ Test
@@ -249,7 +249,7 @@ public void testDeserializationNonNamed() throws Exception
249249 // .registerSubtypes(SubC.class)
250250 .build ();
251251 // default name should be unqualified class name
252- SuperType bean = mapper .readValue ("{\" @type\" :\" TestSubtypesWithSealedTypes $SubC\" , \" c\" :1}" , SuperType .class );
252+ SuperType bean = mapper .readValue ("{\" @type\" :\" SealedTypesWithSubtypesTest $SubC\" , \" c\" :1}" , SuperType .class );
253253 assertSame (SubC .class , bean .getClass ());
254254 assertEquals (1 , ((SubC ) bean ).c );
255255 }
@@ -280,21 +280,21 @@ public void testEmptyBean() throws Exception
280280 .configure (SerializationFeature .FAIL_ON_EMPTY_BEANS , true )
281281 .build ();
282282 String json = mapper .writeValueAsString (new EmptyBean ());
283- assertEquals ("{\" @type\" :\" TestSubtypesWithSealedTypes $EmptyBean\" }" , json );
283+ assertEquals ("{\" @type\" :\" SealedTypesWithSubtypesTest $EmptyBean\" }" , json );
284284
285285 mapper = jsonMapperBuilder ()
286286 .configure (SerializationFeature .FAIL_ON_EMPTY_BEANS , false )
287287 .build ();
288288 json = mapper .writeValueAsString (new EmptyBean ());
289- assertEquals ("{\" @type\" :\" TestSubtypesWithSealedTypes $EmptyBean\" }" , json );
289+ assertEquals ("{\" @type\" :\" SealedTypesWithSubtypesTest $EmptyBean\" }" , json );
290290
291291 // and then with defaults
292292 mapper = jsonMapperBuilder ()
293293 .configure (SerializationFeature .FAIL_ON_EMPTY_BEANS , false )
294294 .activateDefaultTyping (NoCheckSubTypeValidator .instance , DefaultTyping .NON_FINAL )
295295 .build ();
296296 json = mapper .writeValueAsString (new EmptyNonFinal ());
297- assertEquals ("[\" tools.jackson.databind.jsontype.TestSubtypesWithSealedTypes $EmptyNonFinal\" ,{}]" , json );
297+ assertEquals ("[\" tools.jackson.databind.jsontype.SealedTypesWithSubtypesTest $EmptyNonFinal\" ,{}]" , json );
298298 }
299299
300300 @ Test
0 commit comments