Add deploy profiles for standalone wildfly using cargo plugin and for runtime installed instance

This commit is contained in:
Alex Theedom
2017-01-04 22:42:19 +01:00
parent 2fd130e24b
commit d1c2e042ce
4 changed files with 170 additions and 107 deletions
+6
View File
@@ -10,6 +10,12 @@
<artifactId>ejb-client</artifactId>
<name>EJB3 Client Maven</name>
<description>EJB3 Client Maven</description>
<properties>
<junit.version>4.12</junit.version>
<maven-surefire-plugin.version>2.19</maven-surefire-plugin.version>
</properties>
<dependencies>
<dependency>
<groupId>org.wildfly</groupId>
@@ -1,16 +1,18 @@
package com.baeldung.ejb.setup.test;
import static org.junit.Assert.*;
import org.junit.Test;
import com.baeldung.ejb.client.EJBClient;
import com.baeldung.ejb.tutorial.HelloWorldBean;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class EJBSetupTest {
@Test
public void testEJBClient() {
public void EJBClientTest() {
EJBClient ejbClient = new EJBClient();
HelloWorldBean bean = new HelloWorldBean();
assertEquals(bean.getHelloWorld(), ejbClient.getEJBRemoteMessage());
}
}