Re: UnitTests in IDE

2016-09-15 Thread Martin Stockhammer
Hi, 

the last attempt showed errors, that userjdo class cannot  be persisted, 
because the class contained no persistence methods. I think that's because the 
persistence library does some bytecode enhancement and either this does not 
work in my IDE or the class path for unit test run is not correct. 
But maybe it has to do with the Jdk issue as mentioned in the ticket. I will 
try it with another Jdk.

Greetings

Martin

Am 16. September 2016 05:24:48 MESZ, schrieb Olivier Lamy :
>Hi
>what sort of errors?
>I have some errors too but not for all which is weird.
>Some are related to the spring plugin which cannot see some xml
>files...
>
>
>On 14 September 2016 at 20:09,  wrote:
>
>> Hi,
>>
>> i would like to know, if it's possible to run single unit test
>methods of
>> archiva in the IDE.
>> Running the tests with the maven test lifecycle method works fine,
>but if
>> I try to run it
>> directly with Intellij, I get some strange problems that may relate
>to the
>> classpath.
>> Seems that the IDE IntelliJ does not use the same classpath as maven
>uses
>> for running the tests.
>> If someone has a setup that works, please tell me.
>>
>> Greetings
>>
>> Martin
>>
>
>
>
>-- 
>Olivier Lamy
>http://twitter.com/olamy | http://linkedin.com/in/olamy

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Re: UnitTests in IDE

2016-09-15 Thread Olivier Lamy
Hi
what sort of errors?
I have some errors too but not for all which is weird.
Some are related to the spring plugin which cannot see some xml files...


On 14 September 2016 at 20:09,  wrote:

> Hi,
>
> i would like to know, if it's possible to run single unit test methods of
> archiva in the IDE.
> Running the tests with the maven test lifecycle method works fine, but if
> I try to run it
> directly with Intellij, I get some strange problems that may relate to the
> classpath.
> Seems that the IDE IntelliJ does not use the same classpath as maven uses
> for running the tests.
> If someone has a setup that works, please tell me.
>
> Greetings
>
> Martin
>



-- 
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy


UnitTests in IDE

2016-09-14 Thread m . stockhammer
Hi,
 
i would like to know, if it's possible to run single unit test methods of 
archiva in the IDE.
Running the tests with the maven test lifecycle method works fine, but if I try 
to run it
directly with Intellij, I get some strange problems that may relate to the 
classpath. 
Seems that the IDE IntelliJ does not use the same classpath as maven uses for 
running the tests.
If someone has a setup that works, please tell me.
 
Greetings
 
Martin