File tree 1 file changed +2
-3
lines changed
blackbird/src/test/java/com/fasterxml/jackson/module/blackbird/ser
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,7 @@ public class TestNoPackageSerialization extends BlackbirdTestBase
25
25
public void testSerializeDeserializeDefaultPackageClass () throws Exception {
26
26
// Define the source code for a class in the default package (no package
27
27
// declaration)
28
- String source = "package dynamicClassTest;" +
29
- "public class Person {" +
28
+ String source = "public class Person {" +
30
29
" public String name;" +
31
30
" public int age;" +
32
31
" public Person() {}" +
@@ -55,7 +54,7 @@ public void testSerializeDeserializeDefaultPackageClass() throws Exception {
55
54
56
55
// Load the compiled class using a URLClassLoader
57
56
try (URLClassLoader classLoader = new URLClassLoader (new URL [] { tempDir .toUri ().toURL () })) {
58
- Class <?> personClass = classLoader .loadClass ("dynamicClassTest. Person" );
57
+ Class <?> personClass = classLoader .loadClass ("Person" );
59
58
60
59
// Instantiate the Person object using reflection
61
60
Object personInstance = personClass .getConstructor (String .class , int .class )
You can’t perform that action at this time.
0 commit comments