Skip to content

Commit

Permalink
Add MBeanHelper & Shuttering IT
Browse files Browse the repository at this point in the history
  • Loading branch information
Benster Nzewi authored and Benster Nzewi committed Apr 8, 2019
1 parent 47d9552 commit c0146f5
Show file tree
Hide file tree
Showing 18 changed files with 333 additions and 285 deletions.
247 changes: 66 additions & 181 deletions example-context/example-service/example-it/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,194 +116,79 @@
<scope>test</scope>
</dependency>

<!--<dependency>-->
<!--<groupId>org.wildfly</groupId>-->
<!--<artifactId>wildfly-client-all</artifactId>-->
<!--<version>16.0.0.Final</version>-->
<!--<exclusions>-->
<!--<exclusion>-->
<!--<groupId>org.jboss</groupId>-->
<!--<artifactId>jboss-ejb-client</artifactId>-->
<!--</exclusion>-->
<!--<exclusion>-->
<!--<groupId>org.jboss</groupId>-->
<!--<artifactId>jboss-remote-naming</artifactId>-->
<!--</exclusion>-->
<!--<exclusion>-->
<!--<groupId>org.jboss.logging</groupId>-->
<!--<artifactId>jboss-logging</artifactId>-->
<!--</exclusion>-->
<!--<exclusion>-->
<!--<groupId>org.jboss.marshalling</groupId>-->
<!--<artifactId>jboss-marshalling-river</artifactId>-->
<!--</exclusion>-->
<!--<exclusion>-->
<!--<groupId>org.jboss.remoting</groupId>-->
<!--<artifactId>jboss-remoting</artifactId>-->
<!--</exclusion>-->
<!--<exclusion>-->
<!--<groupId>org.jboss.sasl</groupId>-->
<!--<artifactId>jboss-sasl</artifactId>-->
<!--</exclusion>-->
<!--<exclusion>-->
<!--<groupId>org.jboss.spec.javax.ejb</groupId>-->
<!--<artifactId>jboss-ejb-api_3.2_spec</artifactId>-->
<!--</exclusion>-->
<!--<exclusion>-->
<!--<groupId>org.jboss.spec.javax.transaction</groupId>-->
<!--<artifactId>jboss-transaction-api_1.2_spec</artifactId>-->
<!--</exclusion>-->
<!--<exclusion>-->
<!--<groupId>org.jboss.xnio</groupId>-->
<!--<artifactId>xnio-api</artifactId>-->
<!--</exclusion>-->
<!--<exclusion>-->
<!--<groupId>org.jboss.xnio</groupId>-->
<!--<artifactId>xnio-nio</artifactId>-->
<!--</exclusion>-->
<!--<exclusion>-->
<!--<groupId>io.netty</groupId>-->
<!--<artifactId>netty-all</artifactId>-->
<!--</exclusion>-->
<!--<exclusion>-->
<!--<groupId>org.jgroups</groupId>-->
<!--<artifactId>jgroups</artifactId>-->
<!--</exclusion>-->
<!--<exclusion>-->
<!--<groupId>org.apache.activemq</groupId>-->
<!--<artifactId>artemis-core-client</artifactId>-->
<!--</exclusion>-->
<!--<exclusion>-->
<!--<groupId>org.apache.activemq</groupId>-->
<!--<artifactId>artemis-commons</artifactId>-->
<!--</exclusion>-->
<!--<exclusion>-->
<!--<groupId>org.apache.activemq</groupId>-->
<!--<artifactId>artemis-hqclient-protocol</artifactId>-->
<!--</exclusion>-->
<!--</exclusions>-->
<!--</dependency>-->
<dependency>
<groupId>uk.gov.justice.services</groupId>
<artifactId>jmx</artifactId>
<scope>test</scope>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-client-all</artifactId>
<version>${wildfly.version}</version>
<exclusions>
<exclusion>
<groupId>org.jboss</groupId>
<artifactId>jboss-ejb-client</artifactId>
</exclusion>
<exclusion>
<groupId>org.jboss</groupId>
<artifactId>jboss-remote-naming</artifactId>
</exclusion>
<exclusion>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
</exclusion>
<exclusion>
<groupId>org.jboss.marshalling</groupId>
<artifactId>jboss-marshalling-river</artifactId>
</exclusion>
<exclusion>
<groupId>org.jboss.remoting</groupId>
<artifactId>jboss-remoting</artifactId>
</exclusion>
<exclusion>
<groupId>org.jboss.sasl</groupId>
<artifactId>jboss-sasl</artifactId>
</exclusion>
<exclusion>
<groupId>org.jboss.spec.javax.ejb</groupId>
<artifactId>jboss-ejb-api_3.2_spec</artifactId>
</exclusion>
<exclusion>
<groupId>org.jboss.spec.javax.transaction</groupId>
<artifactId>jboss-transaction-api_1.2_spec</artifactId>
</exclusion>
<exclusion>
<groupId>org.jboss.xnio</groupId>
<artifactId>xnio-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.jboss.xnio</groupId>
<artifactId>xnio-nio</artifactId>
</exclusion>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
</exclusion>
<exclusion>
<groupId>org.jgroups</groupId>
<artifactId>jgroups</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-core-client</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-commons</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-hqclient-protocol</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>uk.gov.justice.services</groupId>
<artifactId>test-utils-wildfly</artifactId>
<version>${framework.version}</version>
<artifactId>jmx</artifactId>
<scope>test</scope>
</dependency>


<!--<dependency>-->
<!--<groupId>org.jboss</groupId>-->
<!--<artifactId>jboss-ejb-client</artifactId>-->
<!--&lt;!&ndash;<version>2.0.0.Final</version>&ndash;&gt;-->
<!--<version>2.1.1.Final</version>-->
<!--</dependency>-->

<!--<dependency>-->
<!--<groupId>org.jboss</groupId>-->
<!--<artifactId>jboss-remote-naming</artifactId>-->
<!--&lt;!&ndash;<version>2.0.4.Final</version>&ndash;&gt;-->
<!--<version>2.0.4.Final</version>-->
<!--</dependency>-->

<!--<dependency>-->
<!--<groupId>org.jboss.logging</groupId>-->
<!--<artifactId>jboss-logging</artifactId>-->
<!--&lt;!&ndash;<version>3.3.0.Final</version>&ndash;&gt;-->
<!--<version>3.2.1.Final</version>-->
<!--</dependency>-->

<!--<dependency>-->
<!--<groupId>org.jboss.marshalling</groupId>-->
<!--<artifactId>jboss-marshalling-river</artifactId>-->
<!--&lt;!&ndash;<version>1.4.3.Final</version>&ndash;&gt;-->
<!--<version>1.4.10.Final</version>-->
<!--</dependency>-->

<!--<dependency>-->
<!--<groupId>org.jboss.remoting</groupId>-->
<!--<artifactId>jboss-remoting</artifactId>-->
<!--&lt;!&ndash;<version>4.0.0.Final</version>&ndash;&gt;-->
<!--<version>4.0.9.Final</version>-->
<!--</dependency>-->

<!--<dependency>-->
<!--<groupId>org.jboss.sasl</groupId>-->
<!--<artifactId>jboss-sasl</artifactId>-->
<!--&lt;!&ndash;<version>1.0.4.Final</version>&ndash;&gt;-->
<!--<version>1.0.5.Final</version>-->
<!--</dependency>-->

<!--<dependency>-->
<!--<groupId>org.jboss.spec.javax.ejb</groupId>-->
<!--<artifactId>jboss-ejb-api_3.2_spec</artifactId>-->
<!--&lt;!&ndash;<version>1.0.1.Final</version>&ndash;&gt;-->
<!--<version>1.0.0.Final</version>-->
<!--</dependency>-->

<!--<dependency>-->
<!--<groupId>org.jboss.spec.javax.transaction</groupId>-->
<!--<artifactId>jboss-transaction-api_1.2_spec</artifactId>-->
<!--&lt;!&ndash;<version>1.0.0.Final</version>&ndash;&gt;-->
<!--<version>1.0.0.Final</version>-->
<!--</dependency>-->

<!--<dependency>-->
<!--<groupId>org.jboss.xnio</groupId>-->
<!--<artifactId>xnio-api</artifactId>-->
<!--&lt;!&ndash;<version>3.2.0.Final</version>&ndash;&gt;-->
<!--<version>3.3.1.Final</version>-->
<!--</dependency>-->

<!--<dependency>-->
<!--<groupId>org.jboss.xnio</groupId>-->
<!--<artifactId>xnio-nio</artifactId>-->
<!--&lt;!&ndash;<version>3.2.0.Final</version>&ndash;&gt;-->
<!--<version>3.3.1.Final</version>-->
<!--</dependency>-->

<!--<dependency>-->
<!--<groupId>io.netty</groupId>-->
<!--<artifactId>netty-all</artifactId>-->
<!--<version>4.1.34.Final</version>-->
<!--</dependency>-->

<!--<dependency>-->
<!--<groupId>org.hornetq</groupId>-->
<!--<artifactId>hornetq-commons</artifactId>-->
<!--<version>2.4.7.Final</version>-->
<!--</dependency>-->

<!--<dependency>-->
<!--<groupId>org.hornetq</groupId>-->
<!--<artifactId>hornetq-core-client</artifactId>-->
<!--<version>2.4.7.Final</version>-->
<!--</dependency>-->

<!--<dependency>-->
<!--<groupId>org.hornetq</groupId>-->
<!--<artifactId>hornetq-jms-client</artifactId>-->
<!--<version>2.4.7.Final</version>-->
<!--</dependency>-->

<!--<dependency>-->
<!--<groupId>org.jboss.marshalling</groupId>-->
<!--<artifactId>jboss-marshalling</artifactId>-->
<!--<version>1.4.10.Final</version>-->
<!--</dependency>-->

<!--<dependency>-->
<!--<groupId>org.jboss.spec.javax.jms</groupId>-->
<!--<artifactId>jboss-jms-api_2.0_spec</artifactId>-->
<!--<version>1.0.0.Final</version>-->
<!--<scope>provided</scope>-->
<!--</dependency>-->


</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

import javax.ws.rs.client.Client;

@Ignore
public class CakeShopConcurrencyIT {

private static final CakeShopRepositoryManager CAKE_SHOP_REPOSITORY_MANAGER = new CakeShopRepositoryManager();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import javax.ws.rs.client.Client;
import javax.ws.rs.core.Response;

@Ignore
public class CakeShopCrossOriginResourceSharingIT {

private static final CakeShopRepositoryManager CAKE_SHOP_REPOSITORY_MANAGER = new CakeShopRepositoryManager();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import javax.ws.rs.client.Client;

@Ignore
public class CakeShopEventBufferingIT {

private static final CakeShopRepositoryManager CAKE_SHOP_REPOSITORY_MANAGER = new CakeShopRepositoryManager();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

import org.apache.http.message.BasicNameValuePair;

@Ignore
public class CakeShopFailuresIT {

private static final CakeShopRepositoryManager CAKE_SHOP_REPOSITORY_MANAGER = new CakeShopRepositoryManager();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
import org.apache.http.entity.mime.MultipartEntityBuilder;
import org.apache.http.impl.client.HttpClients;

@Ignore
public class CakeShopFileServiceIT {

private static final CakeShopRepositoryManager CAKE_SHOP_REPOSITORY_MANAGER = new CakeShopRepositoryManager();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

import org.apache.http.message.BasicNameValuePair;

@Ignore
public class CakeShopFilteringIT {

private static final CakeShopRepositoryManager CAKE_SHOP_REPOSITORY_MANAGER = new CakeShopRepositoryManager();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@

import org.apache.http.message.BasicNameValuePair;

@Ignore
public class CakeShopIT {

private static final CakeShopRepositoryManager CAKE_SHOP_REPOSITORY_MANAGER = new CakeShopRepositoryManager();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import javax.jms.Session;
import javax.ws.rs.client.Client;

@Ignore
public class CakeShopManyUpdatesIT {

private static final CakeShopRepositoryManager CAKE_SHOP_REPOSITORY_MANAGER = new CakeShopRepositoryManager();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,14 @@
import static com.jayway.jsonassert.JsonAssert.with;
import static java.util.Optional.empty;
import static java.util.Optional.of;
import static java.util.Optional.ofNullable;
import static java.util.UUID.fromString;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import static uk.gov.justice.services.example.cakeshop.it.params.CakeShopMediaTypes.CONTEXT_NAME;

import org.junit.*;
import uk.gov.justice.services.event.buffer.core.repository.subscription.Subscription;
import uk.gov.justice.services.example.cakeshop.it.helpers.ApiResponse;
import uk.gov.justice.services.example.cakeshop.it.helpers.CakeShopRepositoryManager;
import uk.gov.justice.services.example.cakeshop.it.helpers.CommandFactory;
import uk.gov.justice.services.example.cakeshop.it.helpers.EventFactory;
import uk.gov.justice.services.example.cakeshop.it.helpers.EventFinder;
import uk.gov.justice.services.example.cakeshop.it.helpers.Querier;
import uk.gov.justice.services.example.cakeshop.it.helpers.RestEasyClientFactory;
import uk.gov.justice.services.test.utils.core.messaging.Poller;
Expand All @@ -25,7 +19,11 @@

import javax.ws.rs.client.Client;

@Ignore
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class CakeShopReplayEventsIT {

private static final CakeShopRepositoryManager CAKE_SHOP_REPOSITORY_MANAGER = new CakeShopRepositoryManager();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import javax.ws.rs.client.Client;
import javax.ws.rs.core.Response;

@Ignore
public class CakeShopTimeStampIT {

private static final CakeShopRepositoryManager CAKE_SHOP_REPOSITORY_MANAGER = new CakeShopRepositoryManager();
Expand Down
Loading

0 comments on commit c0146f5

Please sign in to comment.