Skip to content

Commit

Permalink
chore: prevent reflective access warning for camel-k-maven-plugin it …
Browse files Browse the repository at this point in the history
…tests
  • Loading branch information
lburgazzoli committed May 5, 2020
1 parent d00a097 commit be83bcf
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
5 changes: 5 additions & 0 deletions tooling/camel-k-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,11 @@
<goal>run</goal>
<goal>verify</goal>
</goals>
<configuration>
<properties>
<com.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize>true</com.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize>
</properties>
</configuration>
</execution>
</executions>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ new File(basedir, "catalog.yaml").withReader {

assert catalog.metadata.labels['camel.apache.org/runtime.version'] == runtimeVersion

assert catalog.spec.artifacts['camel-knative'].dependencies.size == 3
assert catalog.spec.artifacts['camel-knative'].dependencies.find { it.groupId == 'org.apache.camel.k' && it.artifactId == 'camel-knative-api'}
assert catalog.spec.artifacts['camel-knative'].dependencies.find { it.groupId == 'org.apache.camel.k' && it.artifactId == 'camel-knative'}
assert catalog.spec.artifacts['camel-knative'].dependencies.find { it.groupId == 'org.apache.camel.k' && it.artifactId == 'camel-knative-http'}

assert catalog.spec.artifacts['camel-knative'].schemes.size == 1
assert catalog.spec.artifacts['camel-knative'].schemes[0].id == 'knative'
catalog.spec.artifacts['camel-knative'].with {
assert dependencies.size() == 3
assert dependencies.find { it.groupId == 'org.apache.camel.k' && it.artifactId == 'camel-knative-api' }
assert dependencies.find { it.groupId == 'org.apache.camel.k' && it.artifactId == 'camel-knative' }
assert dependencies.find { it.groupId == 'org.apache.camel.k' && it.artifactId == 'camel-knative-http' }
assert schemes.size() == 1
assert schemes[0].id == 'knative'
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ new File(basedir, "catalog.yaml").withReader {

assert catalog.metadata.labels['camel.apache.org/runtime.version'] == runtimeVersion

assert catalog.spec.artifacts['camel-knative'].dependencies.size == 1
assert catalog.spec.artifacts['camel-knative'].dependencies[0].groupId == 'org.apache.camel.k'
assert catalog.spec.artifacts['camel-knative'].dependencies[0].artifactId == 'camel-k-quarkus-knative'
assert catalog.spec.artifacts['camel-knative'].schemes.size == 1
assert catalog.spec.artifacts['camel-knative'].schemes[0].id == 'knative'
catalog.spec.artifacts['camel-knative'].with {
assert dependencies.size() == 1
assert dependencies[0].groupId == 'org.apache.camel.k'
assert dependencies[0].artifactId == 'camel-k-quarkus-knative'
assert schemes.size() == 1
assert schemes[0].id == 'knative'
}
}

0 comments on commit be83bcf

Please sign in to comment.