package app.s3.rw.map.com.aol.micro.server; import static org.hamcrest.CoreMatchers.containsString; import static org.junit.Assert.assertThat; import java.util.concurrent.ExecutionException; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import com.aol.micro.server.MicroserverApp; import com.aol.micro.server.testing.RestAgent; public class S3RunnerTest { RestAgent rest = new RestAgent(); MicroserverApp server; @Before public void startServer() { server = new MicroserverApp( () -> "simple-app"); server.start(); } @After public void stopServer() { server.stop(); } @Test @Ignore public void runAppAndBasicTest() throws InterruptedException, ExecutionException { rest.get("http://localhost:8080/simple-app/s3/put"); assertThat(rest.get("http://localhost:8080/simple-app/s3/get"), containsString("world")); } }