package com.ociweb.oe.greenlightning.api;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

import com.ociweb.gl.api.GreenRuntime;

/**
 * Unit test for simple App.
 */
public class AppTest { 

	
	 @Test
	    public void testApp()
	    {
		 	StringBuilder result = new StringBuilder();
		 	boolean cleanExit = GreenRuntime.testUntilShutdownRequested(new Startup(result), 100);
		 	
		 	/////////////////////
		 	//System.out.println(result);
		    ////////////////////
		 	
		 	assertTrue(cleanExit);
		 	assertEquals("Hello, this message will display once at start\n",result.toString());
		 	
			
	    }
}

@@ -367,16 +367,23 @@
 nExit = 
+%0A%09%09 %09%09%09
 GreenRun
@@ -391,16 +391,26 @@
 ime.test
+Concurrent
 UntilShu
@@ -451,20 +451,16 @@
 , 100);%0A
-%09%09 %09
 %0A%09%09 %09///

update test for concurrent