Skip to content

Commit

Permalink
�BAEL-866 Changes (eugenp#2669)
Browse files Browse the repository at this point in the history
  • Loading branch information
khatwaniNikhil authored and pivovarit committed Sep 26, 2017
1 parent d10d758 commit d79fcae
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 0 deletions.
57 changes: 57 additions & 0 deletions animal-sniffer-mvn-plugin/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.baeldung</groupId>
<artifactId>animal-sniffer-mvn-plugin</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>example-animal-sniffer-mvn-plugin</name>
<url>http://maven.apache.org</url>

<properties>
<maven-compiler-plugin.version>3.6.0</maven-compiler-plugin.version>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.16</version>
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java16</artifactId>
<version>1.0</version>
</signature>
</configuration>
<executions>
<execution>
<id>animal-sniffer</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>

</build>
</project>
16 changes: 16 additions & 0 deletions animal-sniffer-mvn-plugin/src/main/java/com/baeldung/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.baeldung;

//import java.nio.charset.StandardCharsets;

/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
//System.out.println(StandardCharsets.UTF_8.name());
}
}
40 changes: 40 additions & 0 deletions animal-sniffer-mvn-plugin/src/test/java/com/baeldung/AppTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package com.baeldung;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest( String testName )
{
super( testName );
}

/**
* @return the suite of tests being tested
*/
public static Test suite()
{
return new TestSuite( AppTest.class );
}

/**
* Rigourous Test :-)
*/
public void testApp()
{

assertTrue( true );

}
}

0 comments on commit d79fcae

Please sign in to comment.