package com.antonytrupe.server;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig;
import com.google.appengine.tools.development.testing.LocalMemcacheServiceTestConfig;
import com.google.appengine.tools.development.testing.LocalServiceTestHelper;
public class GAETestCase {
LocalServiceTestHelper helper;
@Before
public void setUp() {
LocalDatastoreServiceTestConfig dsConfig = new LocalDatastoreServiceTestConfig();
LocalMemcacheServiceTestConfig mcConfig = new LocalMemcacheServiceTestConfig();
dsConfig.setBackingStoreLocation("C:\\local_db.bin");
// this needs to be false to persist, but in unit tests, why do so?
dsConfig.setNoStorage(true);
dsConfig.setDefaultHighRepJobPolicyUnappliedJobPercentage(0);
this.helper = new LocalServiceTestHelper(dsConfig, mcConfig).setUp();
}
@After
public void tearDown() {
this.helper.tearDown();
}
// make sure we can setUp and tearDown without any issues
@Test
public void test() {
//
}
}