On Fri, Oct 16, 2015 at 9:34 AM, Tibor Digana
<[email protected]> wrote:
> No idea what com.basistech.ws.itest.
> FrontEndIT.paxConfiguration(FrontEndIT.java:44)
> is doing, obviously some Java Reflection calls.
No, it is not. Unless it's buried in pax-exam.
And if it were, don't you 'owe' me a full backtrace? I will see if I
can get one in IntelliJ ... that might be suggestive about what's
going on.
@Configuration
public static Option[] paxConfiguration() {
return new Option[]{
composite(Utils.baseConfiguration(frontEndPort, null)),
// this is here in case we decide to set up a mock worker.
replaceConfigurationFile("etc/anvils/transport-rules.tsv",
new File("src/config/front-end-transport-rules.tsv")),
Utils.distributionOption("rosapi-assembly-front-end")
};
}
Well, pax-exam is complex, and I can't rule out anything in it.
>
> But don't expect that everything goes well because you maybe relied on one
> of the bugs reported in Surefire.
> Since now the failsafe plugin takes jar (built src/main/java) instead of
> target/classes/.
> If you rely on target/classes/, use surefire-plugin because that's what the
> unit tests do.
>
>
> On Fri, Oct 16, 2015 at 3:04 PM, Benson Margulies <[email protected]>
> wrote:
>
>> Um, maybe I voted too soon. Using the new failsafe plugin, I get the
>> following, and no backtrace, on each of my integration test classes.
>> Any suggestions, Tibor?
>>
>>
>>
>> -------------------------------------------------------------------------------
>> Test set: com.basistech.ws.itest.FrontEndIT
>>
>> -------------------------------------------------------------------------------
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008
>> sec <<< FAILURE! - in com.basistech.ws.itest.FrontEndIT
>> initializationError(com.basistech.ws.itest.FrontEndIT) Time elapsed:
>> 0.004 sec <<< ERROR!
>> org.ops4j.pax.exam.TestContainerException:
>> java.lang.reflect.InvocationTargetException
>> at
>> com.basistech.ws.itest.FrontEndIT.paxConfiguration(FrontEndIT.java:44)
>>
>> Effective pom:
>>
>> <plugin>
>> <artifactId>maven-failsafe-plugin</artifactId>
>> <version>2.19</version>
>> <executions>
>> <execution>
>> <id>integration-tests</id>
>> <goals>
>> <goal>integration-test</goal>
>> <goal>verify</goal>
>> </goals>
>> <configuration>
>> <systemPropertyVariables>
>> <java.awt.headless>true</java.awt.headless>
>>
>>
>> <project.build.directory>/Users/benson/x/rosapi1.5/itests/tests/target</project.build.directory>
>> <project.version>1.5.0-SNAPSHOT</project.version>
>> <basedir>/Users/benson/x/rosapi1.5/itests/tests</basedir>
>> <karaf-version>4.0.2</karaf-version>
>> <karaf.debug>false</karaf.debug>
>> </systemPropertyVariables>
>> <classpathDependencyExcludes>
>>
>>
>> <classpathDependencyExclude>org.apache.karaf:org.apache.karaf.client</classpathDependencyExclude>
>>
>>
>> <classpathDependencyExclude>org.jboss.logging:jboss-logging</classpathDependencyExclude>
>>
>>
>> <classpathDependencyExclude>org.ops4j.pax.logging:pax-logging-service</classpathDependencyExclude>
>>
>>
>> <classpathDependencyExclude>org.ops4j.pax.logging:pax-logging-api</classpathDependencyExclude>
>> </classpathDependencyExcludes>
>> </configuration>
>> </execution>
>> </executions>
>> <configuration>
>> <systemPropertyVariables>
>> <java.awt.headless>true</java.awt.headless>
>> </systemPropertyVariables>
>> <classpathDependencyExcludes>
>>
>> <classpathDependencyExclude>org.apache.karaf:org.apache.karaf.client</classpathDependencyExclude>
>>
>> <classpathDependencyExclude>org.jboss.logging:jboss-logging</classpathDependencyExclude>
>>
>> <classpathDependencyExclude>org.ops4j.pax.logging:pax-logging-service</classpathDependencyExclude>
>>
>> <classpathDependencyExclude>org.ops4j.pax.logging:pax-logging-api</classpathDependencyExclude>
>> </classpathDependencyExcludes>
>> </configuration>
>> </plugin
>>
>>
>>
>> On Fri, Oct 16, 2015 at 8:55 AM, Benson Margulies <[email protected]>
>> wrote:
>> > On Fri, Oct 16, 2015 at 8:20 AM, Tibor Digana <[email protected]>
>> wrote:
>> >> https://repository.apache.org/content/repositories/maven-1222
>> >
>> > Tested on my current major project. No issues. +1 binding.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
> --
> Cheers
> Tibor
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]