package edu.iastate.music.marching.attendance.testlib;

import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;

import com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig;
import com.google.appengine.tools.development.testing.LocalServiceTestHelper;
import com.google.appengine.tools.development.testing.LocalUserServiceTestConfig;

import edu.iastate.music.marching.attendance.model.interact.DataTrain;

@Ignore
public class AbstractDatastoreTest {

	private DataTrain datatrain = null;

	private LocalServiceTestHelper helper = null;

	@Before
	public void setUp() {
		helper = new LocalServiceTestHelper(
				new LocalDatastoreServiceTestConfig(),
				new LocalUserServiceTestConfig());
		helper.setUp();
		datatrain = DataTrain.depart();
	}

	@After
	public void tearDown() {
		helper.tearDown();
		datatrain = null;
		helper = null;
	}

	protected final DataTrain getDataTrain() {
		if (datatrain == null) {
			throw new IllegalAccessError(
					"Access data train outside of a test case is not allowed.");
		} else {
			return datatrain;
		}
	}
}

@@ -49,16 +49,50 @@
 stlib;%0A%0A
+import junit.framework.TestCase;%0A%0A
 import o
@@ -521,16 +521,33 @@
 oreTest 
+extends TestCase 
 %7B%0A%0A%09priv

Extend JUnit base class TestCase, fixes #219