Skip to content

Commit

Permalink
METAGEN-103 Fixing existing checkstyle violations
Browse files Browse the repository at this point in the history
  • Loading branch information
hferentschik authored and stliu committed Nov 11, 2013
1 parent 5fbcad2 commit a12b9d7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
Expand Up @@ -31,4 +31,5 @@ public class Shop {
String name;
}



Expand Up @@ -29,4 +29,5 @@ public class Shop {
String name;
}



Expand Up @@ -174,7 +174,7 @@ public static Class<?> getMetamodelClassFor(Class<?> entityClass) {
String metaModelClassName = entityClass.getName() + META_MODEL_CLASS_POSTFIX;
try {
URL outDirUrl = OUT_BASE_DIR.toURI().toURL();
URL urls[] = new URL[1];
URL[] urls = new URL[1];
urls[0] = outDirUrl;
URLClassLoader classLoader = new URLClassLoader( urls, TestUtil.class.getClassLoader() );
return classLoader.loadClass( metaModelClassName );
Expand Down
Expand Up @@ -16,12 +16,10 @@
*/
package org.hibernate.jpamodelgen.test.xmlmetacomplete.singlepu;

import java.util.HashMap;
import java.util.Map;

import org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor;
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 static org.hibernate.jpamodelgen.test.util.TestUtil.assertNoSourceFileGeneratedFor;
Expand All @@ -31,19 +29,12 @@
*/
public class XmlMetaDataCompleteSinglePersistenceUnitTest extends CompilationTest {
@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() {
// 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
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;
// }
}

0 comments on commit a12b9d7

Please sign in to comment.