forked from windup/windup-rulesets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjavaee-api-to-quarkus.windup.test.xml
More file actions
24 lines (24 loc) · 1.18 KB
/
javaee-api-to-quarkus.windup.test.xml
File metadata and controls
24 lines (24 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0"?>
<ruletest id="jaxrs-to-quarkus-tests"
xmlns="http://windup.jboss.org/schema/jboss-ruleset"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://windup.jboss.org/schema/jboss-ruleset http://windup.jboss.org/schema/jboss-ruleset/windup-jboss-ruleset.xsd">
<testDataPath>data/*</testDataPath>
<rulePath>../javaee-api-to-quarkus.windup.groovy</rulePath>
<ruleset>
<rules>
<rule id="jaxrs-to-quarkus-groovy-00000-test">
<when>
<not>
<iterable-filter size="1">
<hint-exists message="At least one Java class importing from the `javax.ws.rs` package has been found so the dependency `javax:javaee-api` has to be replaced with `io.quarkus:quarkus-resteasy-reactive` artifact."/>
</iterable-filter>
</not>
</when>
<perform>
<fail message="[jaxrs-to-quarkus-groovy-00000] javax.ws.rs transitive dependency hint was not found!" />
</perform>
</rule>
</rules>
</ruleset>
</ruletest>