You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2020/04/16 10:43:24 UTC

[maven-ear-plugin] 14/24: Improved tests.

This is an automated email from the ASF dual-hosted git repository.

khmarbaise pushed a commit to branch itf-extension
in repository https://gitbox.apache.org/repos/asf/maven-ear-plugin.git

commit 8f4977986bec580f14acb873ed3519b20ef2ec80
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Sun Nov 10 21:59:45 2019 +0100

    Improved tests.
---
 .../java/org/apache/maven/plugins/ear/it/EARIT.java     | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/maven/plugins/ear/it/EARIT.java b/src/test/java/org/apache/maven/plugins/ear/it/EARIT.java
index 5b45074..ba01079 100644
--- a/src/test/java/org/apache/maven/plugins/ear/it/EARIT.java
+++ b/src/test/java/org/apache/maven/plugins/ear/it/EARIT.java
@@ -86,6 +86,19 @@ class EARIT {
         .containsOnlyOnce("META-INF/application.xml", "APP-INF/classes/foo.properties");
   }
 
+  /*
+  Archive:  test-1.0.ear
+    testing: META-INF/MANIFEST.MF     OK
+    testing: META-INF/                OK
+    testing: META-INF/maven/          OK
+    testing: META-INF/maven/org.apache.maven.its.ear.jboss/   OK
+    testing: META-INF/maven/org.apache.maven.its.ear.jboss/test/   OK
+    testing: META-INF/application.xml   OK
+    testing: META-INF/jboss-app.xml   OK
+    testing: META-INF/appserver-application.xml   OK
+    testing: META-INF/maven/org.apache.maven.its.ear.jboss/test/pom.xml   OK
+    testing: META-INF/maven/org.apache.maven.its.ear.jboss/test/pom.properties   OK
+   */
   @MavenTest
   @DisplayName("JBoss app generation in EAR file.")
   void jboss(MavenExecutionResult result, MavenProjectResult project, MavenLog log) {
@@ -93,7 +106,7 @@ class EARIT {
     assertThat(log).isSuccessful();
     assertThat(project).hasTarget()
         .withEarFile()
-        .containsOnly("META-INF/application.xml",
+        .containsOnlyOnce("META-INF/application.xml",
             "META-INF/appserver-application.xml",
             "META-INF/jboss-app.xml");
   }
@@ -104,7 +117,7 @@ class EARIT {
     assertThat(log).isSuccessful();
     assertThat(project).hasTarget()
         .withEarFile()
-        .containsOnly("org.apache.maven-maven-core-3.0.jar");
+        .containsOnlyOnce("org.apache.maven-maven-core-3.0.jar", "META-INF/application.xml");
   }
 
 }