use of indi.mybatis.flying.pojo.condition.Account_Condition2 in project mybatis.flying by limeng32.
the class OrTest method testOr3.
@Test
@DatabaseSetup(type = DatabaseOperation.CLEAN_INSERT, value = "/indi/mybatis/flying/test/orTest/testOr3.xml")
@ExpectedDatabase(assertionMode = DatabaseAssertionMode.NON_STRICT, value = "/indi/mybatis/flying/test/orTest/testOr3.result.xml")
@DatabaseTearDown(type = DatabaseOperation.DELETE_ALL, value = "/indi/mybatis/flying/test/orTest/testOr3.result.xml")
public void testOr3() {
LoginLog_Condition lc4 = new LoginLog_Condition();
Account_Condition2 ac = new Account_Condition2();
ac.setNameEqualsOr("ann", "bob");
lc4.setAccount(ac);
lc4.setIpLikeFilter("1");
int i4 = loginLogService.count(lc4);
Assert.assertEquals(2, i4);
}
Aggregations