aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/sl
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2019-12-15 14:53:46 +0000
committerDominik Stadler <centic@apache.org>2019-12-15 14:53:46 +0000
commit5e394a5e10bc986f4caa2d4f29d4ffa088581cbf (patch)
tree0a5b70fe699af700697c31e3daeff022a24e27bb /src/testcases/org/apache/poi/sl
parent1a5cec89d8d36f2a7cd5643b221befd57fa515b7 (diff)
downloadpoi-5e394a5e10bc986f4caa2d4f29d4ffa088581cbf.tar.gz
poi-5e394a5e10bc986f4caa2d4f29d4ffa088581cbf.zip
Let IntelliJ simplify some assertions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871591 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/sl')
-rw-r--r--src/testcases/org/apache/poi/sl/draw/geom/TestPresetGeometries.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testcases/org/apache/poi/sl/draw/geom/TestPresetGeometries.java b/src/testcases/org/apache/poi/sl/draw/geom/TestPresetGeometries.java
index 371188edb6..fe7b087c2c 100644
--- a/src/testcases/org/apache/poi/sl/draw/geom/TestPresetGeometries.java
+++ b/src/testcases/org/apache/poi/sl/draw/geom/TestPresetGeometries.java
@@ -20,6 +20,7 @@ package org.apache.poi.sl.draw.geom;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
import java.awt.geom.Path2D;
@@ -52,7 +53,7 @@ public class TestPresetGeometries {
}
// we get the same instance on further calls
- assertTrue(shapes == PresetGeometries.getInstance());
+ assertSame(shapes, PresetGeometries.getInstance());
}
// helper methods to adjust list of presets for other tests