BAEL-3267: Convert the integration tests to Live tests (#9634)

This commit is contained in:
kwoyke
2020-07-04 20:31:08 +02:00
committed by GitHub
parent c6eba53f90
commit d93ee9466a
3 changed files with 13 additions and 14 deletions

View File

@@ -6,7 +6,12 @@ import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class EJBSetupIntegrationTest {
/**
* This Live Test requires:
* * run the `spring-ejb-remote` module with the following command: `mvn clean package cargo:run -Pwildfly-standalone`
*
*/
public class EJBSetupLiveTest {
@Test
public void EJBClientTest() {

View File

@@ -8,7 +8,12 @@ import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.junit.Assert.*;
public class TextApplicationIntegrationTest {
/**
* This Live Test requires:
* * run the `spring-ejb-remote` module with the following command: `mvn clean package cargo:run -Pwildfly-standalone`
*
*/
public class TextApplicationLiveTest {
private static ByteArrayOutputStream outContent;
@@ -26,6 +31,6 @@ public class TextApplicationIntegrationTest {
@Test
public void givenInputString_whenCompareTtoStringPrintedToConsole_thenSuccessful() throws NamingException {
TextApplication.main(new String[]{});
assertEquals("SAMPLE TEXT", outContent.toString());
assertTrue(outContent.toString().contains("SAMPLE TEXT"));
}
}

View File

@@ -1,11 +0,0 @@
package com.baeldung.springejbclient;
import org.junit.Test;
public class SpringEjbClientApplicationIntegrationTest {
@Test
public void contextLoads() {
}
}