Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.j256.ormlite.spring;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 
 import org.junit.Test;
 
public class DaoFactoryTest extends BaseCoreTest {
		createTable(Foo.classtrue);
		Dao<FooObjectfooDao = DaoFactory.createDao(Foo.class);
		Foo foo = new Foo();
		assertEquals(1, fooDao.create(foo));
		Foo result = fooDao.queryForId(foo.id);
		assertNotNull(result);
		assertEquals(foo.idresult.id);
	}
		createTable(Foo.classtrue);
		Dao<FooObjectfooDao =
				DaoFactory.createDao(, DatabaseTableConfig.fromClass(Foo.class));
		Foo foo = new Foo();
		assertEquals(1, fooDao.create(foo));
		Foo result = fooDao.queryForId(foo.id);
		assertNotNull(result);
		assertEquals(foo.idresult.id);
	}
New to GrepCode? Check out our FAQ X