Skip to content

Commit

Permalink
Merge pull request #258 from jamezp/issue253-follow-up
Browse files Browse the repository at this point in the history
[253] Follow up for JUnit 5 migration. Fix one assertion and remove t…
  • Loading branch information
jamezp authored Apr 1, 2024
2 parents 5fadf81 + 9853438 commit dfeb96e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 53 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
cache: 'maven'
- name: Build with Maven Java ${{ matrix.java }} - ${{ matrix.os }}
run: |
mvn clean install -U -B -fae -Pci
mvn clean install -U -B -fae
- uses: actions/upload-artifact@v4
if: failure()
with:
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
# Since we need to pass the test.java.home we need different runs for Linux and Windows
- name: Test with Java ${{ matrix.java }} - ${{ matrix.profile }}
run: |
mvn clean install -U -B -fae ${{ matrix.profile }} -Pci
mvn clean install -U -B -fae ${{ matrix.profile }}
- uses: actions/upload-artifact@v4
if: failure()
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/resteasy-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
cache: 'maven'
- name: Build and Test RESTEasy MicroProfile Java ${{ matrix.java }} - ${{ matrix.os }}
run: |
mvn clean install -B '-Dversion.org.jboss.resteasy=${{ needs.resteasy-build.outputs.resteasy-version }}' -Pci
mvn clean install -B '-Dversion.org.jboss.resteasy=${{ needs.resteasy-build.outputs.resteasy-version }}'
- uses: actions/upload-artifact@v4
if: failure()
with:
Expand Down
13 changes: 0 additions & 13 deletions testsuite/integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -238,19 +238,6 @@
</build>

<profiles>
<profile>
<id>ci</id>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludedGroups>org.jboss.resteasy.microprofile.test.util.IgnoreOnCi</excludedGroups>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>provided.server</id>
<activation>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,11 @@ public void testNoApplicableExceptionMapper() throws Exception {

@Test
public void testDefaultExceptionMapper() throws Exception {
HealthService healthServiceClient = RestClientBuilder.newBuilder()
try (HealthService healthServiceClient = RestClientBuilder.newBuilder()
.baseUri(TestEnvironment.generateUri(url, "test-app"))
.register(new Ignore404ExceptionMapper())
.build(HealthService.class);

try {
healthServiceClient.getHealthData();
} catch (WebApplicationException e) {
// this is the expected result
.build(HealthService.class)) {
Assertions.assertThrows(WebApplicationException.class, healthServiceClient::getHealthData);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;

Expand All @@ -69,7 +68,6 @@

@ExtendWith(ArquillianExtension.class)
@RunAsClient
@Tag("IgnoreOnCi.class")
public class RestClientProxyTest {

public static final String EMOJIS = "\uD83D\uDE00\uD83D\uDE00\uD83D\uDE00\uD83D\uDE00\uD83D\uDE00\uD83D\uDE00\uD83D\uDE00\uD83D\uDE00";
Expand Down

This file was deleted.

0 comments on commit dfeb96e

Please sign in to comment.