convert to junit4

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1751172 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-07-03 20:04:43 +00:00
parent 6899a1ad95
commit ac451c874d

View File

@ -16,7 +16,8 @@
==================================================================== */
package org.apache.poi.hmef;
import junit.framework.TestCase;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.apache.poi.POIDataSamples;
import org.apache.poi.hmef.attribute.MAPIAttribute;
@ -25,7 +26,10 @@ import org.apache.poi.hmef.attribute.TNEFProperty;
import org.apache.poi.hsmf.datatypes.MAPIProperty;
import org.apache.poi.util.LittleEndian;
public class TestBugs extends TestCase {
import org.junit.Test;
public class TestBugs {
@Test
public void test52400ReadSimpleTNEF() throws Exception {
POIDataSamples samples = POIDataSamples.getHMEFInstance();
String testFile = "bug52400-winmail-simple.dat";
@ -35,6 +39,7 @@ public class TestBugs extends TestCase {
assertTrue(bodyStr.contains("This is the message body."));
}
@Test
public void test52400ReadAttachedTNEF() throws Exception {
POIDataSamples samples = POIDataSamples.getHMEFInstance();
String testFile = "bug52400-winmail-with-attachments.dat";