aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases
diff options
context:
space:
mode:
authorSergey Vladimirov <sergey@apache.org>2011-10-29 22:00:42 +0000
committerSergey Vladimirov <sergey@apache.org>2011-10-29 22:00:42 +0000
commita3b1385736b868178b6be1ad5d1c3ad2ea2cf567 (patch)
tree81f3cc16d603d8bfbbb69b15e592e6aacc1f78c8 /src/testcases
parentb1cb335834fc9c89102540dcde439d4186462e6b (diff)
downloadpoi-a3b1385736b868178b6be1ad5d1c3ad2ea2cf567.tar.gz
poi-a3b1385736b868178b6be1ad5d1c3ad2ea2cf567.zip
replace exception with warning
update test case git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1195053 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases')
-rw-r--r--src/testcases/org/apache/poi/hpsf/basic/TestWrite.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/testcases/org/apache/poi/hpsf/basic/TestWrite.java b/src/testcases/org/apache/poi/hpsf/basic/TestWrite.java
index 9fe4d202f4..f651a4df32 100644
--- a/src/testcases/org/apache/poi/hpsf/basic/TestWrite.java
+++ b/src/testcases/org/apache/poi/hpsf/basic/TestWrite.java
@@ -36,7 +36,7 @@ import java.util.Map;
import junit.framework.Assert;
import junit.framework.TestCase;
-
+import org.apache.poi.POIDataSamples;
import org.apache.poi.hpsf.ClassID;
import org.apache.poi.hpsf.Constants;
import org.apache.poi.hpsf.HPSFRuntimeException;
@@ -63,7 +63,6 @@ import org.apache.poi.poifs.eventfilesystem.POIFSReaderListener;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import org.apache.poi.util.LittleEndian;
import org.apache.poi.util.TempFile;
-import org.apache.poi.POIDataSamples;
/**
* <p>Tests HPSF's writing functionality.</p>
@@ -377,14 +376,8 @@ public class TestWrite extends TestCase
check(Variant.VT_EMPTY, null, codepage);
check(Variant.VT_BOOL, Boolean.TRUE, codepage);
check(Variant.VT_BOOL, Boolean.FALSE, codepage);
- check(Variant.VT_CF, new byte[]{0}, codepage);
- check(Variant.VT_CF, new byte[]{0, 1}, codepage);
- check(Variant.VT_CF, new byte[]{0, 1, 2}, codepage);
- check(Variant.VT_CF, new byte[]{0, 1, 2, 3}, codepage);
- check(Variant.VT_CF, new byte[]{0, 1, 2, 3, 4}, codepage);
- check(Variant.VT_CF, new byte[]{0, 1, 2, 3, 4, 5}, codepage);
- check(Variant.VT_CF, new byte[]{0, 1, 2, 3, 4, 5, 6}, codepage);
- check(Variant.VT_CF, new byte[]{0, 1, 2, 3, 4, 5, 6, 7}, codepage);
+ check( Variant.VT_CF, new byte[] { 8, 0, 0, 0, 1, 0, 0, 0, 1, 2, 3,
+ 4 }, codepage );
check(Variant.VT_I4, Integer.valueOf(27), codepage);
check(Variant.VT_I8, Long.valueOf(28), codepage);
check(Variant.VT_R8, new Double(29.0), codepage);