Skip to content

Commit

Permalink
More adjustmetns to the tests were made.
Browse files Browse the repository at this point in the history
  • Loading branch information
onebeartoe committed May 22, 2013
1 parent 7614ea9 commit d702a16
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
/**
* Unit test for simple App.
*/
public class PluginSearchTest
extends TestCase
public class PluginSearchTest extends TestCase
{
private final String weatherJarPath = "../pixel-weather/target/pixel-weather-1.0-SNAPSHOT.jar";
/**
* Create the test case
*
Expand Down Expand Up @@ -61,11 +61,10 @@ public void testPixelPcJar()
public void testPixelWeatherJar()
{
System.out.println("\n\n\nTesting pixel-weather JAR:");

String jarPath = "../pixel-pc/target/pixel-weather-1.0-SNAPSHOT.jar";

boolean useFilter = true;

int count = searchForPlugins(jarPath, useFilter);
int count = searchForPlugins(weatherJarPath, useFilter);

boolean foundPlugins = count > 0;

Expand All @@ -75,11 +74,11 @@ public void testPixelWeatherJar()
public void testPixelWeatherJarNoFilter()
{
System.out.println("\n\n\nTesting pixel-weather JAR, with no filter:");

String jarPath = "../pixel-pc/target/pixel-weather-1.0-SNAPSHOT.jar";

boolean useFilter = false;

int count = searchForPlugins(jarPath, useFilter);
int count = searchForPlugins(weatherJarPath, useFilter);
System.out.println("\n\n");

boolean foundPlugins = count > 0;

Expand Down
33 changes: 2 additions & 31 deletions pixel-weather/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,30 +59,7 @@
</permissions>

</configuration>
</plugin>

<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>com.ledpixelart.pc.PixelApp</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -94,13 +71,7 @@
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>com.ledpixelart.pc.PixelApp</mainClass>
</manifest>
</archive>

</configuration>
</plugin>

Expand Down

0 comments on commit d702a16

Please sign in to comment.