@Test
public void testAnotherAwfulTableInsert() {
SqlSession sqlSession = sqlSessionFactory.openSession();
try {
Anotherawfultable record = new Anotherawfultable();
record.setId(5);
record.setSelect("select");
record.setInsert("insert");
sqlSession.insert("mbg.test.mb3.generated.miscellaneous.xml.AnotherawfultableMapper.insert", record);
Anotherawfultable key = new Anotherawfultable();
key.setId(5);
Anotherawfultable returnedRecord = (Anotherawfultable)
sqlSession.selectOne("mbg.test.mb3.generated.miscellaneous.xml.AnotherawfultableMapper.selectByPrimaryKey",
key);
assertEquals(record.getId(), returnedRecord.getId());
assertEquals(record.getSelect(), returnedRecord.getSelect());
assertEquals(record.getInsert(), returnedRecord.getInsert());
assertEquals(record.getUpdate(), returnedRecord.getUpdate());
assertEquals(record.getDelete(), returnedRecord.getDelete());
} finally {
sqlSession.close();
}
}