use of indi.mybatis.flying.pojo.Permission in project mybatis.flying by limeng32.
the class WhiteListTest method testWhiteListInsertBatch.
@Test
@DatabaseSetup(connection = "dataSource1", type = DatabaseOperation.CLEAN_INSERT, value = "/indi/mybatis/flying/test/whiteListTest/testWhiteListInsertBatch.xml")
@ExpectedDatabase(connection = "dataSource1", override = false, assertionMode = DatabaseAssertionMode.NON_STRICT, value = "/indi/mybatis/flying/test/whiteListTest/testWhiteListInsertBatch.result.xml")
@DatabaseTearDown(connection = "dataSource1", type = DatabaseOperation.DELETE_ALL, value = "/indi/mybatis/flying/test/whiteListTest/testWhiteListInsertBatch.result.xml")
public void testWhiteListInsertBatch() {
Account_ account = new Account_();
account.setName("name");
account.setEmail("email");
account.setPassword("aaa");
Role_ role = new Role_();
role.setId(11);
account.setRole(role);
Permission permission = new Permission();
permission.setId(22);
account.setPermission(permission);
Collection<Account_> ac = new ArrayList<>();
ac.add(account);
accountService.insertBatchSimpleNoName(ac);
}
use of indi.mybatis.flying.pojo.Permission in project mybatis.flying by limeng32.
the class JMHSpringBootTest method test4.
@Benchmark
public void test4() {
Account_ a = new Account_();
a.setId(1L);
Permission p = new Permission();
p.setSecret("a");
a.setPermission(p);
Collection<Account_> account = accountService.selectAll(a);
Assert.assertNotNull(account);
}
Aggregations