2

As mentioned in here we can specify JVM parameters for all the test classes in the application.

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.9</version>
<configuration>
    <argLine>-Xmx256M</argLine>
</configuration>
</plugin>

But how can we specify that < argLine > to specific Java class only ?

This is because i'm testing a java.policy file in a test class and I need to pass it as a JVM parameter before run that test class. But I don't want it (policy file) to be considered to other test classes

Community
  • 1
  • 1
prime
  • 14,464
  • 14
  • 99
  • 131

0 Answers0