From 5e394a5e10bc986f4caa2d4f29d4ffa088581cbf Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Sun, 15 Dec 2019 14:53:46 +0000 Subject: Let IntelliJ simplify some assertions git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871591 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/ooxml/testcases/org/apache/poi/openxml4j') diff --git a/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java b/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java index 9e1f00ead6..08081e711b 100644 --- a/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java +++ b/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackagingURIHelper.java @@ -85,9 +85,8 @@ public class TestPackagingURIHelper extends TestCase { // Relative part name PackagePartName relativeName = PackagingURIHelper.createPartName( "media/image1.gif", partBase); - assertTrue("The part name must be equal to " - + partNameToValid.getName(), partNameToValid - .equals(relativeName)); + assertEquals("The part name must be equal to " + + partNameToValid.getName(), partNameToValid, relativeName); pkg.revert(); } @@ -106,9 +105,8 @@ public class TestPackagingURIHelper extends TestCase { // Relative part name PackagePartName relativeName = PackagingURIHelper.createPartName( new URI("media/image1.gif"), partBase); - assertTrue("The part name must be equal to " - + partNameToValid.getName(), partNameToValid - .equals(relativeName)); + assertEquals("The part name must be equal to " + + partNameToValid.getName(), partNameToValid, relativeName); pkg.revert(); } -- cgit v1.2.3