Skip to content

Commit

Permalink
Fix problems with coverage & sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
kifj committed Mar 8, 2024
1 parent 4955fe9 commit 0a38c3b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
5 changes: 5 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@ node {
.image('registry.x1/j7beck/x1-wildfly-stomp-test-it:1.8')
.withRun('-e MANAGEMENT=public -e HTTP=public --name stomp-test-it') {
c ->
try {
waitFor("http://${hostIp(c)}:9990/health/ready", 20, 3)
withMaven(maven: 'Maven-3.9', mavenSettingsConfig: mavenSetting) {
sh "mvn -Parq-remote verify -Djboss.managementAddress=${hostIp(c)}"
}
} finally {
junit '**/target/surefire-reports/TEST-*.xml'
jacoco(execPattern: '**/**.exec')
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -809,18 +809,18 @@
<artifactId>shrinkwrap-resolver-impl-maven</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jacoco</groupId>
<artifactId>org.jacoco.core</artifactId>
<version>${jacoco.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.wildfly.arquillian</groupId>
<artifactId>wildfly-arquillian-container-remote</artifactId>
<version>${arquillian.wildfly.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jacoco</groupId>
<artifactId>org.jacoco.core</artifactId>
<version>${jacoco.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/META-INF/persistence.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="https://jakarta.ee/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd"
version="3.0">
xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_2_2.xsd"
version="2.2">
<persistence-unit name="stomp-test">
<jta-data-source>java:jboss/datasources/stocksDS</jta-data-source>
<properties>
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/test-persistence.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="https://jakarta.ee/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd"
version="3.0">
xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_2_2.xsd"
version="2.2">
<persistence-unit name="stomp-test">
<jta-data-source>java:jboss/datasources/stockstestDS</jta-data-source>
<properties>
Expand Down

0 comments on commit 0a38c3b

Please sign in to comment.