METAGEN-103 Fixing existing checkstyle violations
This commit is contained in:
parent
5fbcad2e88
commit
a12b9d7fd5
|
@ -32,3 +32,4 @@ public class Shop {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -30,3 +30,4 @@ public class Shop {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -174,7 +174,7 @@ public class TestUtil {
|
||||||
String metaModelClassName = entityClass.getName() + META_MODEL_CLASS_POSTFIX;
|
String metaModelClassName = entityClass.getName() + META_MODEL_CLASS_POSTFIX;
|
||||||
try {
|
try {
|
||||||
URL outDirUrl = OUT_BASE_DIR.toURI().toURL();
|
URL outDirUrl = OUT_BASE_DIR.toURI().toURL();
|
||||||
URL urls[] = new URL[1];
|
URL[] urls = new URL[1];
|
||||||
urls[0] = outDirUrl;
|
urls[0] = outDirUrl;
|
||||||
URLClassLoader classLoader = new URLClassLoader( urls, TestUtil.class.getClassLoader() );
|
URLClassLoader classLoader = new URLClassLoader( urls, TestUtil.class.getClassLoader() );
|
||||||
return classLoader.loadClass( metaModelClassName );
|
return classLoader.loadClass( metaModelClassName );
|
||||||
|
|
|
@ -16,12 +16,10 @@
|
||||||
*/
|
*/
|
||||||
package org.hibernate.jpamodelgen.test.xmlmetacomplete.singlepu;
|
package org.hibernate.jpamodelgen.test.xmlmetacomplete.singlepu;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor;
|
import org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor;
|
||||||
import org.hibernate.jpamodelgen.test.util.CompilationTest;
|
import org.hibernate.jpamodelgen.test.util.CompilationTest;
|
||||||
import org.hibernate.jpamodelgen.test.util.TestUtil;
|
import org.hibernate.jpamodelgen.test.util.WithClasses;
|
||||||
|
import org.hibernate.jpamodelgen.test.util.WithProcessorOption;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import static org.hibernate.jpamodelgen.test.util.TestUtil.assertNoSourceFileGeneratedFor;
|
import static org.hibernate.jpamodelgen.test.util.TestUtil.assertNoSourceFileGeneratedFor;
|
||||||
|
@ -31,19 +29,12 @@ import static org.hibernate.jpamodelgen.test.util.TestUtil.assertNoSourceFileGen
|
||||||
*/
|
*/
|
||||||
public class XmlMetaDataCompleteSinglePersistenceUnitTest extends CompilationTest {
|
public class XmlMetaDataCompleteSinglePersistenceUnitTest extends CompilationTest {
|
||||||
@Test
|
@Test
|
||||||
|
@WithClasses(org.hibernate.jpamodelgen.test.xmlmetacomplete.multiplepus.Dummy.class)
|
||||||
|
@WithProcessorOption(key = JPAMetaModelEntityProcessor.PERSISTENCE_XML_OPTION,
|
||||||
|
value = "org/hibernate/jpamodelgen/test/xmlmetacomplete/singlepu/persistence.xml")
|
||||||
public void testNoMetaModelGenerated() {
|
public void testNoMetaModelGenerated() {
|
||||||
// the xml mapping files used in the example say that the xml data is meta complete. For that
|
// the xml mapping files used in the example say that the xml data is meta complete. For that
|
||||||
// reason there should be no meta model source file for the annotated Dummy entity
|
// reason there should be no meta model source file for the annotated Dummy entity
|
||||||
assertNoSourceFileGeneratedFor( Dummy.class );
|
assertNoSourceFileGeneratedFor( Dummy.class );
|
||||||
}
|
}
|
||||||
|
|
||||||
// @Override
|
|
||||||
// protected Map<String, String> getProcessorOptions() {
|
|
||||||
// Map<String, String> properties = new HashMap<String, String>();
|
|
||||||
// properties.put(
|
|
||||||
// JPAMetaModelEntityProcessor.PERSISTENCE_XML_OPTION,
|
|
||||||
// TestUtil.fcnToPath( XmlMetaDataCompleteSinglePersistenceUnitTest.class.getPackage().getName() ) + "/persistence.xml"
|
|
||||||
// );
|
|
||||||
// return properties;
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue