BAEL-3267: Convert the integration tests to Live tests (#9634)
This commit is contained in:
parent
a593cfc3ef
commit
15c11266ad
|
@ -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() {
|
|
@ -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"));
|
||||
}
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
package com.baeldung.springejbclient;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class SpringEjbClientApplicationIntegrationTest {
|
||||
|
||||
@Test
|
||||
public void contextLoads() {
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue