fix filter test

This commit is contained in:
Loredana 2019-06-02 10:01:12 +03:00
parent ea4c34b342
commit 4abfc5f863
1 changed files with 2 additions and 5 deletions

View File

@ -122,14 +122,11 @@ public class DynamicMappingIntegrationTest {
Employee employee = session.get(Employee.class, 1);
assertThat(employee.getGrossIncome()).isEqualTo(10_000);
session.close();
session = HibernateUtil.getSessionFactory().openSession();
transaction = session.beginTransaction();
session.disableFilter("incomeLevelFilter");
employees = session.createQuery("from Employee").getResultList();
assertThat(employees).hasSize(0);
assertThat(employees).hasSize(3);
}