@@ -65,37 +65,41 @@ public static void prepare() throws IOException {
65
65
@ Test
66
66
public void testProc () throws Exception {
67
67
testProc ("testProc3030" , PXML30 , OXML30 );
68
- testProc ("testProc3031 " , PXML30 , OXML31 );
68
+ testProc ("testProc3131 " , PXML31 , OXML31 );
69
69
}
70
70
71
71
@ Test
72
72
public void testGenerateComment () throws Exception {
73
73
testGenerateComment ("testGenerateComment3030" , PXML30 , OXML30 );
74
- testGenerateComment ("testGenerateComment3031 " , PXML30 , OXML31 );
74
+ testGenerateComment ("testGenerateComment3131 " , PXML31 , OXML31 );
75
75
}
76
76
77
77
@ Test
78
78
public void testGenerate () throws Exception {
79
79
testGenerate ("testGenerate3030" , PXML30 , OXML30 );
80
- testGenerate ("testGenerate3031 " , PXML30 , OXML31 );
80
+ testGenerate ("testGenerate3131 " , PXML31 , OXML31 );
81
81
}
82
82
83
83
@ Test
84
84
public void testTypeUse () throws Exception {
85
85
testTypeUse ("testTypeUse3030" , PXML30 , OXML30 );
86
- testTypeUse ("testTypeUse3031 " , PXML30 , OXML31 );
86
+ testTypeUse ("testTypeUse3131 " , PXML31 , OXML31 );
87
87
}
88
88
89
89
@ Test
90
90
public void testProcessorLoggingOffFromCmdLine () throws Exception {
91
91
verifyLogging ("testProcessorLoggingOffFromCmdLine" , PXML30 , false ,
92
92
"-Aeclipselink.logging.level.processor=OFF" );
93
+ verifyLogging ("testProcessorLoggingOffFromCmdLine" , PXML31 , false ,
94
+ "-Aeclipselink.logging.level.processor=OFF" );
93
95
}
94
96
95
97
@ Test
96
98
public void testGlobalLoggingOffFromCmdLine () throws Exception {
97
99
verifyLogging ("testGlobalLoggingOffFromCmdLine" , PXML30 , false ,
98
100
"-Aeclipselink.logging.level=OFF" );
101
+ verifyLogging ("testGlobalLoggingOffFromCmdLine" , PXML31 , false ,
102
+ "-Aeclipselink.logging.level=OFF" );
99
103
}
100
104
101
105
@ Test
@@ -118,12 +122,16 @@ public void testGlobalLoggingOffFromPU() throws Exception {
118
122
public void testProcessorLoggingFinestFromCmdLine () throws Exception {
119
123
verifyLogging ("testProcessorLoggingFinestFromCmdLine" , PXML30 , true ,
120
124
"-Aeclipselink.logging.level.processor=FINEST" );
125
+ verifyLogging ("testProcessorLoggingFinestFromCmdLine" , PXML31 , true ,
126
+ "-Aeclipselink.logging.level.processor=FINEST" );
121
127
}
122
128
123
129
@ Test
124
130
public void testGlobalLoggingFinestFromCmdLine () throws Exception {
125
131
verifyLogging ("testGlobalLoggingFinestFromCmdLine" , PXML30 , true ,
126
132
"-Aeclipselink.logging.level=FINEST" );
133
+ verifyLogging ("testGlobalLoggingFinestFromCmdLine" , PXML31 , true ,
134
+ "-Aeclipselink.logging.level=FINEST" );
127
135
}
128
136
129
137
@ Test
@@ -355,6 +363,19 @@ private static class Result {
355
363
" </persistence-unit>\n " +
356
364
"</persistence>" ;
357
365
366
+ private static final String PXML31 = "<persistence xmlns=\" https://jakarta.ee/xml/ns/persistence\" \n " +
367
+ " xmlns:xsi=\" http://www.w3.org/2001/XMLSchema-instance\" \n " +
368
+ " xsi:schemaLocation=\" https://jakarta.ee/xml/ns/persistence\n " +
369
+ " https://jakarta.ee/xml/ns/persistence/persistence_3_1.xsd\" \n " +
370
+ " version=\" 3.1\" >\n " +
371
+ " <persistence-unit name=\" sample-pu\" transaction-type=\" RESOURCE_LOCAL\" >\n " +
372
+ " <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>\n " +
373
+ " <exclude-unlisted-classes>false</exclude-unlisted-classes>\n " +
374
+ " <properties>\n " +
375
+ " </properties>\n " +
376
+ " </persistence-unit>\n " +
377
+ "</persistence>" ;
378
+
358
379
private static final String OXML30 = "<entity-mappings xmlns=\" https://jakarta.ee/xml/ns/persistence/orm\" \n " +
359
380
" xmlns:xsi=\" http://www.w3.org/2001/XMLSchema-instance\" \n " +
360
381
" xsi:schemaLocation=\" https://jakarta.ee/xml/ns/persistence/orm https://jakarta.ee/xml/ns/persistence/orm/orm_3_0.xsd\" \n " +
0 commit comments