You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2020/06/06 09:14:27 UTC

[maven-invoker-plugin] 01/02: Fix checkstyle errors

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

slachiewicz pushed a commit to branch MINVOKER-264
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit d08055843c02488340e96f7894f4376dc2548687
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Sat Jun 6 11:13:10 2020 +0200

    Fix checkstyle errors
---
 .../apache/maven/plugins/invoker/InvokerPropertiesTest.java  | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/test/java/org/apache/maven/plugins/invoker/InvokerPropertiesTest.java b/src/test/java/org/apache/maven/plugins/invoker/InvokerPropertiesTest.java
index fe9349c..784a7f4 100644
--- a/src/test/java/org/apache/maven/plugins/invoker/InvokerPropertiesTest.java
+++ b/src/test/java/org/apache/maven/plugins/invoker/InvokerPropertiesTest.java
@@ -373,7 +373,6 @@ public class InvokerPropertiesTest
     @Test
     public void testGetToolchains()
     {
-
         Properties props = new Properties();
         props.put( "invoker.toolchain.jdk.version", "11" );
         InvokerProperties facade = new InvokerProperties( props );
@@ -382,24 +381,23 @@ public class InvokerPropertiesTest
         assertNotNull( toolchains );
         assertEquals( 1, toolchains.size() );
         InvokerToolchain toolchain = toolchains.iterator().next();
-        assertEquals( "jdk", toolchain.getType());
-        assertEquals( Collections.singletonMap( "version", "11" ), toolchain.getProvides());
+        assertEquals( "jdk", toolchain.getType() );
+        assertEquals( Collections.singletonMap( "version", "11" ), toolchain.getProvides() );
     }
 
     @Test
     public void testGetToolchainsWithIndex()
     {
-
         Properties props = new Properties();
         props.put( "selector.1.invoker.toolchain.jdk.version", "11" );
         InvokerProperties facade = new InvokerProperties( props );
 
-        Collection<InvokerToolchain> toolchains = facade.getToolchains(1);
+        Collection<InvokerToolchain> toolchains = facade.getToolchains( 1 );
         assertNotNull( toolchains );
         assertEquals( 1, toolchains.size() );
         InvokerToolchain toolchain = toolchains.iterator().next();
-        assertEquals( "jdk", toolchain.getType());
-        assertEquals( Collections.singletonMap( "version", "11" ), toolchain.getProvides());
+        assertEquals( "jdk", toolchain.getType() );
+        assertEquals( Collections.singletonMap( "version", "11" ), toolchain.getProvides() );
     }
 
 }