File tree Expand file tree Collapse file tree
animal-sniffer-mvn-plugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" >
3+ <modelVersion >4.0.0</modelVersion >
4+ <groupId >com.baeldung</groupId >
5+ <artifactId >animal-sniffer-mvn-plugin</artifactId >
6+ <packaging >jar</packaging >
7+ <version >1.0-SNAPSHOT</version >
8+ <name >example-animal-sniffer-mvn-plugin</name >
9+ <url >http://maven.apache.org</url >
10+
11+ <properties >
12+ <maven-compiler-plugin .version>3.6.0</maven-compiler-plugin .version>
13+ </properties >
14+
15+ <dependencies >
16+ <dependency >
17+ <groupId >junit</groupId >
18+ <artifactId >junit</artifactId >
19+ <version >3.8.1</version >
20+ <scope >test</scope >
21+ </dependency >
22+ </dependencies >
23+ <build >
24+ <plugins >
25+ <plugin >
26+ <artifactId >maven-compiler-plugin</artifactId >
27+ <version >3.7.0</version >
28+ <configuration >
29+ <source >1.6</source >
30+ <target >1.6</target >
31+ </configuration >
32+ </plugin >
33+ <plugin >
34+ <groupId >org.codehaus.mojo</groupId >
35+ <artifactId >animal-sniffer-maven-plugin</artifactId >
36+ <version >1.16</version >
37+ <configuration >
38+ <signature >
39+ <groupId >org.codehaus.mojo.signature</groupId >
40+ <artifactId >java16</artifactId >
41+ <version >1.0</version >
42+ </signature >
43+ </configuration >
44+ <executions >
45+ <execution >
46+ <id >animal-sniffer</id >
47+ <phase >verify</phase >
48+ <goals >
49+ <goal >check</goal >
50+ </goals >
51+ </execution >
52+ </executions >
53+ </plugin >
54+ </plugins >
55+
56+ </build >
57+ </project >
Original file line number Diff line number Diff line change 1+ package com .baeldung ;
2+
3+ //import java.nio.charset.StandardCharsets;
4+
5+ /**
6+ * Hello world!
7+ *
8+ */
9+ public class App
10+ {
11+ public static void main ( String [] args )
12+ {
13+ System .out .println ( "Hello World!" );
14+ //System.out.println(StandardCharsets.UTF_8.name());
15+ }
16+ }
Original file line number Diff line number Diff line change 1+ package com .baeldung ;
2+
3+ import junit .framework .Test ;
4+ import junit .framework .TestCase ;
5+ import junit .framework .TestSuite ;
6+
7+ /**
8+ * Unit test for simple App.
9+ */
10+ public class AppTest
11+ extends TestCase
12+ {
13+ /**
14+ * Create the test case
15+ *
16+ * @param testName name of the test case
17+ */
18+ public AppTest ( String testName )
19+ {
20+ super ( testName );
21+ }
22+
23+ /**
24+ * @return the suite of tests being tested
25+ */
26+ public static Test suite ()
27+ {
28+ return new TestSuite ( AppTest .class );
29+ }
30+
31+ /**
32+ * Rigourous Test :-)
33+ */
34+ public void testApp ()
35+ {
36+
37+ assertTrue ( true );
38+
39+ }
40+ }
You can’t perform that action at this time.
0 commit comments