Re: Class defined on module path not found when running integration tests

2022-07-31 Thread Mantas Gridinas
I remember encountering something similar when I started out using modules. Basically the error message claiming that class is not found is a bit misleading because what it really means is "class failed to load". One of the causes of such failures is improper configuration of one of that class depe

Re: Class defined on module path not found when running integration tests

2022-07-31 Thread Delany
Can you try running it directly without maven/failsafe Use https://maven.apache.org/plugins/maven-dependency-plugin/usage.html#dependency:build-classpath Delany On Sun, 31 Jul 2022 at 08:11, Ryan Lubke wrote: > Hey Folks, > > I’ve been looking into this issue for a couple of days now and have ru

Class defined on module path not found when running integration tests

2022-07-30 Thread Ryan Lubke
Hey Folks, I’ve been looking into this issue for a couple of days now and have run out of ideas. Maven Version:3.8.5 Maven Failsafe Version: 3.0.0-M7 Java Version:17.0.4 OS: MacOS 12.5/Apple Silicon The test compiles fine using the modul

Problems loading resources in maven-failsafe-plugin 3.0.0-M5 integration tests

2022-01-27 Thread Christofer Dutz
s the module as "named module" and goes a completely different path inside. Do you have an idea how I can get my integration-tests to work with failsafe 3.0.0-M5? Help greatly appreciated, Chris

Re: Problem with running Spring Integration Tests with mvn verify

2019-01-15 Thread Guang Chao
behavior, to start and stop the Test Runner only once > (with this "mvn verify -P itest" command). > > itest is the profile that we have in our pom.xml which includes the classes > that contain integration tests (using maven failsafe plugin) > > Here are the

Re: Problem with running Spring Integration Tests with mvn verify

2019-01-15 Thread Robert Kleinschmager
>>> (which is not my desired result). >>>> >>>> The IntelliJ second click -> Run all Tests starts it only once. Our Jenkins >>>> Job is running the tests with "mvn verify -P itest", so my question is how >>>> can i c

Re: Problem with running Spring Integration Tests with mvn verify

2019-01-15 Thread Mikael Åsberg
around an hour. This is because this > > >>> command starts and stops the Spring Test Runner Server on every class > > >>> (which is not my desired result). > > >>> > > >>> The IntelliJ second click -> Run all Tests starts it

Re: Problem with running Spring Integration Tests with mvn verify

2019-01-14 Thread a . tokarev90
this > >>> command starts and stops the Spring Test Runner Server on every class > >>> (which is not my desired result). > >>> > >>> The IntelliJ second click -> Run all Tests starts it only once. Our > >>> Jenkins > >>>

Re: Problem with running Spring Integration Tests with mvn verify

2019-01-13 Thread Robert Kleinschmager
"mvn verify -P itest", so my question is how >>> can i change this behavior, to start and stop the Test Runner only once >>> (with this "mvn verify -P itest" command). >>> >>> itest is the profile that we have in our pom.xml which includes the

Re: Problem with running Spring Integration Tests with mvn verify

2019-01-08 Thread a . tokarev90
op the Test Runner only once > > (with this "mvn verify -P itest" command). > > > > itest is the profile that we have in our pom.xml which includes the classes > > that contain integration tests (using maven failsafe plugin) > > > > Here are the annotat

Re: Problem with running Spring Integration Tests with mvn verify

2019-01-07 Thread Robert Kleinschmager
sts with "mvn verify -P itest", so my question is how > can i change this behavior, to start and stop the Test Runner only once > (with this "mvn verify -P itest" command). > > itest is the profile that we have in our pom.xml which includes the classes > that c

Problem with running Spring Integration Tests with mvn verify

2019-01-06 Thread Aleksandar Tokarev
ot;, so my question is how can i change this behavior, to start and stop the Test Runner only once (with this "mvn verify -P itest" command). itest is the profile that we have in our pom.xml which includes the classes that contain integration tests (using maven failsafe plugin) Here are

Re: Running integration tests twice against different webapp configurations

2018-10-15 Thread Ellis, Scott
[mailto:p...@hammant.org] Sent: Saturday, October 13, 2018 9:00 AM To: Maven Users List Subject: [SUSPICIOUS] Re: [SUSPICIOUS] Re: Running integration tests twice against different webapp configurations You're explicitly calling stop() on both Jetty instances ... (pass or fail) and not just letting it

Re: [SUSPICIOUS] Re: Running integration tests twice against different webapp configurations

2018-10-13 Thread Paul Hammant
already started," even with a different > key and port. > > Thanks, > Scott > > -Original Message- > From: Thomas Broyer [mailto:t.bro...@gmail.com] > Sent: Friday, October 12, 2018 2:34 AM > To: Maven Users List > Subject: [SUSPICIOUS] Re: Running

RE: [SUSPICIOUS] Re: Running integration tests twice against different webapp configurations

2018-10-12 Thread Ellis, Scott
e: Running integration tests twice against different webapp configurations Alternatively, if possible, you could possibly run the app with both configurations in parallel (two executions of jetty-maven-plugin in pre-integration-test and post-integration-test phase, using different ports), and run

Re: Running integration tests twice against different webapp configurations

2018-10-12 Thread Paul Hammant
ct that builds a webapp and runs integration tests against > it using the failsafe plugin and the jetty-maven-plugin. > > That is, I use the jetty-maven-plugin to start jetty in the > pre-integration-test phase, run the tests, then shut jetty down in the > post-integration-test phase.

Re: Running integration tests twice against different webapp configurations

2018-10-12 Thread Thomas Broyer
integration-test phase) On Fri, Oct 12, 2018 at 8:44 AM Anders Hammar wrote: > I'd say you need two modules; one for each IT setup. Each module is a Maven > project and will then run the integration tests. The actual integration > test code could then be in a third module and you declare a

Re: Running integration tests twice against different webapp configurations

2018-10-11 Thread Anders Hammar
I'd say you need two modules; one for each IT setup. Each module is a Maven project and will then run the integration tests. The actual integration test code could then be in a third module and you declare a dependency on that artifact. /Anders On Thu, Oct 11, 2018 at 11:21 PM Ellis,

Running integration tests twice against different webapp configurations

2018-10-11 Thread Ellis, Scott
Hi, I have a project that builds a webapp and runs integration tests against it using the failsafe plugin and the jetty-maven-plugin. That is, I use the jetty-maven-plugin to start jetty in the pre-integration-test phase, run the tests, then shut jetty down in the post-integration-test phase

Re: Running integration tests against a signed jar

2017-05-30 Thread Gary Gregory
_ > From: Martin Gainty > Sent: Tuesday, May 30, 2017 7:08:43 PM > To: Maven Users List > Subject: Re: Running integration tests against a signed jar > > > > > From: Gary Gregory > Sent: Monday, May 29, 2017 5:01 PM > To: Ma

Re: Running integration tests against a signed jar

2017-05-30 Thread Bernd Eckenfels
domains on the server or is this only signing for protecting the archives? Gruss Bernd -- http://bernd.eckenfels.net From: Martin Gainty Sent: Tuesday, May 30, 2017 7:08:43 PM To: Maven Users List Subject: Re: Running integration tests against a signed jar

Re: Running integration tests against a signed jar

2017-05-30 Thread Martin Gainty
From: Gary Gregory Sent: Monday, May 29, 2017 5:01 PM To: Maven Users List Subject: Running integration tests against a signed jar Hi All: I have a POM that builds a signed jar, so far so good. Unit tests run, no problem. When integration tests run through

Running integration tests against a signed jar

2017-05-29 Thread Gary Gregory
Hi All: I have a POM that builds a signed jar, so far so good. Unit tests run, no problem. When integration tests run through fail-safe, the build fails all ITs with: java.lang.ExceptionInInitializerError Caused by: java.lang.SecurityException: class "com.example.MyClass"'s sig

Re: How to run multiple rounds of integration tests in one build

2015-03-29 Thread Andreas Gudian
You can do it one build if you just specify two executions for the failsafe plugin. Then you can configure different system variables for the executions. Andreas Am Samstag, 28. März 2015 schrieb Tecno Brain : > Separate attract build from integration tests. > > In the integration tes

Re: How to run multiple rounds of integration tests in one build

2015-03-27 Thread Tecno Brain
Separate attract build from integration tests. In the integration test: -Set up your system (cleanup, install) - run with the flag disabled - run again with the flag disabled I would use Jenkins build steps rather than maven profiles On Mar 27, 2015 3:15 PM, "Stefan" wrote:

How to run multiple rounds of integration tests in one build

2015-03-27 Thread Stefan
ndra/GraphDB, but at least it's the same for all tests and can be reused. The only change between test runs would be a single JVM parameter which turns security on and off. Basically, I want to be able to execute the /pre-integration-test -> integration-tests -> post-integration-t

Re: Cannot run integration tests in maven archetype project with failsave

2015-03-13 Thread Martin Gütlein
red in the root pom.xml (not within the module myproject-api-impl/pom.xml). Martin Am 13.03.2015 um 09:34 schrieb Sandra Parsick: I would move the integration tests from myproject-api-impl to the war module Regards, Sandra Am 13.03.2015 um 09:18 schrieb Martin Gütlein: The failsave integratio

Re: Cannot run integration tests in maven archetype project with failsave

2015-03-13 Thread Sandra Parsick
I would move the integration tests from myproject-api-impl to the war module Regards, Sandra Am 13.03.2015 um 09:18 schrieb Martin Gütlein: > The failsave integration tests do not run. They should be applied to the > whole service (war). But they are defined within a module > (mypr

Re: Cannot run integration tests in maven archetype project with failsave

2015-03-13 Thread Martin Gütlein
The failsave integration tests do not run. They should be applied to the whole service (war). But they are defined within a module (myproject-api-impl) and are therefore skipped. I could not figure out how to configure this. Martin Am 13.03.2015 um 09:00 schrieb Hervé BOUTEMY: sorry, can&#

Re: Cannot run integration tests in maven archetype project with failsave

2015-03-13 Thread Hervé BOUTEMY
)? > > Martin > > Am 10.03.2015 um 19:59 schrieb Martin Gütlein: > > Hi, > > > > I would like to run integration tests on my project, performing and > > testing rest-calls to my server. > > > > I have a maven project layout like with modules:

Re: Cannot run integration tests in maven archetype project with failsave

2015-03-13 Thread Martin Gütlein
Anyone? Where could I get some help on this issue (already tried stackoverflow as well)? Martin Am 10.03.2015 um 19:59 schrieb Martin Gütlein: Hi, I would like to run integration tests on my project, performing and testing rest-calls to my server. I have a maven project layout like with

Cannot run integration tests in maven archetype project with failsave

2015-03-10 Thread Martin Gütlein
Hi, I would like to run integration tests on my project, performing and testing rest-calls to my server. I have a maven project layout like with modules: MyProject-api MyProject-api-impl MyProject-webapp MyProject-webapp-exec MyProject-webapp-it (see https://tomcat.apache.org/maven-plugin-2.0

Re: Integration Tests Not Running

2015-01-01 Thread Ole Ersoy
Hello, Me again - Just ignore this post. Just realized that run the integration tests I can't just do: mvn clean test But must do mvn clean verify Cheers, - Ole On 01/01/2015 05:50 PM, Ole Ersoy wrote: Hi, Trying to get some integration tests running. I've tried to minim

Re: Integration Tests Not Running

2015-01-01 Thread Bernd Eckenfels
Hello, BTW: you should put src/integration-test/java in or you use src/test/java, so all other things follow automatically. Gruss Bernd Am Thu, 01 Jan 2015 17:50:26 -0600 schrieb Ole Ersoy : > Hi, > > Trying to get some integration tests running. I've tried to minimize >

Integration Tests Not Running

2015-01-01 Thread Ole Ersoy
Hi, Trying to get some integration tests running. I've tried to minimize my pom, such that everything runs. I pasted my directory structure below. The maven-build-helper-plugin is used to include the integration-test src directory. From what I understand the maven-failsafe-plugi

best strategy for starting daemons and forking procs during maven integration tests?

2014-10-14 Thread Kevin Burton
I want to run more integration tests as my daemons and command line apps sometimes have bugs that I’d like to catch before a release. 9/10 these are Guice bindings and pretty easy to figure out what’s happening quickly. I would like to actually create new processes as a lot of Java code just

Re: What packaging to use for a sub-module that just runs integration tests?

2014-10-09 Thread Stephen Connolly
On 9 October 2014 14:01, Robert Mark Bram wrote: > > Well the question you really will want to know is: > > > > "do I want any other modules to depend on the integration tests being > > successful?" > > The Hatter opened his eyes very wide on hearing th

Re: What packaging to use for a sub-module that just runs integration tests?

2014-10-09 Thread Robert Mark Bram
> Well the question you really will want to know is: > > "do I want any other modules to depend on the integration tests being > successful?" The Hatter opened his eyes very wide on hearing this; but all he said was, "Why is a mvn like a writing-desk?" > If th

Re: What packaging to use for a sub-module that just runs integration tests?

2014-10-09 Thread Robert Mark Bram
> I would try to skip the deploy goal for this particular plugin > see http://maven.apache.org/plugins/maven-deploy-plugin/faq.html#skip Ah, yes - this is what I needed. So still use jar packaging but skip the deploy phase. Rob :) ---

Re: What packaging to use for a sub-module that just runs integration tests?

2014-10-09 Thread Stephen Connolly
Well the question you really will want to know is: "do I want any other modules to depend on the integration tests being successful?" If the answer is "yes" then you will most likely need to deploy something (pom) and that may require adding the missing bindings into th

Re: What packaging to use for a sub-module that just runs integration tests?

2014-10-09 Thread Adrien Rivard
> ${project.groupId} > FooProject-ADF > 1.0 > ear > > > Run integration tests. > > > > >

What packaging to use for a sub-module that just runs integration tests?

2014-10-09 Thread Robert Mark Bram
Run integration tests. org.apache.maven.plugins maven-failsafe-plugin 2.17 once integration-test

Re: Running integration tests

2014-10-08 Thread Karl Heinz Marbaise
Hi Robert, On 10/6/14 11:31 AM, Robert Mark Bram wrote: Hi All, A couple of questions about integration tests.. 1) Default vs non-default plugins I needed to include the maven-failsafe-plugin plugin to introduce integration tests into my project, but I didn't need to introduce the

Re: Running integration tests

2014-10-08 Thread Stephen Connolly
> So failsafe will pickup > > > > ITblahblah.java > > BlahblahIT.java > > > > And a third form that I forget > > > > *ITCase.java > > > http://maven.apache.org/surefire/maven-failsafe-plugin/integration-test-mojo.html#includes > > /Ander

Re: Running integration tests

2014-10-07 Thread Anders Hammar
> > So failsafe will pickup > > ITblahblah.java > BlahblahIT.java > > And a third form that I forget > *ITCase.java http://maven.apache.org/surefire/maven-failsafe-plugin/integration-test-mojo.html#includes /Anders > > > > > > > > > > 3)

Re: Running integration tests

2014-10-07 Thread Stephen Connolly
sing ear packaging, so it binds the surefire:test goal to the > test phase, but binds nothing to integration-test - which is why I > need to add the failsafe plugin to my pom.xml. I didn't need to define > a phase for it, because failsafe's default phase is integration-test. >

Re: Running integration tests

2014-10-07 Thread Manfred Moser
You got it Robert.. Robert Mark Bram wrote on 07.10.2014 19:59: > OK, this was very helpful too. In this case, I am working with a > multi-module project and I decided it was best to add our selenium > tests in a new project to keep them away from other project code. We > have 13 pom.xml files,

Re: Running integration tests

2014-10-07 Thread Robert Mark Bram
tegration-test. > > 2) Just run integration tests? > > I can see that unit tests are all classes with names like *Test.java > > and integration tests are all classes with names like IT.java. But mvn > > verify and mvn test seem to run all tests (unit and integrations). Is >

RE: [maven] Best practice for integration tests (vs unit tests)

2014-10-07 Thread Jason Pyeron
> -Original Message- > From: Kevin Burton > Sent: Tuesday, October 07, 2014 19:28 > > Right now I have an overlap of unit and integration tests and > I want to > tear out my integration tests and keep them separate. This > way our unit > tests execute fast an

Re: Best practice for integration tests (vs unit tests)

2014-10-07 Thread Karl Heinz Marbaise
Hi Kevin, the best suggestion i can give is simply make a separate module where the integration tests should be moved to... This has the advantage having different location for them, cause they are more than unit tests which is expressed by using a separate module furthermore you have the

Best practice for integration tests (vs unit tests)

2014-10-07 Thread Kevin Burton
Right now I have an overlap of unit and integration tests and I want to tear out my integration tests and keep them separate. This way our unit tests execute fast and integration testing takes a bit longer. … and now I’m trying to figure out the best strategy for that. Reading this: http

Re: Running integration tests

2014-10-06 Thread Stephen Connolly
On 6 October 2014 10:31, Robert Mark Bram wrote: > Hi All, > > A couple of questions about integration tests.. > > > 1) Default vs non-default plugins > I needed to include the maven-failsafe-plugin plugin to introduce > integration tests into my project, but I didn

Running integration tests

2014-10-06 Thread Robert Mark Bram
Hi All, A couple of questions about integration tests.. 1) Default vs non-default plugins I needed to include the maven-failsafe-plugin plugin to introduce integration tests into my project, but I didn't need to introduce the maven-surefire-plugin to my pom.xml for unit tests. Fair enough

Re: running integration tests with maven

2014-05-16 Thread Glenn Brown
http://docs.codehaus.org/plugins/servlet/mobile#content/view/63286 On May 15, 2014 10:14 PM, "Brendan Miller" wrote: > I currently have some testng integration tests in a maven project. This is > causing problems because the tests get picked up and run during the test > pha

Re: running integration tests with maven

2014-05-16 Thread Anders Hammar
, 2014 at 2:45 AM, Brendan Miller wrote: > I currently have some testng integration tests in a maven project. This is > causing problems because the tests get picked up and run during the test > phase, rather than the integration-test phase. > > How do I cause tests to be run in the i

running integration tests with maven

2014-05-15 Thread Brendan Miller
I currently have some testng integration tests in a maven project. This is causing problems because the tests get picked up and run during the test phase, rather than the integration-test phase. How do I cause tests to be run in the integration test phase rather than test? All of my tests in this

Re: Forcing Integration Tests Before a Release

2014-03-25 Thread Eric Kolotyluk
Ahhh, actually adding "-P run-it" to the preparationGoals parameter does exactly what I want, and I can dispense with all the other complexities. I did not realize I could add other arguments to the preparationGoals parameter. Sometimes getting what you want from Maven is not obvious, until y

Re: Forcing Integration Tests Before a Release

2014-03-25 Thread Barrie Treloar
ic\AppData\Local\Temp\release-settings2652114304406041143.xml > clean verify site --no-plugin-updates -Psonatype-oss-release -P > user,local-repository" > > In the output I can see the 'clean' and the 'site' happen, but the > failsafe integration tests do not run. If

Re: Forcing Integration Tests Before a Release

2014-03-25 Thread Mirko Friedenhagen
l-repository" > > In the output I can see the 'clean' and the 'site' happen, but the > failsafe integration tests do not run. If I do > > mvn verify -P run-it > > then the integration tests run as normal. > > Cheers, Eric > > > &

Re: Forcing Integration Tests Before a Release

2014-03-25 Thread Mirko Friedenhagen
; > In the output I can see the 'clean' and the 'site' happen, but the > failsafe integration tests do not run. If I do > > mvn verify -P run-it > > then the integration tests run as normal. > > Cheers, Eric > > > &

Re: Forcing Integration Tests Before a Release

2014-03-25 Thread Mirko Friedenhagen
ee the 'clean' and the 'site' happen, but the > failsafe integration tests do not run. If I do > > mvn verify -P run-it > > then the integration tests run as normal. > > Cheers, Eric > > > > > > org.apache.m

Re: Forcing Integration Tests Before a Release

2014-03-25 Thread Eric Kolotyluk
dates -Psonatype-oss-release -P user,local-repository" In the output I can see the 'clean' and the 'site' happen, but the failsafe integration tests do not run. If I do mvn verify -P run-it then the integration test

Re: Forcing Integration Tests Before a Release

2014-03-21 Thread Eric Kolotyluk
org.apache.maven.plugins maven-failsafe-plugin So only during release:perform your integration tests will be executed and success is verified. Regards Mirko -- http

Re: Forcing Integration Tests Before a Release

2014-03-20 Thread Mirko Friedenhagen
So only during release:perform your integration tests will be executed and success is verified. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https://bitbucket.org/mfriedenhagen/ On Thu, Mar 20, 2014 at

Re: Forcing Integration Tests Before a Release

2014-03-20 Thread Barrie Treloar
On 21 March 2014 06:02, Eric Kolotyluk wrote: > I am looking for some way to force my integration tests before a release, > without explicitly using a profile. > > [del] > > Is there some way I can trigger the integration tests when doing a release > >mvn release:pr

Forcing Integration Tests Before a Release

2014-03-20 Thread Eric Kolotyluk
I am looking for some way to force my integration tests before a release, without explicitly using a profile. For example, maven-release-plugin clean verify site But that doesn't work because unless the failsafe plugin is defined, it won'

Re: [Failsafe] How to properly conduct integration tests on executable jar files

2014-03-19 Thread Alex Karasulu
On Thu, Mar 13, 2014 at 4:54 AM, Alex Karasulu wrote: > Hello, > > I've got a module that builds an executable jar file using the Maven > Assembly Plugin. I'm trying to setup an integration test (in the same > module) that runs this executable jar file as a separate process and > interacts with i

Re: [Failsafe] How to properly conduct integration tests on executable jar files

2014-03-13 Thread Mirko Friedenhagen
Well with Netbeans you just add the following: org.apache.maven.plugins maven-surefire-plugin ${surefire.version} ${project.build.directory}/${project.artifactId}-${project.version}-shaded.jar

Re: [Failsafe] How to properly conduct integration tests on executable jar files

2014-03-13 Thread Adrien Rivard
If you are using Eclipse you could also pass the system property directly to the JRE. ( Windows/Preferences/installed JRE/ edit /default VM arguments) It require less work than putting it in all run configuration, but all your process will have it. On Thu, Mar 13, 2014 at 8:56 AM, Stephen Connol

Re: [Failsafe] How to properly conduct integration tests on executable jar files

2014-03-13 Thread Stephen Connolly
You could use test resource filtering to put the path into a resource file on the test classpath. That way the IDE will pick up the same path. On Thursday, 13 March 2014, Alex Karasulu wrote: > Hello, > > I've got a module that builds an executable jar file using the Maven > Assembly Plugin. I'

[Failsafe] How to properly conduct integration tests on executable jar files

2014-03-12 Thread Alex Karasulu
Hello, I've got a module that builds an executable jar file using the Maven Assembly Plugin. I'm trying to setup an integration test (in the same module) that runs this executable jar file as a separate process and interacts with it. To fire up the executable jar file, my integration test requires

Re: DAO injection in integration tests with a few database server specific methods

2012-11-24 Thread Stephane-3
Thanks for your sharing, I have posted on the Hibernate forum, https://forum.hibernate.org/viewtopic.php?f=1&t=1024833 Thanks for the interest. -- View this message in context: http://maven.40175.n5.nabble.com/DAO-injection-in-integration-tests-with-a-few-database-server-specific-met

Re: DAO injection in integration tests with a few database server specific methods

2012-11-24 Thread Markku Saarela
manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Sat, 24 Nov 2012 19:42:49 +0200 From: markku.saar...@iki.fi To: users@maven.apache.org Subject: Re: DAO injection in integration tests with a few database server specific methods Use Spring and Hib

RE: DAO injection in integration tests with a few database server specific methods

2012-11-24 Thread Martin Gainty
; Date: Sat, 24 Nov 2012 19:42:49 +0200 > From: markku.saar...@iki.fi > To: users@maven.apache.org > Subject: Re: DAO injection in integration tests with a few database server > specific methods > > Use Spring and Hibernate list for questions related on those. > > Markku &

Re: DAO injection in integration tests with a few database server specific methods

2012-11-24 Thread Markku Saarela
ect: Re: DAO injection in integration tests with a few database server specific methods Here is how I'm using the injected custom DAO bean method: public List findWithNavbar(Navbar navbar) { if (navbarLanguageCustomDao != null) {

RE: DAO injection in integration tests with a few database server specific methods

2012-11-24 Thread Martin Gainty
__ Place long winded disclaimer here > Date: Fri, 23 Nov 2012 01:55:57 -0800 > From: mittiprove...@yahoo.se > To: users@maven.apache.org > Subject: Re: DAO injection in integration tests with a few database server > specific methods >

Re: DAO injection in integration tests with a few database server specific methods

2012-11-23 Thread Stephane-3
27;s the best way to go though :-) -- View this message in context: http://maven.40175.n5.nabble.com/DAO-injection-in-integration-tests-with-a-few-database-server-specific-methods-tp5732576p5732611.html Sent from the Maven - Users mail

Re: DAO injection in integration tests with a few database server specific methods

2012-11-23 Thread Stephane-3
My mistake... The custom DAO bean implementation class was missing the implements NavbarLanguageCustomDao statement. I added it. No more exception any more ! -- View this message in context: http://maven.40175.n5.nabble.com/DAO-injection-in-integration-tests-with-a-few-database-server

Re: DAO injection in integration tests with a few database server specific methods

2012-11-23 Thread Stephane-3
7;: no matching editors or conversion strategy found -- View this message in context: http://maven.40175.n5.nabble.com/DAO-injection-in-integration-tests-with-a-few-database-server-specific-methods-tp5732576p5732604.html Sent from the Maven - Users mailing list archiv

Re: DAO injection in integration tests with a few database server specific methods

2012-11-23 Thread Samuli Saarinen
-- View this message in context: http://maven.40175.n5.nabble.com/DAO-injection-in-integration-tests-with-a-few-database-server-specific-methods-tp5732576p5732594.html Sent from the Maven - Users mailing list archive at Nabble.com. --

Re: DAO injection in integration tests with a few database server specific methods

2012-11-23 Thread Stephane-3
erver specific sql statement. Kind Regards, -- View this message in context: http://maven.40175.n5.nabble.com/DAO-injection-in-integration-tests-with-a-few-database-server-specific-methods-tp5732576p5732594.html Sent from the Maven - Users mailing list archive at Nabbl

Re: DAO injection in integration tests with a few database server specific methods

2012-11-22 Thread Samuli Saarinen
rver specific DAO methods in anpther one. So for example, for the Oracle database server: Should the Oracle specific DAO methods sit in a different Java package ? Should there be a different resource xml file to have the beans for the integration tests injection of these specific DAO methods ?

DAO injection in integration tests with a few database server specific methods

2012-11-22 Thread Stephane-3
Oracle specific DAO methods sit in a different Java package ? Should there be a different resource xml file to have the beans for the integration tests injection of these specific DAO methods ? Here is my setup as of today: The abstract test class: @ContextConfiguration(locations

RE: Failsafe Plugin: How to get resource dependencies for integration-tests?

2012-07-30 Thread Markus KARG
Good point! :-) > -Original Message- > From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] > Sent: Montag, 30. Juli 2012 16:11 > To: Maven Users List > Subject: Re: Failsafe Plugin: How to get resource dependencies for > integration-tests? > > I su

Re: Failsafe Plugin: How to get resource dependencies for integration-tests?

2012-07-30 Thread Stephen Connolly
ds > Markus > > -Ursprüngliche Nachricht- > Von: Laird Nelson [mailto:ljnel...@gmail.com] > Gesendet: Freitag, 27. Juli 2012 17:31 > An: Maven Users List > Betreff: Re: Failsafe Plugin: How to get resource dependencies for > integration-tests? > > On Fri, Jul 27, 2012

AW: Failsafe Plugin: How to get resource dependencies for integration-tests?

2012-07-30 Thread Markus Karg
: Laird Nelson [mailto:ljnel...@gmail.com] Gesendet: Freitag, 27. Juli 2012 17:31 An: Maven Users List Betreff: Re: Failsafe Plugin: How to get resource dependencies for integration-tests? On Fri, Jul 27, 2012 at 7:27 AM, Martin Gainty wrote: > Marcus > you can copy applicable resources with

Re: Failsafe Plugin: How to get resource dependencies for integration-tests?

2012-07-27 Thread Ansgar Konermann
If you don't need resource filtering, you could just put the jar with your resources on the test classpath, i. e. add a test-scoped dependency to the module containing the integration test. Am 27.07.2012 15:06 schrieb "Markus Karg" : > Hello Maven Community, > > > > I have a complex setup to do fo

Re: Failsafe Plugin: How to get resource dependencies for integration-tests?

2012-07-27 Thread Laird Nelson
On Fri, Jul 27, 2012 at 7:27 AM, Martin Gainty wrote: > Marcus > you can copy applicable resources with maven-resources-plugin > http://maven.apache.org/plugins/maven-resources-plugin/examples/copy-resources.htmljustremember > to hook the phase you want to bind to e.g. > validatemaven phases are

Re: Failsafe Plugin: How to get resource dependencies for integration-tests?

2012-07-27 Thread Wayne Fay
> natural), I want to tell Maven that when the integration test is > running, it shall download them and put them on the HDD. Is there a way > to specifiy such "intergration-test"-scoped dependencies? I am unaware of any such integration-test scope for dependencies. I would just use "test" scope f

RE: Failsafe Plugin: How to get resource dependencies for integration-tests?

2012-07-27 Thread Martin Gainty
to get resource dependencies for > integration-tests? > Date: Fri, 27 Jul 2012 15:06:06 +0200 > From: k...@quipsy.de > To: users@maven.apache.org > > Hello Maven Community, > > > > I have a complex setup to do for an end-to-end integration test. For > this, I am

Failsafe Plugin: How to get resource dependencies for integration-tests?

2012-07-27 Thread Markus Karg
Hello Maven Community, I have a complex setup to do for an end-to-end integration test. For this, I am using the Maven Failsafe plugin. As the test needs some resources to run (which I plan to put into Nexus as this feels just natural), I want to tell Maven that when the integration test is run

Re: configure unit & integration tests order

2012-05-17 Thread Stephen Connolly
                   mysql >                        mysql-connector-java >                        5.1.6 >                     >                     >                        jtds >                        jtds >                        1.2 >                     >                 >                 >    

configure unit & integration tests order

2012-05-17 Thread alexbarter
-- View this message in context: http://maven.40175.n5.nabble.com/configure-unit-integration-tests-order-tp5708894.html Sent from the Maven - Users mailing list archive at Nabble.com

Re: Maven2: Invoking multi-module build with integration-tests and cargo

2011-02-09 Thread Anders Hammar
to > - build my maven modules top-down using snapshot dependencies among each > other > - start my appserver with cargo > - run the integration-tests and > - keep the appserver running afterwards. > > A simplified project structure might look like this > > pom.xm

Maven2: Invoking multi-module build with integration-tests and cargo

2011-02-09 Thread Jonas Kilian
I want to - build my maven modules top-down using snapshot dependencies among each other - start my appserver with cargo - run the integration-tests and - keep the appserver running afterwards. A simplified project structure might look like this pom.xml |_ moduleA |_ moduleB |_ moduleC

Re: integration tests fail, but not the main build

2011-01-25 Thread Simone Tripodi
integration-test > post-integration-test > > directly from the command line > > to run integration tests use > > mvn verify > > the best practice for using the integration-test phase is to not fail > the build in that phase and defer checking the integration test >

Re: integration tests fail, but not the main build

2011-01-25 Thread Stephen Connolly
Never ever run the goals pre-integration-test integration-test post-integration-test directly from the command line to run integration tests use mvn verify the best practice for using the integration-test phase is to not fail the build in that phase and defer checking the integration test

integration tests fail, but not the main build

2011-01-25 Thread Simone Tripodi
Hi all, I'm sure I missed something, but when running integration tests using maven-invoker-plugin, even if integration tests fail, the build doesn't :( This[1] is the plugin configuration and the related output[2] I can get after ran `mvn clean integration-test` Any hint would be much

Problems building Maven with Eclipse and running Integration Tests

2010-08-29 Thread Victor Freire
Hello everyone, I can't build Maven properly with the m2eclipse plugin, below are the errors I get in Eclipse. Almost all maven subprojects fail to build with m2eclipse... http://www.ideone.com/vBVg6 With the command line, I can build Maven ok but most of the integration tests fa

Re: Integration tests vs. unit tests

2010-08-27 Thread Paul Benedict
Thomas, There isn't one right answer. Expect to find lots of variants. I use a naming convention. Unit tests end in plain-old vanilla Test, and integration tests end in *ITest. I use a wildcard pattern with Maven to exclude integration tests since they are long-running and need less executi

  1   2   3   >