aboutsummaryrefslogtreecommitdiffstats
path: root/src/scratchpad/testcases/org/apache
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2017-09-14 22:19:16 +0000
committerPJ Fanning <fanningpj@apache.org>2017-09-14 22:19:16 +0000
commit03b4a49d9f36db6e8b91577db77661fffaee6e81 (patch)
tree01e32e3090cb6c7f1d1cd7655e5c1a176857d5fb /src/scratchpad/testcases/org/apache
parentdcad12aa4f86b11547a31a0516875a818331531f (diff)
downloadpoi-03b4a49d9f36db6e8b91577db77661fffaee6e81.tar.gz
poi-03b4a49d9f36db6e8b91577db77661fffaee6e81.zip
remove some deprecated code slated for removal in 3.18
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808400 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad/testcases/org/apache')
-rw-r--r--src/scratchpad/testcases/org/apache/poi/hsmf/TestOutlook30FileRead.java4
-rw-r--r--src/scratchpad/testcases/org/apache/poi/hsmf/TestSimpleFileRead.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hsmf/TestOutlook30FileRead.java b/src/scratchpad/testcases/org/apache/poi/hsmf/TestOutlook30FileRead.java
index 1496e082dc..9d95bba54f 100644
--- a/src/scratchpad/testcases/org/apache/poi/hsmf/TestOutlook30FileRead.java
+++ b/src/scratchpad/testcases/org/apache/poi/hsmf/TestOutlook30FileRead.java
@@ -126,8 +126,8 @@ public final class TestOutlook30FileRead extends TestCase {
* @throws Exception
*/
public void testReadMessageClass() throws Exception {
- String obtained = mapiMessage.getMessageClass();
- TestCase.assertEquals("IPM.Note", obtained);
+ MAPIMessage.MESSAGE_CLASS obtained = mapiMessage.getMessageClassEnum();
+ TestCase.assertEquals(MAPIMessage.MESSAGE_CLASS.NOTE, obtained);
}
/**
diff --git a/src/scratchpad/testcases/org/apache/poi/hsmf/TestSimpleFileRead.java b/src/scratchpad/testcases/org/apache/poi/hsmf/TestSimpleFileRead.java
index cc902fae34..f4abd80b23 100644
--- a/src/scratchpad/testcases/org/apache/poi/hsmf/TestSimpleFileRead.java
+++ b/src/scratchpad/testcases/org/apache/poi/hsmf/TestSimpleFileRead.java
@@ -130,8 +130,8 @@ public final class TestSimpleFileRead extends TestCase {
* @throws Exception
*/
public void testReadMessageClass() throws Exception {
- String obtained = mapiMessage.getMessageClass();
- TestCase.assertEquals("IPM.Note", obtained);
+ MAPIMessage.MESSAGE_CLASS obtained = mapiMessage.getMessageClassEnum();
+ TestCase.assertEquals(MAPIMessage.MESSAGE_CLASS.NOTE, obtained);
}
/**