This commit is contained in:
Phillip Webb
2015-09-05 10:38:30 -07:00
parent 67402405db
commit 6e29ee4557
125 changed files with 638 additions and 506 deletions

View File

@@ -72,7 +72,7 @@ public class DependencyFilterMojoTests {
return a;
}
private static class TestableDependencyFilterMojo extends
private static final class TestableDependencyFilterMojo extends
AbstractDependencyFilterMojo {
private TestableDependencyFilterMojo(List<Exclude> excludes,

View File

@@ -40,10 +40,13 @@ import static org.junit.Assert.assertTrue;
* @author Phillip Webb
* @author Andy Wilkinson
*/
public class Verify {
public final class Verify {
public static final String SAMPLE_APP = "org.test.SampleApplication";
private Verify() {
}
public static void verifyJar(File file) throws Exception {
new JarArchiveVerification(file, SAMPLE_APP).verify();
}

View File

@@ -23,7 +23,12 @@ package org.springframework.boot.maven.sample;
*/
public class ClassWithMainMethod {
public void run() {
System.out.println("Hello World");
}
public static void main(String[] args) {
new ClassWithMainMethod().run();
}
}