package com.ociweb.oe.greenlightning.api;

import org.junit.Ignore;

import com.ociweb.gl.api.GreenRuntime;
import org.junit.Test;

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

	//cloud bees has no MQTT server to talk to.
	@Test
	@Ignore
	public void testApp()
	{
		long timeoutMS = 10_000;
		GreenRuntime.testUntilShutdownRequested(new MQTTClient(), timeoutMS);
	}
}

@@ -35,32 +35,39 @@
 ng.api;%0A%0Aimport 
+static 
 org.junit.Ignore
@@ -60,22 +60,58 @@
 g.junit.
-Ignore
+Assert.assertFalse;%0A%0Aimport org.junit.Test
 ;%0A%0Aimpor
@@ -143,39 +143,16 @@
 Runtime;
-%0Aimport org.junit.Test;
 %0A%0A/**%0A *
@@ -263,17 +263,8 @@
 est%0A
-%09@Ignore%0A
 %09pub
@@ -308,18 +308,17 @@
 S = 
-10
+5
 _000;%0A%09%09
 Gree
@@ -313,16 +313,45 @@
 _000;%0A%09%09
+boolean exitWithoutTimeout = 
 GreenRun
@@ -359,16 +359,26 @@
 ime.test
+Concurrent
 UntilShu
@@ -423,12 +423,48 @@
 utMS);%0A%09
-%7D
+%09assertFalse(exitWithoutTimeout);%0A%09%7D%0A
 %0A%7D%0A

update MQTT locgic to fix test