>
>Place the tests in your "<project_root>/src/test/java" directory.  The
>test classes must have names beginning or ending in "Test" or ending
>in "TestCase".
>

Thanks, I have done that now. Here is c:/Documents and
Settings/siegfried/workspace/Maven_Hibernate_Spring_UML_Demo/src/test/java/c
om/SIGNITEK/demo/SimpleTestCase.java -- it works with eclipse: 

package com.SIGNITEK.demo;
import org.junit.Test;
public class SimpleTestCase 
{
  @Test
  public void Simple(){
          org.junit.Assert.assertNotNull("Not null", new String());
        }
}
However, I get the output below when I use "mvn test" from a bash prompt.
After that output listing I have put my pom.xml.

What am I doing wrong? Does maven 2.0.7 not work with JUnit 4?

Thanks,
Siegfried

cd c:/Documents and
Settings/siegfried/workspace/Maven_Hibernate_Spring_UML_Demo/
mvn test
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Unnamed -
com.SIGNITEK:Maven_Hibernate_Spring_UML_Demo:jar:0.0.1
[INFO]    task-segment: [test]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 1 source file to c:\Documents and
Settings\siegfried\workspace\Maven_Hibernate_Spring_UML_Demo\target\test-cla
sses
[INFO] [surefire:test]
[INFO] Setting reports dir: c:\Documents and
Settings\siegfried\workspace\Maven_Hibernate_Spring_UML_Demo\target/surefire
-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no test to run.

Results :
[surefire] Tests run: 0, Failures: 0, Errors: 0

[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Sep 19 20:36:39 MDT 2007
[INFO] Final Memory: 3M/7M
[INFO]
------------------------------------------------------------------------

Compilation finished at Wed Sep 19 20:36:39

c:/Documents and
Settings/siegfried/workspace/Maven_Hibernate_Spring_UML_Demo/pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.SIGNITEK</groupId>
  <artifactId>Maven_Hibernate_Spring_UML_Demo</artifactId>
  <version>0.0.1</version>

  <description>Minimal demo</description>
  <build>
    <plugins>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <version>2.0</version>
      <configuration>
        <source>1.5</source>
        <target>1.5</target>
      </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.0</version>
    </dependency>
  </dependencies>
</project>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to