1
- package org .hibernate .tool .orm .jbt .util ;
1
+ package org .hibernate .tool .orm .jbt .internal . util ;
2
2
3
3
import static org .junit .jupiter .api .Assertions .assertEquals ;
4
4
import static org .junit .jupiter .api .Assertions .assertFalse ;
24
24
import org .hibernate .mapping .PersistentClass ;
25
25
import org .hibernate .mapping .Table ;
26
26
import org .hibernate .tool .internal .reveng .strategy .DefaultStrategy ;
27
- import org .hibernate .tool .orm .jbt .internal .util .MetadataHelper ;
28
- import org .hibernate .tool .orm .jbt .internal .util .MockConnectionProvider ;
29
- import org .hibernate .tool .orm .jbt .internal .util .MockDialect ;
30
27
import org .junit .jupiter .api .BeforeEach ;
31
28
import org .junit .jupiter .api .Test ;
32
29
import org .w3c .dom .Document ;
37
34
public class NativeConfigurationTest {
38
35
39
36
private static final String TEST_HBM_XML_STRING =
40
- "<hibernate-mapping package='org.hibernate.tool.orm.jbt.util'>" +
37
+ "<hibernate-mapping package='org.hibernate.tool.orm.jbt.internal. util'>" +
41
38
" <class name='NativeConfigurationTest$Foo'>" +
42
39
" <id name='id'/>" +
43
40
" </class>" +
@@ -101,7 +98,7 @@ public void testConfigureDocument() throws Exception {
101
98
fileWriter .close ();
102
99
103
100
String fooClassName =
104
- "org.hibernate.tool.orm.jbt.util.NativeConfigurationTest$Foo" ;
101
+ "org.hibernate.tool.orm.jbt.internal. util.NativeConfigurationTest$Foo" ;
105
102
Metadata metadata = MetadataHelper .getMetadata (nativeConfiguration );
106
103
assertNull (metadata .getEntityBinding (fooClassName ));
107
104
nativeConfiguration .configure (document );
@@ -120,10 +117,10 @@ public void testBuildMappings() throws Exception {
120
117
121
118
@ Test
122
119
public void testGetClassMappings () throws Exception {
123
- String fooHbmXmlFilePath = "org/hibernate/tool/orm/jbt/util" ;
120
+ String fooHbmXmlFilePath = "org/hibernate/tool/orm/jbt/internal/ util" ;
124
121
String fooHbmXmlFileName = "NativeConfigurationTest$Foo.hbm.xml" ;
125
122
String fooClassName =
126
- "org.hibernate.tool.orm.jbt.util.NativeConfigurationTest$Foo" ;
123
+ "org.hibernate.tool.orm.jbt.internal. util.NativeConfigurationTest$Foo" ;
127
124
URL url = getClass ().getProtectionDomain ().getCodeSource ().getLocation ();
128
125
File hbmXmlFileDir = new File (new File (url .toURI ()),fooHbmXmlFilePath );
129
126
hbmXmlFileDir .deleteOnExit ();
@@ -205,10 +202,10 @@ public void testGetEntityResolver() throws Exception {
205
202
206
203
@ Test
207
204
public void testGetClassMapping () throws Exception {
208
- String fooHbmXmlFilePath = "org/hibernate/tool/orm/jbt/util" ;
205
+ String fooHbmXmlFilePath = "org/hibernate/tool/orm/jbt/internal/ util" ;
209
206
String fooHbmXmlFileName = "NativeConfigurationTest$Foo.hbm.xml" ;
210
207
String fooClassName =
211
- "org.hibernate.tool.orm.jbt.util.NativeConfigurationTest$Foo" ;
208
+ "org.hibernate.tool.orm.jbt.internal. util.NativeConfigurationTest$Foo" ;
212
209
URL url = getClass ().getProtectionDomain ().getCodeSource ().getLocation ();
213
210
File hbmXmlFileDir = new File (new File (url .toURI ()),fooHbmXmlFilePath );
214
211
hbmXmlFileDir .deleteOnExit ();
@@ -228,7 +225,7 @@ public void testGetClassMapping() throws Exception {
228
225
229
226
@ Test
230
227
public void testGetTableMappings () throws Exception {
231
- String fooHbmXmlFilePath = "org/hibernate/tool/orm/jbt/util" ;
228
+ String fooHbmXmlFilePath = "org/hibernate/tool/orm/jbt/internal/ util" ;
232
229
String fooHbmXmlFileName = "NativeConfigurationTest$Foo.hbm.xml" ;
233
230
URL url = getClass ().getProtectionDomain ().getCodeSource ().getLocation ();
234
231
File hbmXmlFileDir = new File (new File (url .toURI ()),fooHbmXmlFilePath );
0 commit comments