METAGEN-67 Renaming tests to reflect actual problem

This commit is contained in:
Hardy Ferentschik 2012-01-17 14:03:12 +01:00 committed by Strong Liu
parent 99f40d7e06
commit 214e357d13
4 changed files with 7 additions and 9 deletions

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.hibernate.jpamodelgen.test.manytoone;
package org.hibernate.jpamodelgen.test.mappedsuperclasswithoutid;
import javax.persistence.Entity;
import javax.persistence.Id;

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.hibernate.jpamodelgen.test.manytoone;
package org.hibernate.jpamodelgen.test.mappedsuperclasswithoutid;
import org.testng.annotations.Test;
@ -26,9 +26,9 @@ import static org.hibernate.jpamodelgen.test.util.TestUtil.assertPresenceOfField
/**
* @author Hardy Ferentschik
*/
public class MappedSuperclassManyToOneTest extends CompilationTest {
public class MappedSuperclassWithoutExplicitIdTest extends CompilationTest {
@Test
public void testExtractClosestRealType() {
public void testRightAccessTypeForMappedSuperclass() {
assertMetamodelClassGeneratedFor( ConcreteProduct.class );
assertMetamodelClassGeneratedFor( Product.class );
assertMetamodelClassGeneratedFor( Shop.class );
@ -37,6 +37,6 @@ public class MappedSuperclassManyToOneTest extends CompilationTest {
@Override
protected String getPackageNameOfCurrentTest() {
return MappedSuperclassManyToOneTest.class.getPackage().getName();
return MappedSuperclassWithoutExplicitIdTest.class.getPackage().getName();
}
}

View File

@ -14,10 +14,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.hibernate.jpamodelgen.test.manytoone;
package org.hibernate.jpamodelgen.test.mappedsuperclasswithoutid;
import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.hibernate.jpamodelgen.test.manytoone;
package org.hibernate.jpamodelgen.test.mappedsuperclasswithoutid;
import javax.persistence.Entity;
import javax.persistence.Id;