use of mbg.test.ib2j5.generated.miscellaneous.dao.RegexrenameDAO in project generator by mybatis.
the class MiscellaneousTest method testRegexRenameInsertSelective.
@Test
public void testRegexRenameInsertSelective() {
RegexrenameDAO dao = getRegexrenameDAO();
try {
Regexrename record = new Regexrename();
record.setZipCode("99999");
dao.insertRegexrenameSelective(record);
Integer key = 1;
assertEquals(key, record.getId());
Regexrename returnedRecord = dao.selectRegexrenameByPrimaryKey(key);
assertNull(returnedRecord.getAddress());
assertEquals(record.getId(), returnedRecord.getId());
assertNull(returnedRecord.getName());
assertEquals(record.getZipCode(), returnedRecord.getZipCode());
} catch (SQLException e) {
fail(e.getMessage());
}
}
use of mbg.test.ib2j5.generated.miscellaneous.dao.RegexrenameDAO in project generator by mybatis.
the class MiscellaneousTest method testRegexRenameInsertSelective.
public void testRegexRenameInsertSelective() {
RegexrenameDAO dao = getRegexrenameDAO();
try {
Regexrename record = new Regexrename();
record.setZipCode("99999");
dao.insertRegexrenameSelective(record);
Integer key = new Integer(1);
assertEquals(key, record.getId());
Regexrename returnedRecord = dao.selectRegexrenameByPrimaryKey(key);
assertNull(returnedRecord.getAddress());
assertEquals(record.getId(), returnedRecord.getId());
assertNull(returnedRecord.getName());
assertEquals(record.getZipCode(), returnedRecord.getZipCode());
} catch (SQLException e) {
fail(e.getMessage());
}
}
use of mbg.test.ib2j5.generated.miscellaneous.dao.RegexrenameDAO in project generator by mybatis.
the class MiscellaneousTest method testRegexRenameInsert.
public void testRegexRenameInsert() {
RegexrenameDAO dao = getRegexrenameDAO();
try {
Regexrename record = new Regexrename();
record.setAddress("123 Main Street");
record.setName("Fred");
record.setZipCode("99999");
dao.insertRegexrename(record);
Regexrename returnedRecord = dao.selectRegexrenameByPrimaryKey(new Integer(1));
assertEquals(record.getAddress(), returnedRecord.getAddress());
assertEquals(record.getId(), returnedRecord.getId());
assertEquals(record.getName(), returnedRecord.getName());
assertEquals(record.getZipCode(), returnedRecord.getZipCode());
} catch (SQLException e) {
fail(e.getMessage());
}
}
use of mbg.test.ib2j5.generated.miscellaneous.dao.RegexrenameDAO in project generator by mybatis.
the class MiscellaneousTest method testRegexRenameInsert.
@Test
public void testRegexRenameInsert() {
RegexrenameDAO dao = getRegexrenameDAO();
try {
Regexrename record = new Regexrename();
record.setAddress("123 Main Street");
record.setName("Fred");
record.setZipCode("99999");
dao.insertRegexrename(record);
Regexrename returnedRecord = dao.selectRegexrenameByPrimaryKey(1);
assertEquals(record.getAddress(), returnedRecord.getAddress());
assertEquals(record.getId(), returnedRecord.getId());
assertEquals(record.getName(), returnedRecord.getName());
assertEquals(record.getZipCode(), returnedRecord.getZipCode());
} catch (SQLException e) {
fail(e.getMessage());
}
}
Aggregations