Search in sources :

Example 1 with Account_Condition2

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);
}
Also used : LoginLog_Condition(indi.mybatis.flying.pojo.condition.LoginLog_Condition) Account_Condition2(indi.mybatis.flying.pojo.condition.Account_Condition2) ExpectedDatabase(com.github.springtestdbunit.annotation.ExpectedDatabase) Test(org.junit.Test) DatabaseSetup(com.github.springtestdbunit.annotation.DatabaseSetup) DatabaseTearDown(com.github.springtestdbunit.annotation.DatabaseTearDown)

Aggregations

DatabaseSetup (com.github.springtestdbunit.annotation.DatabaseSetup)1 DatabaseTearDown (com.github.springtestdbunit.annotation.DatabaseTearDown)1 ExpectedDatabase (com.github.springtestdbunit.annotation.ExpectedDatabase)1 Account_Condition2 (indi.mybatis.flying.pojo.condition.Account_Condition2)1 LoginLog_Condition (indi.mybatis.flying.pojo.condition.LoginLog_Condition)1 Test (org.junit.Test)1