You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by kl...@apache.org on 2004/06/22 18:15:10 UTC

cvs commit: jakarta-poi/src/testcases/org/apache/poi/hpsf/basic TestBasic.java TestEmptyProperties.java TestUnicode.java

klute       2004/06/22 09:15:10

  Modified:    src/testcases/org/apache/poi/hpsf/basic TestBasic.java
                        TestEmptyProperties.java TestUnicode.java
  Log:
  
  
  Revision  Changes    Path
  1.12      +8 -4      jakarta-poi/src/testcases/org/apache/poi/hpsf/basic/TestBasic.java
  
  Index: TestBasic.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/testcases/org/apache/poi/hpsf/basic/TestBasic.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- TestBasic.java	9 Apr 2004 13:05:34 -0000	1.11
  +++ TestBasic.java	22 Jun 2004 16:15:10 -0000	1.12
  @@ -1,4 +1,3 @@
  -
   /* ====================================================================
      Copyright 2002-2004   Apache Software Foundation
   
  @@ -24,6 +23,7 @@
   import java.io.FileNotFoundException;
   import java.io.IOException;
   import java.io.InputStream;
  +import java.io.UnsupportedEncodingException;
   import java.util.List;
   
   import junit.framework.Assert;
  @@ -133,9 +133,13 @@
        * NoPropertySetStreamException} will be thrown when trying to
        * create a {@link PropertySet}.</p>
        * 
  -     * @exception IOException if an I/O exception occurs
  +     * @exception IOException if an I/O exception occurs.
  +     * 
  +     * @exception UnsupportedEncodingException if a character encoding is not
  +     * supported.
        */
  -    public void testCreatePropertySets() throws IOException
  +    public void testCreatePropertySets()
  +    throws UnsupportedEncodingException, IOException
       {
           Class[] expected = new Class[]
               {
  
  
  
  1.5       +8 -3      jakarta-poi/src/testcases/org/apache/poi/hpsf/basic/TestEmptyProperties.java
  
  Index: TestEmptyProperties.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/testcases/org/apache/poi/hpsf/basic/TestEmptyProperties.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestEmptyProperties.java	9 Apr 2004 13:05:34 -0000	1.4
  +++ TestEmptyProperties.java	22 Jun 2004 16:15:10 -0000	1.5
  @@ -22,6 +22,7 @@
   import java.io.FileNotFoundException;
   import java.io.IOException;
   import java.io.InputStream;
  +import java.io.UnsupportedEncodingException;
   
   import junit.framework.Assert;
   import junit.framework.TestCase;
  @@ -116,9 +117,13 @@
        * NoPropertySetStreamException} will be thrown when trying to
        * create a {@link PropertySet}.</p>
        * 
  -     * @exception IOException if an I/O exception occurs
  +     * @exception IOException if an I/O exception occurs.
  +     * 
  +     * @exception UnsupportedEncodingException if a character encoding is not
  +     * supported.
        */
  -    public void testCreatePropertySets() throws IOException
  +    public void testCreatePropertySets()
  +    throws UnsupportedEncodingException, IOException
       { 
           Class[] expected = new Class[]
               {
  
  
  
  1.6       +3 -2      jakarta-poi/src/testcases/org/apache/poi/hpsf/basic/TestUnicode.java
  
  Index: TestUnicode.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/testcases/org/apache/poi/hpsf/basic/TestUnicode.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestUnicode.java	9 Apr 2004 13:05:34 -0000	1.5
  +++ TestUnicode.java	22 Jun 2004 16:15:10 -0000	1.6
  @@ -26,6 +26,7 @@
   import junit.framework.Assert;
   import junit.framework.TestCase;
   
  +import org.apache.poi.hpsf.Constants;
   import org.apache.poi.hpsf.HPSFException;
   import org.apache.poi.hpsf.PropertySet;
   import org.apache.poi.hpsf.PropertySetFactory;
  @@ -99,7 +100,7 @@
           Assert.assertEquals(ps.getSectionCount(), 2);
           Section s = (Section) ps.getSections().get(1);
           Assert.assertEquals(s.getProperty(1),
  -                            new Integer(1200));
  +                            new Integer(Constants.CP_UTF16));
           Assert.assertEquals(s.getProperty(2),
                               new Long(4198897018L));
           Assert.assertEquals(s.getProperty(3),
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org