Removing isEntityClassNotAudited() and isEntityNameNotAudited() method for later discussion.

This commit is contained in:
Hernan 2010-12-09 00:10:21 -02:00 committed by adamw
parent 323d9dd16e
commit 102faba8f4
2 changed files with 8 additions and 17 deletions

View File

@ -104,11 +104,8 @@ public class ReadEntityWithAuditedCollectionTest extends AbstractSessionTest{
@Test(dependsOnMethods="testObtainCollectionWithEntityNameAndNotAuditedMode")
public void testObtainEntityNameCollectionWithEntityNameAndNotAuditedMode() {
if(getAuditReader().isEntityNameNotAudited("Personaje")) {
person1_1 = (Person)getSession().get("Personaje", id_pers1);
} else {
assert(false);
}
// entityName personaje is marked as NOT_AUDITED
person1_1 = (Person)getSession().get("Personaje", id_pers1);
String currCar1EN = getSession().getEntityName(currentCar1);
String currPerson1EN = getSession().getEntityName(currentPerson1);
@ -137,11 +134,9 @@ public class ReadEntityWithAuditedCollectionTest extends AbstractSessionTest{
owner.getAge();
}
if(getAuditReader().isEntityNameNotAudited("Personaje")) {
person1_1 = (Person)getSession().get("Personaje", id_pers1);
} else {
assert(false);
}
// entityName personaje is marked as NOT_AUDITED
person1_1 = (Person)getSession().get("Personaje", id_pers1);
person1_1.getName();
person1_1.getAge();

View File

@ -114,13 +114,9 @@ public class ReadEntityAssociatedNotAuditedTest extends AbstractSessionTest{
Car car2 = getAuditReader().find(Car.class, id_car2, 2);
car2.getOwner().getName();
if(getAuditReader().isEntityNameNotAudited("Personaje")) {
Person person = (Person)getSession().get("Personaje", id_pers1);
person.getName();
} else {
// it is not_audited
assert(false);
}
// entityName personaje is marked as NOT_AUDITED
Person person = (Person)getSession().get("Personaje", id_pers1);
person.getName();
}
}