Hi Allan,
Thanks to help me, but it doesn't work yet. I am not doing nothing really HARD,
is just a simple test using just one class, my folders as according Maven2
structure, are there some additional configuration, take a look on my pom.xml
portion:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/*.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jxr-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>changes-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>surefire-report-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clover-plugin</artifactId>
</plugin>
</plugins>
</reporting>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>velocity</groupId>
<artifactId>velocity</artifactId>
<version>1.4</version>
</dependency>
</dependencies>
</project>
My test is really simple, is something like this:
public void testGetInstance() {
EnviromentProperties result = EnviromentProperties.getInstance();
assertEquals("java.lang.String",result.replaceDataType("VARCHAR"));
}
When I am executing "mvn test" sounds like the EnviromentProperties class, was
not found on classpath, but I have everything exactlly created by maven2
structure. The strange bahaviour is when I test with a code as the following:
public void testGetInstance() {
// EnviromentProperties result = EnviromentProperties.getInstance();
assertEquals("java.lang.String","java.lang.String");
}
And everything works fine.....
any idea?
I am using Maven 2.0.1
Thanks
Ed
On Mon, 30 Jan 2006 17:52:28 +0800, Allan Ramirez <[EMAIL PROTECTED]> escreveu:
> De: Allan Ramirez <[EMAIL PROTECTED]>
> Data: Mon, 30 Jan 2006 17:52:28 +0800
> Para: Maven Users List <[email protected]>
> Assunto: Re: Executing mvn test (JUnit)
>
>
> Try this
> http://maven.apache.org/plugins/maven-surefire-plugin/howto.html
>
> -allan
>
> [EMAIL PROTECTED] wrote:
>
> >Hi Folks....
> >
> >Perhaps my problems is very simple: I am creating very simple tests creating
> >simple testcases, when I do the smaller and easier test using some class as
> >which is src folder structure, my tests doesn't work, when I do some foo
> >test, it works, are there some additional information I must to inform in
> >pom.xml to execute the tests ?
> >
> >Thanks in adv
> >
> >Ed
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]