diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2016-11-27 20:19:18 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2016-11-27 20:19:18 +0000 |
commit | 00d574164e809f29620c313447cf1a829badc339 (patch) | |
tree | 56f8d3e30056dcedf7435e93b8e078dc1712ed9b /src/testcases | |
parent | c47c780b63abf187b71894d99990e232c3d3df3a (diff) | |
download | poi-00d574164e809f29620c313447cf1a829badc339.tar.gz poi-00d574164e809f29620c313447cf1a829badc339.zip |
#60331 - Remove deprecated classes - deprecate Mutable* property classes
sonarcube fix - make protected attributes private
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1771640 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases')
-rw-r--r-- | src/testcases/org/apache/poi/hpsf/basic/TestBasic.java | 3 | ||||
-rw-r--r-- | src/testcases/org/apache/poi/hpsf/basic/TestWrite.java | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/testcases/org/apache/poi/hpsf/basic/TestBasic.java b/src/testcases/org/apache/poi/hpsf/basic/TestBasic.java index 8937dca585..b40e7a463b 100644 --- a/src/testcases/org/apache/poi/hpsf/basic/TestBasic.java +++ b/src/testcases/org/apache/poi/hpsf/basic/TestBasic.java @@ -192,8 +192,7 @@ public final class TestBasic { (poiFiles[0].getBytes())); final List<Section> sections = si.getSections(); final Section s = sections.get(0); - assertTrue(org.apache.poi.hpsf.Util.equal - (s.getFormatID().getBytes(), SectionIDMap.SUMMARY_INFORMATION_ID)); + assertArrayEquals(s.getFormatID().getBytes(), SectionIDMap.SUMMARY_INFORMATION_ID); assertNotNull(s.getProperties()); assertEquals(17, s.getPropertyCount()); assertEquals("Titel", s.getProperty(2)); diff --git a/src/testcases/org/apache/poi/hpsf/basic/TestWrite.java b/src/testcases/org/apache/poi/hpsf/basic/TestWrite.java index ffcaa3a799..20f7d8fae6 100644 --- a/src/testcases/org/apache/poi/hpsf/basic/TestWrite.java +++ b/src/testcases/org/apache/poi/hpsf/basic/TestWrite.java @@ -216,7 +216,8 @@ public class TestWrite final MutablePropertySet ps = new MutablePropertySet(); final MutableSection si = new MutableSection(); si.setFormatID(SectionIDMap.SUMMARY_INFORMATION_ID); - ps.getSections().set(0, si); + ps.clearSections(); + ps.addSection(si); final MutableProperty p = new MutableProperty(); p.setID(PropertyIDMap.PID_AUTHOR); |