Chiara
2011-07-15 13:35:09 UTC
Hi,
I am not being able to run Powermock through maven.
I've an ejb 2.0 project and i've put under test folder my test's classes.
Here's the test:
*@RunWith(PowerMockRunner.class)
public class AdapterTest{
@Test
public void testForSqlDate() {
......*
I haven't configured anyting special for running my test. My pom references
the following deps:
* * junit | junit | 4.8.2
* org.easymock |easymock |3.0
* org.powermock | powermock-easymock-release-full |1.4.7*
This part of pom is like this :
*...
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<type>jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>3.0</version>
<type>jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-easymock-release-full</artifactId>
<version>1.4.7</version>
<type>jar</type>
<classifier>full</classifier>
<scope>test</scope>
</dependency>
...*
When i run Maven Test i obtain the following error :
*-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
Running TestSuite
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.454 sec
There are no tests to run.
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
*
why it doesn't recognise my tests??
Pls help me, i'm new in maven..
Thk's a lot
Chiara
--
View this message in context: http://maven.40175.n5.nabble.com/Error-running-Maven-Tests-with-powermock-and-junit-tp4590688p4590688.html
Sent from the Maven - Users mailing list archive at Nabble.com.
I am not being able to run Powermock through maven.
I've an ejb 2.0 project and i've put under test folder my test's classes.
Here's the test:
*@RunWith(PowerMockRunner.class)
public class AdapterTest{
@Test
public void testForSqlDate() {
......*
I haven't configured anyting special for running my test. My pom references
the following deps:
* * junit | junit | 4.8.2
* org.easymock |easymock |3.0
* org.powermock | powermock-easymock-release-full |1.4.7*
This part of pom is like this :
*...
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<type>jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>3.0</version>
<type>jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-easymock-release-full</artifactId>
<version>1.4.7</version>
<type>jar</type>
<classifier>full</classifier>
<scope>test</scope>
</dependency>
...*
When i run Maven Test i obtain the following error :
*-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
Running TestSuite
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.454 sec
There are no tests to run.
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
*
why it doesn't recognise my tests??
Pls help me, i'm new in maven..
Thk's a lot
Chiara
--
View this message in context: http://maven.40175.n5.nabble.com/Error-running-Maven-Tests-with-powermock-and-junit-tp4590688p4590688.html
Sent from the Maven - Users mailing list archive at Nabble.com.