package sandbox;

import com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig;
import com.google.appengine.tools.development.testing.LocalServiceTestHelper;
import com.googlecode.objectify.ObjectifyService;
import com.googlecode.objectify.VoidWork;

import budgeter.Expense;
import datastore.Datastore;

/*
 * File for local testing/development
 */
public class Sandbox {

	public static void main(String[] args) {
		final LocalServiceTestHelper helper = new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig());
		helper.setUp();
		ObjectifyService.register(Expense.class);
		
		ObjectifyService.run(new VoidWork() {
		    public void vrun() {
		    	// ENTER YOUR TESTING CODE HERE
		    	Expense exp = new Expense("Wal-mart", "Dollar", (float) 5.3);
				exp.save();
				System.out.println("Saved:" + exp);
				System.out.println("Fetched: " + Datastore.getEntityById(Expense.class, exp.getId()));
		    }
		});
		
		helper.tearDown();
	}

}

@@ -1,16 +1,21 @@
 package 
+test.
 sandbox;

fix import