aboutsummaryrefslogtreecommitdiffstats
path: root/src/scratchpad/testcases/org/apache/poi/hsmf/TestBasics.java
diff options
context:
space:
mode:
authorJaven O'Neal <onealj@apache.org>2017-01-05 11:26:42 +0000
committerJaven O'Neal <onealj@apache.org>2017-01-05 11:26:42 +0000
commit0ab2eac70e963e748b1d2a9cc5d1263bd4ead2fb (patch)
tree08318e71d239721bac1e359ab5c1b4344ad395d0 /src/scratchpad/testcases/org/apache/poi/hsmf/TestBasics.java
parenta289f095f27aaa6b78b6d4d0ddc532c22c3ceb59 (diff)
downloadpoi-0ab2eac70e963e748b1d2a9cc5d1263bd4ead2fb.tar.gz
poi-0ab2eac70e963e748b1d2a9cc5d1263bd4ead2fb.zip
junit improvements: assertEquals(null|true|false, ...) -> assertNull, assertTrue, assertFalse
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1777450 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad/testcases/org/apache/poi/hsmf/TestBasics.java')
-rw-r--r--src/scratchpad/testcases/org/apache/poi/hsmf/TestBasics.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hsmf/TestBasics.java b/src/scratchpad/testcases/org/apache/poi/hsmf/TestBasics.java
index 7cdfdb1989..da66a9b800 100644
--- a/src/scratchpad/testcases/org/apache/poi/hsmf/TestBasics.java
+++ b/src/scratchpad/testcases/org/apache/poi/hsmf/TestBasics.java
@@ -127,7 +127,7 @@ public final class TestBasics extends TestCase {
* Use a file with no HTML body
*/
public void testMissingChunks() throws Exception {
- assertEquals(false, attachments.isReturnNullOnMissingChunk());
+ assertFalse(attachments.isReturnNullOnMissingChunk());
try {
attachments.getHtmlBody();
@@ -138,7 +138,7 @@ public final class TestBasics extends TestCase {
attachments.setReturnNullOnMissingChunk(true);
- assertEquals(null, attachments.getHtmlBody());
+ assertNull(attachments.getHtmlBody());
attachments.setReturnNullOnMissingChunk(false);
@@ -155,7 +155,7 @@ public final class TestBasics extends TestCase {
* missing recipient email address
*/
public void testMissingAddressChunk() throws Exception {
- assertEquals(false, noRecipientAddress.isReturnNullOnMissingChunk());
+ assertFalse(noRecipientAddress.isReturnNullOnMissingChunk());
try {
noRecipientAddress.getRecipientEmailAddress();
@@ -176,7 +176,7 @@ public final class TestBasics extends TestCase {
noRecipientAddress.getRecipientEmailAddressList();
assertEquals("", noRecipientAddress.getRecipientEmailAddress());
assertEquals(1, noRecipientAddress.getRecipientEmailAddressList().length);
- assertEquals(null, noRecipientAddress.getRecipientEmailAddressList()[0]);
+ assertNull(noRecipientAddress.getRecipientEmailAddressList()[0]);
// Check a few other bits too
assertEquals("Microsoft Outlook 2003 Team", noRecipientAddress.getDisplayFrom());
@@ -189,10 +189,10 @@ public final class TestBasics extends TestCase {
* Test the 7 bit detection
*/
public void test7BitDetection() throws Exception {
- assertEquals(false, unicode.has7BitEncodingStrings());
- assertEquals(true, simple.has7BitEncodingStrings());
- assertEquals(true, chinese.has7BitEncodingStrings());
- assertEquals(true, cyrillic.has7BitEncodingStrings());
+ assertFalse(unicode.has7BitEncodingStrings());
+ assertTrue(simple.has7BitEncodingStrings());
+ assertTrue(chinese.has7BitEncodingStrings());
+ assertTrue(cyrillic.has7BitEncodingStrings());
}
/**