summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorBenjamin Culkin <scorpress@gmail.com>2024-05-18 20:51:00 -0400
committerBenjamin Culkin <scorpress@gmail.com>2024-05-18 20:51:05 -0400
commit2f93c766ed7fed2c50f55ffda29a08e81387a077 (patch)
tree00fb9fb247d77effb617a788d9155d94d93f5093 /src/test
parent68dbb2b7eaae8379bcb185428e46e083a2bf6ecb (diff)
Continue to improve
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/com/ashardalon/maven/tomcat/TomcatMojoTest.java18
-rw-r--r--src/test/resources/project-to-test/pom.xml3
-rw-r--r--src/test/resources/stachetype.warbin0 -> 153104 bytes
3 files changed, 8 insertions, 13 deletions
diff --git a/src/test/java/com/ashardalon/maven/tomcat/TomcatMojoTest.java b/src/test/java/com/ashardalon/maven/tomcat/TomcatMojoTest.java
index f2ef215..8b71cfe 100644
--- a/src/test/java/com/ashardalon/maven/tomcat/TomcatMojoTest.java
+++ b/src/test/java/com/ashardalon/maven/tomcat/TomcatMojoTest.java
@@ -9,29 +9,23 @@ import static org.junit.Assert.*;
import org.junit.Test;
import java.io.File;
-public class TomcatMojoTest
-{
+public class TomcatMojoTest {
@Rule
- public MojoRule rule = new MojoRule()
- {
+ public MojoRule rule = new MojoRule() {
@Override
- protected void before() throws Throwable
- {
+ protected void before() throws Throwable {
}
@Override
- protected void after()
- {
+ protected void after() {
}
};
/**
* @throws Exception if any
*/
- @Test
- public void testSomething()
- throws Exception
- {
+ //@Test
+ public void testSomething() throws Exception {
File pom = new File( "target/test-classes/project-to-test/" );
assertNotNull( pom );
assertTrue( pom.exists() );
diff --git a/src/test/resources/project-to-test/pom.xml b/src/test/resources/project-to-test/pom.xml
index e7f929d..2496ee8 100644
--- a/src/test/resources/project-to-test/pom.xml
+++ b/src/test/resources/project-to-test/pom.xml
@@ -17,9 +17,10 @@
<artifactId>slim-tomcat-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<configuration>
- <!-- Specify the MyMojo parameter -->
<serverName>ashardalon-tomcat</serverName>
+ <serverURL>https://blog.ashardalon.com/</serverURL>
<targetWar>stachetype.war</targetWar>
+ <appPath>/stachetype</appPath>
</configuration>
</plugin>
</plugins>
diff --git a/src/test/resources/stachetype.war b/src/test/resources/stachetype.war
new file mode 100644
index 0000000..b23c3e3
--- /dev/null
+++ b/src/test/resources/stachetype.war
Binary files differ