package node.company;

import data.trainnetwork.BookableSection;
import transaction.FailedTransactionException;
import transaction.TransactionContent;
import transaction.Vault;

public abstract class TransactionContentGenerator extends TransactionContent<String, Vault<BookableSection>> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3685066724312335230L;

	public static TransactionContent<String, Vault<BookableSection>> getTestContent() {
		TransactionContent<String, Vault<BookableSection>> c 
			= new TransactionContent<String, Vault<BookableSection>>() {
			private static final long serialVersionUID = -8167406104784795108L;
			@Override
			public void run() throws FailedTransactionException {
				// TODO Auto-generated method stub
//				BookableSection s = new BookableSection("section", 1, DateTime.now(), 10, 10);
//				System.out.println("EXECUTING");
//				data.put(s.getID(), new Vault<BookableSection>(s));
				System.out.println("tc:hello");
			}
		};
		
		return c;
	}
	
	
}

@@ -16,16 +16,48 @@
 mpany;%0A%0A
+import org.joda.time.DateTime;%0A%0A
 import d
@@ -749,49 +749,8 @@
 n %7B%0A
-%09%09%09%09// TODO Auto-generated method stub%0A//
 %09%09%09%09
@@ -828,18 +828,16 @@
 0, 10);%0A
-//
 %09%09%09%09Syst
@@ -869,10 +869,8 @@
 %22);%0A
-//
 %09%09%09%09
@@ -925,44 +925,8 @@
 ));%0A
-%09%09%09%09System.out.println(%22tc:hello%22);%0A
 %09%09%09%7D

Enable full transaction test