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();
		String id = "this is the id";
		foo.id = id;
		assertEquals(1, fooDao.create(foo));
		Foo foo2 = fooDao.queryForId(foo.id);
		assertEquals(idfoo2.id);
	}
		createTable(Foo.classtrue);
		Dao<FooObjectfooDao =
				DaoFactory.createDao(, DatabaseTableConfig.fromClass(Foo.class));
		Foo foo = new Foo();
		String id = "this is the id";
		foo.id = id;
		assertEquals(1, fooDao.create(foo));
		Foo foo2 = fooDao.queryForId(foo.id);
		assertEquals(idfoo2.id);
	}
New to GrepCode? Check out our FAQ X