From 1ba9a6ffe01a3bf9a9a1a0975a1384d86cde2566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Boutemy?= Date: Tue, 19 Aug 2014 17:17:05 +0200 Subject: [PATCH] test code formatting --- .../java/org/apache/maven/cli/MavenCliTest.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java b/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java index 0b05578c4d..ba26467d27 100644 --- a/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java +++ b/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java @@ -21,7 +21,8 @@ package org.apache.maven.cli; import junit.framework.TestCase; -public class MavenCliTest extends TestCase +public class MavenCliTest + extends TestCase { private MavenCli cli; @@ -34,16 +35,16 @@ public class MavenCliTest extends TestCase { int cores = Runtime.getRuntime().availableProcessors(); // -T2.2C - assertEquals((int)(cores * 2.2), cli.calculateDegreeOfConcurrencyWithCoreMultiplier("C2.2")); + assertEquals( (int) ( cores * 2.2 ), cli.calculateDegreeOfConcurrencyWithCoreMultiplier( "C2.2" ) ); // -TC2.2 - assertEquals((int)(cores * 2.2), cli.calculateDegreeOfConcurrencyWithCoreMultiplier("2.2C")); + assertEquals( (int) ( cores * 2.2 ), cli.calculateDegreeOfConcurrencyWithCoreMultiplier( "2.2C" ) ); try { - cli.calculateDegreeOfConcurrencyWithCoreMultiplier("CXXX"); - fail("Should have failed with a NumberFormatException"); - } - catch( NumberFormatException e) + cli.calculateDegreeOfConcurrencyWithCoreMultiplier( "CXXX" ); + fail( "Should have failed with a NumberFormatException" ); + } + catch ( NumberFormatException e ) { // carry on }