* @author Max Ross <maxr@google.com>
*/
public class JDOTableAndColumnTest extends JDOTestCase {
public void testInsert() throws EntityNotFoundException {
HasTableAndColumnsInMappingJDO htacim = new HasTableAndColumnsInMappingJDO();
htacim.setFoo("foo val");
makePersistentInTxn(htacim, TXN_START_END);
assertNotNull(htacim.getId());
Entity entity = ds.get(KeyFactory.createKey(
HasTableAndColumnsInMappingJDO.TABLE_NAME, htacim.getId()));
assertNotNull(entity);
assertEquals(HasTableAndColumnsInMappingJDO.TABLE_NAME, entity.getKind());
assertEquals("foo val", entity.getProperty(HasTableAndColumnsInMappingJDO.FOO_COLUMN_NAME));
}