Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions batch-processing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
<version.server>42.0.0.Beta1</version.server>
<!-- the versions for BOMs, Packs and Plugins -->
<version.bom.ee>${version.server}</version.bom.ee>
<version.plugin.wildfly>6.0.2.Final</version.plugin.wildfly>
<version.bom.junit>6.1.3</version.bom.junit>
<version.plugin.wildfly>6.0.3.Final</version.plugin.wildfly>
</properties>

<dependencyManagement>
Expand All @@ -63,6 +64,13 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${version.bom.junit}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down Expand Up @@ -173,8 +181,8 @@

<!-- Tests -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package org.jboss.as.quickstarts.batch;

import org.junit.Test;
import org.junit.jupiter.api.Test;

import java.io.IOException;
import java.net.URI;
Expand All @@ -25,7 +25,7 @@
import java.net.http.HttpResponse;
import java.time.Duration;

import static org.junit.Assert.assertEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;

/**
* The very basic runtime integration testing.
Expand Down
14 changes: 11 additions & 3 deletions bmt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
<version.server>42.0.0.Beta1</version.server>
<!-- the versions for BOMs, Packs and Plugins -->
<version.bom.ee>${version.server}</version.bom.ee>
<version.plugin.wildfly>6.0.2.Final</version.plugin.wildfly>
<version.bom.junit>6.1.3</version.bom.junit>
<version.plugin.wildfly>6.0.3.Final</version.plugin.wildfly>
</properties>

<dependencyManagement>
Expand All @@ -63,6 +64,13 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${version.bom.junit}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down Expand Up @@ -114,8 +122,8 @@
<!-- Tests -->
<!-- Needed for running tests (you may also use TestNG) -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package org.jboss.as.quickstarts.bmt;

import org.junit.Test;
import org.junit.jupiter.api.Test;

import java.io.IOException;
import java.net.URI;
Expand All @@ -25,7 +25,7 @@
import java.net.http.HttpResponse;
import java.time.Duration;

import static org.junit.Assert.assertEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;

/**
* The very basic runtime integration testing.
Expand Down
14 changes: 11 additions & 3 deletions cmt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
<version.server>42.0.0.Beta1</version.server>
<!-- the versions for BOMs, Packs and Plugins -->
<version.bom.ee>${version.server}</version.bom.ee>
<version.plugin.wildfly>6.0.2.Final</version.plugin.wildfly>
<version.bom.junit>6.1.3</version.bom.junit>
<version.plugin.wildfly>6.0.3.Final</version.plugin.wildfly>
</properties>

<dependencyManagement>
Expand All @@ -62,6 +63,13 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${version.bom.junit}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down Expand Up @@ -117,8 +125,8 @@
<!-- Tests -->
<!-- Needed for running tests (you may also use TestNG) -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package org.jboss.as.quickstarts.cmt;

import org.junit.Test;
import org.junit.jupiter.api.Test;

import java.io.IOException;
import java.net.URI;
Expand All @@ -25,7 +25,7 @@
import java.net.http.HttpResponse;
import java.time.Duration;

import static org.junit.Assert.assertEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;

/**
* The very basic runtime integration testing.
Expand Down
12 changes: 6 additions & 6 deletions cmt/src/test/java/org/jboss/as/quickstarts/cmt/CustomerIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
import java.net.http.HttpResponse;
import java.nio.charset.StandardCharsets;
import java.util.Map;
import org.junit.Assert;
import org.junit.Test;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;


public class CustomerIT {
Expand Down Expand Up @@ -74,8 +74,8 @@ public void addCustomer(String name) throws IOException, InterruptedException {
.build();
HttpResponse response = client.send(HttpRequest.newBuilder(getHTTPEndpoint("/addCustomer.jsf")).GET().build(), HttpResponse.BodyHandlers.ofString());
String body = response.body().toString();
Assert.assertEquals(200, response.statusCode());
Assert.assertTrue(body, body.contains("<input type=\"hidden\" name=\"jakarta.faces.ViewState\" id=\"j_id1:jakarta.faces.ViewState:0\" value=\""));
Assertions.assertEquals(200, response.statusCode());
Assertions.assertTrue(body.contains("<input type=\"hidden\" name=\"jakarta.faces.ViewState\" id=\"j_id1:jakarta.faces.ViewState:0\" value=\""), body);
int startIndex = body.indexOf("<input type=\"hidden\" name=\"jakarta.faces.ViewState\" id=\"j_id1:jakarta.faces.ViewState:0\" value=\"") + 96;
int endIndex= body.indexOf('"', startIndex);
String viewState = body.substring(startIndex, endIndex);
Expand All @@ -91,9 +91,9 @@ public void addCustomer(String name) throws IOException, InterruptedException {
)
.build();
response = client.send(request, HttpResponse.BodyHandlers.ofString());
Assert.assertEquals(200, response.statusCode());
Assertions.assertEquals(200, response.statusCode());
body = response.body().toString();
Assert.assertTrue(body, body.contains(name));
Assertions.assertTrue(body.contains(name), body);
}

public static BodyPublisher ofFormData(Map<String, String> data) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
*/
package org.jboss.as.quickstarts.cmt.ejb;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class CustomerManagerEJBTest {
@Test
Expand Down
14 changes: 11 additions & 3 deletions ee-security/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
<version.server>42.0.0.Beta1</version.server>
<!-- the versions for BOMs, Packs and Plugins -->
<version.bom.ee>${version.server}</version.bom.ee>
<version.plugin.wildfly>6.0.2.Final</version.plugin.wildfly>
<version.bom.junit>6.1.3</version.bom.junit>
<version.plugin.wildfly>6.0.3.Final</version.plugin.wildfly>
</properties>

<dependencyManagement>
Expand All @@ -63,6 +64,13 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${version.bom.junit}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down Expand Up @@ -97,8 +105,8 @@

<!-- Needed for running tests (you may also use TestNG) -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
package org.jboss.as.quickstarts.ee_security;

import org.junit.Test;
import org.junit.jupiter.api.Test;

import java.io.IOException;
import java.net.URI;
Expand All @@ -29,7 +29,7 @@
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

import static org.junit.Assert.assertEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;

/**
*
Expand Down
5 changes: 3 additions & 2 deletions ejb-multi-server/app-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.jboss.as.quickstarts.ejb.multi.server.app;

import org.junit.Test;
import org.junit.jupiter.api.Test;

import java.io.IOException;
import java.net.URI;
Expand All @@ -10,7 +10,7 @@
import java.net.http.HttpResponse;
import java.time.Duration;

import static org.junit.Assert.assertEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;

public class BasicRuntimeIT {
private static final String DEFAULT_SERVER_HOST = "http://localhost:8080";
Expand Down
10 changes: 9 additions & 1 deletion ejb-multi-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
<version.server>42.0.0.Beta1</version.server>
<!-- the versions for BOMs, Packs and Plugins -->
<version.bom.ee>${version.server}</version.bom.ee>
<version.plugin.wildfly>6.0.2.Final</version.plugin.wildfly>
<version.bom.junit>6.1.3</version.bom.junit>
<version.plugin.wildfly>6.0.3.Final</version.plugin.wildfly>
</properties>

<dependencyManagement>
Expand All @@ -65,6 +66,13 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${version.bom.junit}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
14 changes: 11 additions & 3 deletions ejb-remote/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
<version.server>42.0.0.Beta1</version.server>
<!-- the versions for BOMs, Packs and Plugins -->
<version.bom.ee>${version.server}</version.bom.ee>
<version.plugin.wildfly>6.0.2.Final</version.plugin.wildfly>
<version.bom.junit>6.1.3</version.bom.junit>
<version.plugin.wildfly>6.0.3.Final</version.plugin.wildfly>
</properties>

<dependencyManagement>
Expand All @@ -62,6 +63,13 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${version.bom.junit}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

Expand All @@ -87,8 +95,8 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package org.jboss.as.quickstarts.ejb.remote;

import org.junit.Test;
import org.junit.jupiter.api.Test;

import java.io.IOException;
import java.net.URI;
Expand All @@ -25,7 +25,7 @@
import java.net.http.HttpResponse;
import java.time.Duration;

import static org.junit.Assert.assertEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;

/**
* The very basic runtime integration testing.
Expand Down
Loading
Loading