Class SetupVerifier


  • public class SetupVerifier
    extends Object
    • Constructor Detail

      • SetupVerifier

        public SetupVerifier()
    • Method Detail

      • assertThatJarExists

        public static void assertThatJarExists​(File archive)
                                        throws Exception
        Throws:
        Exception
      • assertThatJarContainsFile

        public static void assertThatJarContainsFile​(File archive,
                                                     String file)
                                              throws Exception
        Throws:
        Exception
      • assertThatJarDoesNotContainFile

        public static void assertThatJarDoesNotContainFile​(File archive,
                                                           String file)
                                                    throws Exception
        Throws:
        Exception
      • assertThatJarContainsFileWithContent

        public static void assertThatJarContainsFileWithContent​(File archive,
                                                                String path,
                                                                String... lines)
                                                         throws Exception
        Throws:
        Exception
      • hasPlugin

        public static Optional<org.apache.maven.model.Plugin> hasPlugin​(org.apache.maven.project.MavenProject project,
                                                                        String pluginKey)
      • verifySetupWithVersion

        public static void verifySetupWithVersion​(File pomFile)
                                           throws Exception
        Throws:
        Exception