diff options
author | Dominik Stadler <centic@apache.org> | 2017-04-17 20:13:52 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2017-04-17 20:13:52 +0000 |
commit | 5ca0b239bf9f6f0b1b0a80806a8727b702936614 (patch) | |
tree | 3df3b6e82426b169bfd7ac604a001caa237d65d5 /src/excelant/testcases | |
parent | 93ed80ba98fa4381356fed5d057861b9b65bff7f (diff) | |
download | poi-5ca0b239bf9f6f0b1b0a80806a8727b702936614.tar.gz poi-5ca0b239bf9f6f0b1b0a80806a8727b702936614.zip |
Let IntelliJ cleanup some code-warnings across the whole code-base: unnecessary toString or semicolon
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1791720 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/excelant/testcases')
-rw-r--r-- | src/excelant/testcases/org/apache/poi/ss/excelant/util/TestExcelAntWorkbookUtil.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/excelant/testcases/org/apache/poi/ss/excelant/util/TestExcelAntWorkbookUtil.java b/src/excelant/testcases/org/apache/poi/ss/excelant/util/TestExcelAntWorkbookUtil.java index bf68c24817..84663feb32 100644 --- a/src/excelant/testcases/org/apache/poi/ss/excelant/util/TestExcelAntWorkbookUtil.java +++ b/src/excelant/testcases/org/apache/poi/ss/excelant/util/TestExcelAntWorkbookUtil.java @@ -198,9 +198,9 @@ public class TestExcelAntWorkbookUtil extends TestCase { precision); //System.out.println(result); - assertTrue("Had:" + result.toString(), result.toString().contains("evaluationCompletedWithError=false")); - assertTrue("Had:" + result.toString(), result.toString().contains("returnValue=790.79")); - assertTrue("Had:" + result.toString(), result.toString().contains("cellName='MortgageCalculator'!B4")); + assertTrue("Had:" + result, result.toString().contains("evaluationCompletedWithError=false")); + assertTrue("Had:" + result, result.toString().contains("returnValue=790.79")); + assertTrue("Had:" + result, result.toString().contains("cellName='MortgageCalculator'!B4")); assertFalse(result.toString().contains("#N/A")); assertFalse(result.evaluationCompleteWithError()); @@ -220,10 +220,10 @@ public class TestExcelAntWorkbookUtil extends TestCase { precision); //System.out.println(result); - assertTrue("Had:" + result.toString(), result.toString().contains("evaluationCompletedWithError=false")); - assertTrue("Had:" + result.toString(), result.toString().contains("returnValue=790.79")); - assertTrue("Had:" + result.toString(), result.toString().contains("cellName='MortgageCalculator'!B4")); - assertFalse("Should not see an error, but had:" + result.toString(), result.toString().contains("#")); + assertTrue("Had:" + result, result.toString().contains("evaluationCompletedWithError=false")); + assertTrue("Had:" + result, result.toString().contains("returnValue=790.79")); + assertTrue("Had:" + result, result.toString().contains("cellName='MortgageCalculator'!B4")); + assertFalse("Should not see an error, but had:" + result, result.toString().contains("#")); assertFalse(result.evaluationCompleteWithError()); assertFalse(result.didTestPass()); @@ -242,10 +242,10 @@ public class TestExcelAntWorkbookUtil extends TestCase { precision); System.out.println(result); - assertTrue("Had:" + result.toString(), result.toString().contains("evaluationCompletedWithError=true")); - assertTrue("Had:" + result.toString(), result.toString().contains("returnValue=0.0")); - assertTrue("Had:" + result.toString(), result.toString().contains("cellName='ErrorCell'!A1")); - assertTrue("Had:" + result.toString(), result.toString().contains("#N/A")); + assertTrue("Had:" + result, result.toString().contains("evaluationCompletedWithError=true")); + assertTrue("Had:" + result, result.toString().contains("returnValue=0.0")); + assertTrue("Had:" + result, result.toString().contains("cellName='ErrorCell'!A1")); + assertTrue("Had:" + result, result.toString().contains("#N/A")); assertTrue(result.evaluationCompleteWithError()); assertFalse(result.didTestPass()); |