maven-integration-testing git commit: [MNG-6352] - Added IT's for print version output.
Repository: maven-integration-testing Updated Branches: refs/heads/master d2b9d890e -> aaace6628 [MNG-6352] - Added IT's for print version output. Project: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/repo Commit: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/commit/aaace662 Tree: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/aaace662 Diff: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/aaace662 Branch: refs/heads/master Commit: aaace66282d5e3ae5c71191b9996c050ba815eef Parents: d2b9d89 Author: Karl Heinz MarbaiseAuthored: Sat Feb 17 19:26:30 2018 +0100 Committer: Karl Heinz Marbaise Committed: Sat Feb 17 20:29:05 2018 +0100 -- .../apache/maven/it/IntegrationTestSuite.java | 1 + .../it/MavenITmng6352PrintVersionTest.java | 157 +++ .../module-1/pom.xml| 30 .../module-2/pom.xml| 30 .../module-3/pom.xml| 30 .../mng-6352-print-version-aggregator/pom.xml | 58 +++ .../mng-6352-print-version/module-1/pom.xml | 33 .../mng-6352-print-version/module-2/pom.xml | 41 + .../mng-6352-print-version/module-3/pom.xml | 41 + .../resources/mng-6352-print-version/pom.xml| 58 +++ 10 files changed, 479 insertions(+) -- http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/aaace662/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java -- diff --git a/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java b/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java index c8bced7..ca46e3a 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java @@ -702,6 +702,7 @@ public class IntegrationTestSuite suite.addTestSuite( MavenIT0009GoalConfigurationTest.class ); suite.addTestSuite( MavenIT0008SimplePluginTest.class ); suite.addTestSuite( MavenITmng6210CoreExtensionsCustomScopesTest.class ); +suite.addTestSuite( MavenITmng6352PrintVersionTest.class ); /* * Add tests in reverse alpha order above. http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/aaace662/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6352PrintVersionTest.java -- diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6352PrintVersionTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6352PrintVersionTest.java new file mode 100644 index 000..aeafcc2 --- /dev/null +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6352PrintVersionTest.java @@ -0,0 +1,157 @@ +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 org.apache.maven.it.Verifier; +import org.apache.maven.it.util.ResourceExtractor; + +import java.io.File; +import java.util.Arrays; +import java.util.LinkedList; +import java.util.List; + +/** + * An integration test to check the enhancements to print out version + * information during the reactor summary output at the correct + * positions. + * + * https://issues.apache.org/jira/browse/MNG-6352;>MNG-6352. + * + * @author Karl Heinz Marbaise khmarba...@apache.org + */ +public class MavenITmng6352PrintVersionTest +extends AbstractMavenIntegrationTestCase +{ + +public MavenITmng6352PrintVersionTest() +{ +super( "[3.5.3-SNAPSHOT,)" ); +} + +/** + * Check that the resulting output is + * as expected for the root module and last + * module in build but not for the intermediate + * modules. + */ +public void testitShouldPrintVersionAtTopAndAtBottom() +throws Exception +{ +File testDir =
maven-integration-testing git commit: [MNG-6352] - Added IT's for print version output. [Forced Update!]
Repository: maven-integration-testing Updated Branches: refs/heads/MNG-6352-print-version 5b422f106 -> aaace6628 (forced update) [MNG-6352] - Added IT's for print version output. Project: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/repo Commit: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/commit/aaace662 Tree: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/aaace662 Diff: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/aaace662 Branch: refs/heads/MNG-6352-print-version Commit: aaace66282d5e3ae5c71191b9996c050ba815eef Parents: d2b9d89 Author: Karl Heinz MarbaiseAuthored: Sat Feb 17 19:26:30 2018 +0100 Committer: Karl Heinz Marbaise Committed: Sat Feb 17 20:29:05 2018 +0100 -- .../apache/maven/it/IntegrationTestSuite.java | 1 + .../it/MavenITmng6352PrintVersionTest.java | 157 +++ .../module-1/pom.xml| 30 .../module-2/pom.xml| 30 .../module-3/pom.xml| 30 .../mng-6352-print-version-aggregator/pom.xml | 58 +++ .../mng-6352-print-version/module-1/pom.xml | 33 .../mng-6352-print-version/module-2/pom.xml | 41 + .../mng-6352-print-version/module-3/pom.xml | 41 + .../resources/mng-6352-print-version/pom.xml| 58 +++ 10 files changed, 479 insertions(+) -- http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/aaace662/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java -- diff --git a/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java b/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java index c8bced7..ca46e3a 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java @@ -702,6 +702,7 @@ public class IntegrationTestSuite suite.addTestSuite( MavenIT0009GoalConfigurationTest.class ); suite.addTestSuite( MavenIT0008SimplePluginTest.class ); suite.addTestSuite( MavenITmng6210CoreExtensionsCustomScopesTest.class ); +suite.addTestSuite( MavenITmng6352PrintVersionTest.class ); /* * Add tests in reverse alpha order above. http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/aaace662/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6352PrintVersionTest.java -- diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6352PrintVersionTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6352PrintVersionTest.java new file mode 100644 index 000..aeafcc2 --- /dev/null +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6352PrintVersionTest.java @@ -0,0 +1,157 @@ +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 org.apache.maven.it.Verifier; +import org.apache.maven.it.util.ResourceExtractor; + +import java.io.File; +import java.util.Arrays; +import java.util.LinkedList; +import java.util.List; + +/** + * An integration test to check the enhancements to print out version + * information during the reactor summary output at the correct + * positions. + * + * https://issues.apache.org/jira/browse/MNG-6352;>MNG-6352. + * + * @author Karl Heinz Marbaise khmarba...@apache.org + */ +public class MavenITmng6352PrintVersionTest +extends AbstractMavenIntegrationTestCase +{ + +public MavenITmng6352PrintVersionTest() +{ +super( "[3.5.3-SNAPSHOT,)" ); +} + +/** + * Check that the resulting output is + * as expected for the root module and last + * module in build but not for the intermediate + * modules. + */ +public void testitShouldPrintVersionAtTopAndAtBottom() +
maven-integration-testing git commit: [MNG-6352] - Added IT's for print version output. [Forced Update!]
Repository: maven-integration-testing Updated Branches: refs/heads/MNG-6352-print-version 4e9303cb9 -> 5b422f106 (forced update) [MNG-6352] - Added IT's for print version output. Project: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/repo Commit: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/commit/5b422f10 Tree: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/5b422f10 Diff: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/5b422f10 Branch: refs/heads/MNG-6352-print-version Commit: 5b422f1065942feaf8e2d19945b815c33b297e41 Parents: d2b9d89 Author: Karl Heinz MarbaiseAuthored: Sat Feb 17 19:26:30 2018 +0100 Committer: Karl Heinz Marbaise Committed: Sat Feb 17 19:39:05 2018 +0100 -- .../apache/maven/it/IntegrationTestSuite.java | 1 + .../it/MavenITmng6352PrintVersionTest.java | 158 +++ .../module-1/pom.xml| 30 .../module-2/pom.xml| 30 .../module-3/pom.xml| 30 .../mng-6352-print-version-aggregator/pom.xml | 58 +++ .../mng-6352-print-version/module-1/pom.xml | 33 .../mng-6352-print-version/module-2/pom.xml | 41 + .../mng-6352-print-version/module-3/pom.xml | 41 + .../resources/mng-6352-print-version/pom.xml| 58 +++ 10 files changed, 480 insertions(+) -- http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/5b422f10/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java -- diff --git a/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java b/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java index c8bced7..ca46e3a 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java @@ -702,6 +702,7 @@ public class IntegrationTestSuite suite.addTestSuite( MavenIT0009GoalConfigurationTest.class ); suite.addTestSuite( MavenIT0008SimplePluginTest.class ); suite.addTestSuite( MavenITmng6210CoreExtensionsCustomScopesTest.class ); +suite.addTestSuite( MavenITmng6352PrintVersionTest.class ); /* * Add tests in reverse alpha order above. http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/5b422f10/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6352PrintVersionTest.java -- diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6352PrintVersionTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6352PrintVersionTest.java new file mode 100644 index 000..5359179 --- /dev/null +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6352PrintVersionTest.java @@ -0,0 +1,158 @@ +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 org.apache.maven.it.Verifier; +import org.apache.maven.it.util.ResourceExtractor; + +import java.io.File; +import java.util.Arrays; +import java.util.LinkedList; +import java.util.List; + +/** + * An integration test to check the enhancements to print out version + * information during the reactor summary output at the correct + * positions. + * + * https://issues.apache.org/jira/browse/MNG-6352;>MNG-6352. + * + * @author Karl Heinz Marbaise khmarba...@apache.org + */ +public class MavenITmng6352PrintVersionTest +extends AbstractMavenIntegrationTestCase +{ + +public MavenITmng6352PrintVersionTest() +{ +super( "[3.5.3-SNAPSHOT,)" ); +} + +/** + * Check that the resulting output is + * as expected for the root module and last + * module in build but not for the intermediate + * modules. + */ +public void testitShouldPrintVersionAtTopAndAtBottom() +
maven-integration-testing git commit: [MNG-6352] - Added IT's for print version output.
Repository: maven-integration-testing Updated Branches: refs/heads/MNG-6352-print-version [created] 4e9303cb9 [MNG-6352] - Added IT's for print version output. Project: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/repo Commit: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/commit/4e9303cb Tree: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/4e9303cb Diff: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/4e9303cb Branch: refs/heads/MNG-6352-print-version Commit: 4e9303cb9fcb1a3120ef3948ade741cedaa83374 Parents: d2b9d89 Author: Karl Heinz MarbaiseAuthored: Sat Feb 17 19:26:30 2018 +0100 Committer: Karl Heinz Marbaise Committed: Sat Feb 17 19:26:30 2018 +0100 -- .../it/MavenITmng6352PrintVersionTest.java | 158 +++ .../module-1/pom.xml| 30 .../module-2/pom.xml| 30 .../module-3/pom.xml| 30 .../mng-6352-print-version-aggregator/pom.xml | 58 +++ .../mng-6352-print-version/module-1/pom.xml | 33 .../mng-6352-print-version/module-2/pom.xml | 41 + .../mng-6352-print-version/module-3/pom.xml | 41 + .../resources/mng-6352-print-version/pom.xml| 58 +++ 9 files changed, 479 insertions(+) -- http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/4e9303cb/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6352PrintVersionTest.java -- diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6352PrintVersionTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6352PrintVersionTest.java new file mode 100644 index 000..5359179 --- /dev/null +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6352PrintVersionTest.java @@ -0,0 +1,158 @@ +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 org.apache.maven.it.Verifier; +import org.apache.maven.it.util.ResourceExtractor; + +import java.io.File; +import java.util.Arrays; +import java.util.LinkedList; +import java.util.List; + +/** + * An integration test to check the enhancements to print out version + * information during the reactor summary output at the correct + * positions. + * + * https://issues.apache.org/jira/browse/MNG-6352;>MNG-6352. + * + * @author Karl Heinz Marbaise khmarba...@apache.org + */ +public class MavenITmng6352PrintVersionTest +extends AbstractMavenIntegrationTestCase +{ + +public MavenITmng6352PrintVersionTest() +{ +super( "[3.5.3-SNAPSHOT,)" ); +} + +/** + * Check that the resulting output is + * as expected for the root module and last + * module in build but not for the intermediate + * modules. + */ +public void testitShouldPrintVersionAtTopAndAtBottom() +throws Exception +{ +File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-6352-print-version" ); + +Verifier verifier = newVerifier( testDir.getAbsolutePath(), false ); +verifier.setMavenDebug( false ); +verifier.setAutoclean( false ); + +verifier.setLogFileName( "version-log.txt" ); +verifier.executeGoals( Arrays.asList( "clean" ) ); +verifier.verifyErrorFreeLog(); + +List loadedLines = verifier.loadLines( "version-log.txt", "UTF-8" ); +List resultingLines = extractReactorBuildOrder( loadedLines ); + +// We expecting exactly four lines as result. +assertEquals( 4, resultingLines.size() ); + +// We expect those lines in the following exact order. +assertTrue( resultingLines.get( 0 ).startsWith( "[INFO] base-project 1.3.0-SNAPSHOT SUCCESS [ " ) ); +assertTrue( resultingLines.get( 1 ).startsWith( "[INFO] module-1 ... SUCCESS [ " ) ); +