// File generated from template
package ch.skymarshall.tcwriter.examples;

import ch.skymarshall.tcwriter.examples.api.interfaces.dto.*;
import ch.skymarshall.tcwriter.examples.api.interfaces.selectors.*;
import ch.skymarshall.tcwriter.examples.api.interfaces.*;
import ch.skymarshall.tcwriter.recording.*;

import org.junit.Before;
import org.junit.Test;

public class GeneratedTest {

	private CustomerTestRole customer;
	private DeliveryTestRole deliveryGuy;

	@Before
	public void prepareApis() {
		final ExampleService testedService = new ExampleService();
		customer = new CustomerTestRole(testedService);
		TestActors.register(customer, "customer", null);
		deliveryGuy = new DeliveryTestRole(testedService);
		TestActors.register(deliveryGuy, "deliveryGuy", null);
		ch.skymarshall.tcwriter.TestFeature.aspectjRecorder().enable();
		ch.skymarshall.tcwriter.TestFeature.aspectjStepping(); // don't enable by default
	}
	
	@Test
	public void testCase() {
		
	}

}
@@ -954,16 +954,1997 @@
 ase() %7B%0A
+%09%09// Step 1: As customer, I go on internet and buy a coffee machine of brand %22OldSchool%22 (ISO: yes)%0A%09%09ch.skymarshall.tcwriter.examples.api.interfaces.selectors.BuyingLocationSelector var1 = BuyingLocationSelector.onInternet();%0A%09%09ch.skymarshall.tcwriter.examples.api.interfaces.dto.TestItem var2 = TestItem.coffeeMachineOfBrand(%22OldSchool%22);%0A%09%09var2.setISO();%0A%09%09customer.buy(var1, var2);%0A%09%09%0A%09%09// Step 2: As delivery company, I deliver the item%0A%09%09deliveryGuy.deliverItem();%0A%09%09%0A%09%09// Step 3: As customer, I get the delivered package and check that the packaged item is a coffee machine of brand %22OldSchool%22 (ISO: yes)%0A%09%09ch.skymarshall.tcwriter.examples.api.interfaces.selectors.PackageDeliverySelector var5 = PackageDeliverySelector.deliveredItem();%0A%09%09ch.skymarshall.tcwriter.examples.api.interfaces.dto.TestItem var6 = TestItem.coffeeMachineOfBrand(%22OldSchool%22);%0A%09%09var6.setISO();%0A%09%09customer.checkPackage(var5, var6);%0A%09%09%0A%09%09// Step 4: As customer, I resell the item for 10$%0A%09%09customer.resellOwnedItem(10);%0A%09%09%0A%09%09// Step 5: As customer, I go in a local shop and buy a tea pot%0A%09%09ch.skymarshall.tcwriter.examples.api.interfaces.selectors.BuyingLocationSelector var9 = BuyingLocationSelector.inLocalShop();%0A%09%09ch.skymarshall.tcwriter.examples.api.interfaces.dto.TestItem var10 = TestItem.teaPot();%0A%09%09customer.buy(var9, var10);%0A%09%09%0A%09%09// Step 6: As customer, I get the package bought at the shop and check that the packaged item is a tea pot%0A%09%09ch.skymarshall.tcwriter.examples.api.interfaces.selectors.PackageDeliverySelector var13 = PackageDeliverySelector.fromShop();%0A%09%09ch.skymarshall.tcwriter.examples.api.interfaces.dto.TestItem var14 = TestItem.teaPot();%0A%09%09customer.checkPackage(var13, var14);%0A%09%09%0A%09%09// Step 7: As customer, I resell the item for 10$%0A%09%09customer.resellOwnedItem(10);%0A%09%09%0A%09%09// Step 8: As customer, I find another brand%0A%09%09java.lang.String ref8 = customer.findAnotherBrand();%0A%09%09%0A%09%09// Step 9: As customer, I keep the note %22%5BValue of step 8: MidClass%5D%22%0A%09%09customer.keepNote(ref8);%0A%09%09%0A
 %09%09%0A%09%7D%0A%0A%7D

Put back emptied test