package org.battlestar.engine;
import static org.junit.Assert.*;
import org.junit.Test;
import com.google.appengine.api.memcache.MemcacheService;
import com.google.appengine.api.memcache.MemcacheServiceFactory;
public class MySecondTest extends LocalCacheTestBase2GAE{
// run this test twice to prove we're not leaking any state across tests
private void doTest() {
MemcacheService ms = MemcacheServiceFactory.getMemcacheService();
assertFalse(ms.contains("yar"));
ms.put("yar", "foo");
assertTrue(ms.contains("yar"));
}
@Test
public void testInsert1() {
doTest();
}
@Test
public void testInsert2() {
doTest();
}
}