You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2019/03/24 18:32:47 UTC

[GitHub] [maven-integration-testing] eolivelli commented on a change in pull request #43: Add regression test for MNG-6506

eolivelli commented on a change in pull request #43: Add regression test for MNG-6506
URL: https://github.com/apache/maven-integration-testing/pull/43#discussion_r268446307
 
 

 ##########
 File path: core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6506PackageAnnotationTest.java
 ##########
 @@ -0,0 +1,56 @@
+package org.apache.maven.it;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.io.File;
+
+import org.apache.maven.it.util.ResourceExtractor;
+
+public class MavenITmng6506PackageAnnotationTest
+    extends AbstractMavenIntegrationTestCase
+{
+
+    public MavenITmng6506PackageAnnotationTest()
+    {
+        super( "[3.6.1,)" );
+    }
+
+    public void testGetPackageAnnotation()
+            throws Exception
+    {
+        File testDir =
+                ResourceExtractor.simpleExtractResources( getClass(),
+                                                          "/mng-6506-package-annotation" );
+        File pluginDir = new File( testDir, "plugin" );
+        File projectDir = new File( testDir, "project" );
+
+        Verifier verifier;
+
+        verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
+        verifier.executeGoal( "install" );
+        verifier.resetStreams();
+        verifier.verifyErrorFreeLog();
+
+        verifier = newVerifier( projectDir.getAbsolutePath(), "remote" );
+        verifier.executeGoal( "verify" );
+        verifier.resetStreams();
+        verifier.verifyErrorFreeLog();
 
 Review comment:
   Maybe we could add a more narrow assertion, like printing something in the test case and then checking that the output contains such text

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services