diff options
| author | Teddy Wing | 2023-04-26 18:55:30 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2023-04-26 18:55:30 +0200 | 
| commit | bf18a2879874d8bc468ca76100db2fa16860802c (patch) | |
| tree | 4bb74f661aa6f4347e06facf7b81c9f549918d56 | |
| parent | 432a7b043d38bb2698d3f8c5572910e6ec21902f (diff) | |
| download | pdf-form-replace-font2-bf18a2879874d8bc468ca76100db2fa16860802c.tar.bz2 | |
Remove tests harness
I'm not using tests here, so rather than keep useless tests cluttering
the project I decided to remove them.
This causes the `mvn package` task to fail, so I added a skip test
configuration on the Maven Surefire plugin as described by smp7d
(https://stackoverflow.com/users/395975/smp7d) on Stack Overflow:
https://stackoverflow.com/questions/7456006/maven-package-install-without-test-skip-tests/7502723#7502723
| -rw-r--r-- | pom.xml | 14 | ||||
| -rw-r--r-- | src/test/java/com/teddywing/pdf_form_replace_font2/AppTest.java | 38 | 
2 files changed, 7 insertions, 45 deletions
| @@ -35,13 +35,6 @@        <version>1.5.0</version>        <scope>compile</scope>      </dependency> - -    <dependency> -      <groupId>junit</groupId> -      <artifactId>junit</artifactId> -      <version>3.8.1</version> -      <scope>test</scope> -    </dependency>    </dependencies>    <build> @@ -119,6 +112,13 @@            </execution>          </executions>        </plugin> + +      <plugin> +        <artifactId>maven-surefire-plugin</artifactId> +        <configuration> +          <skipTests>true</skipTests> +        </configuration> +      </plugin>      </plugins>    </build> diff --git a/src/test/java/com/teddywing/pdf_form_replace_font2/AppTest.java b/src/test/java/com/teddywing/pdf_form_replace_font2/AppTest.java deleted file mode 100644 index b6444e2..0000000 --- a/src/test/java/com/teddywing/pdf_form_replace_font2/AppTest.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.teddywing.pdf_form_replace_font2; - -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 ); -    } -} | 
