poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gl...@apache.org
Subject cvs commit: jakarta-poi/src/testcases/org/apache/poi/hssf/record TestCommonObjectDataSubRecord.java TestDrawingGroupRecord.java TestEndSubRecord.java TestEscherAggregate.java TestTextObjectBaseRecord.java
Date Tue, 10 Feb 2004 22:07:51 GMT
glens       2004/02/10 14:07:51

  Modified:    src/testcases/org/apache/poi/hssf/usermodel Tag:
                        REL_2_BRANCH TestHSSFPalette.java
  Added:       src/testcases/org/apache/poi/hssf/usermodel Tag:
                        REL_2_BRANCH TestEscherGraphics.java
                        TestEscherGraphics2d.java TestFontDetails.java
                        TestHSSFClientAnchor.java
                        TestHSSFRichTextString.java
               src/testcases/org/apache/poi/ddf Tag: REL_2_BRANCH
                        TestEscherBSERecord.java TestEscherBlipRecord.java
                        TestEscherBoolProperty.java
                        TestEscherChildAnchorRecord.java
                        TestEscherClientAnchorRecord.java
                        TestEscherClientDataRecord.java
                        TestEscherContainerRecord.java
                        TestEscherDgRecord.java TestEscherDggRecord.java
                        TestEscherOptRecord.java
                        TestEscherPropertyFactory.java
                        TestEscherSpRecord.java TestEscherSpgrRecord.java
                        TestEscherSplitMenuColorsRecord.java
                        TestUnknownEscherRecord.java
               src/testcases/org/apache/poi/hssf/model Tag: REL_2_BRANCH
                        TestDrawingManager.java
               src/testcases/org/apache/poi/hssf/record Tag: REL_2_BRANCH
                        TestCommonObjectDataSubRecord.java
                        TestDrawingGroupRecord.java TestEndSubRecord.java
                        TestEscherAggregate.java
                        TestTextObjectBaseRecord.java
  Log:
  Test cases for office drawing support.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.3.2.1   +14 -1     jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPalette.java
  
  Index: TestHSSFPalette.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPalette.java,v
  retrieving revision 1.3
  retrieving revision 1.3.2.1
  diff -u -r1.3 -r1.3.2.1
  --- TestHSSFPalette.java	30 Apr 2003 04:38:58 -0000	1.3
  +++ TestHSSFPalette.java	10 Feb 2004 22:07:50 -0000	1.3.2.1
  @@ -178,7 +178,20 @@
               c.compare(expectedColor, paletteColor);
           }
       }
  -    
  +
  +    public void testAddColor() throws Exception
  +    {
  +        try
  +        {
  +            HSSFColor hssfColor = hssfPalette.addColor((byte)10,(byte)10,(byte)10);
  +            fail();
  +        }
  +        catch ( RuntimeException e )
  +        {
  +            // Failing because by default there are no colours left in the palette.
  +        }
  +    }
  +
       private static interface ColorComparator
       {
           void compare(HSSFColor expected, HSSFColor palette);
  
  
  
  No                   revision
  
  Index: TestHSSFPalette.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPalette.java,v
  retrieving revision 1.3
  retrieving revision 1.3.2.1
  diff -u -r1.3 -r1.3.2.1
  --- TestHSSFPalette.java	30 Apr 2003 04:38:58 -0000	1.3
  +++ TestHSSFPalette.java	10 Feb 2004 22:07:50 -0000	1.3.2.1
  @@ -178,7 +178,20 @@
               c.compare(expectedColor, paletteColor);
           }
       }
  -    
  +
  +    public void testAddColor() throws Exception
  +    {
  +        try
  +        {
  +            HSSFColor hssfColor = hssfPalette.addColor((byte)10,(byte)10,(byte)10);
  +            fail();
  +        }
  +        catch ( RuntimeException e )
  +        {
  +            // Failing because by default there are no colours left in the palette.
  +        }
  +    }
  +
       private static interface ColorComparator
       {
           void compare(HSSFColor expected, HSSFColor palette);
  
  
  
  No                   revision
  
  Index: TestHSSFPalette.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPalette.java,v
  retrieving revision 1.3
  retrieving revision 1.3.2.1
  diff -u -r1.3 -r1.3.2.1
  --- TestHSSFPalette.java	30 Apr 2003 04:38:58 -0000	1.3
  +++ TestHSSFPalette.java	10 Feb 2004 22:07:50 -0000	1.3.2.1
  @@ -178,7 +178,20 @@
               c.compare(expectedColor, paletteColor);
           }
       }
  -    
  +
  +    public void testAddColor() throws Exception
  +    {
  +        try
  +        {
  +            HSSFColor hssfColor = hssfPalette.addColor((byte)10,(byte)10,(byte)10);
  +            fail();
  +        }
  +        catch ( RuntimeException e )
  +        {
  +            // Failing because by default there are no colours left in the palette.
  +        }
  +    }
  +
       private static interface ColorComparator
       {
           void compare(HSSFColor expected, HSSFColor palette);
  
  
  
  1.1.2.1   +71 -0     jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/Attic/TestEscherGraphics.java
  
  
  
  
  1.1.2.1   +74 -0     jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/Attic/TestEscherGraphics2d.java
  
  
  
  
  1.1.2.1   +45 -0     jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/Attic/TestFontDetails.java
  
  
  
  
  1.1.2.1   +44 -0     jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/Attic/TestHSSFClientAnchor.java
  
  
  
  
  1.1.2.1   +50 -0     jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/Attic/TestHSSFRichTextString.java
  
  
  
  
  No                   revision
  No                   revision
  1.1.2.1   +87 -0     jakarta-poi/src/testcases/org/apache/poi/ddf/Attic/TestEscherBSERecord.java
  
  
  
  
  1.1.2.1   +110 -0    jakarta-poi/src/testcases/org/apache/poi/ddf/Attic/TestEscherBlipRecord.java
  
  
  
  
  1.1.2.1   +13 -0     jakarta-poi/src/testcases/org/apache/poi/ddf/Attic/TestEscherBoolProperty.java
  
  
  
  
  1.1.2.1   +73 -0     jakarta-poi/src/testcases/org/apache/poi/ddf/Attic/TestEscherChildAnchorRecord.java
  
  
  
  
  1.1.2.1   +91 -0     jakarta-poi/src/testcases/org/apache/poi/ddf/Attic/TestEscherClientAnchorRecord.java
  
  
  
  
  1.1.2.1   +57 -0     jakarta-poi/src/testcases/org/apache/poi/ddf/Attic/TestEscherClientDataRecord.java
  
  
  
  
  1.1.2.1   +98 -0     jakarta-poi/src/testcases/org/apache/poi/ddf/Attic/TestEscherContainerRecord.java
  
  
  
  
  1.1.2.1   +62 -0     jakarta-poi/src/testcases/org/apache/poi/ddf/Attic/TestEscherDgRecord.java
  
  
  
  
  1.1.2.1   +89 -0     jakarta-poi/src/testcases/org/apache/poi/ddf/Attic/TestEscherDggRecord.java
  
  
  
  
  1.1.2.1   +140 -0    jakarta-poi/src/testcases/org/apache/poi/ddf/Attic/TestEscherOptRecord.java
  
  
  
  
  1.1.2.1   +42 -0     jakarta-poi/src/testcases/org/apache/poi/ddf/Attic/TestEscherPropertyFactory.java
  
  
  
  
  1.1.2.1   +62 -0     jakarta-poi/src/testcases/org/apache/poi/ddf/Attic/TestEscherSpRecord.java
  
  
  
  
  1.1.2.1   +73 -0     jakarta-poi/src/testcases/org/apache/poi/ddf/Attic/TestEscherSpgrRecord.java
  
  
  
  
  1.1.2.1   +73 -0     jakarta-poi/src/testcases/org/apache/poi/ddf/Attic/TestEscherSplitMenuColorsRecord.java
  
  
  
  
  1.1.2.1   +106 -0    jakarta-poi/src/testcases/org/apache/poi/ddf/Attic/TestUnknownEscherRecord.java
  
  
  
  
  No                   revision
  No                   revision
  1.1.2.1   +81 -0     jakarta-poi/src/testcases/org/apache/poi/hssf/model/Attic/TestDrawingManager.java
  
  
  
  
  No                   revision
  No                   revision
  1.1.2.1   +127 -0    jakarta-poi/src/testcases/org/apache/poi/hssf/record/Attic/TestCommonObjectDataSubRecord.java
  
  
  
  
  1.1.2.1   +36 -0     jakarta-poi/src/testcases/org/apache/poi/hssf/record/Attic/TestDrawingGroupRecord.java
  
  
  
  
  1.1.2.1   +102 -0    jakarta-poi/src/testcases/org/apache/poi/hssf/record/Attic/TestEndSubRecord.java
  
  
  
  
  1.1.2.1   +124 -0    jakarta-poi/src/testcases/org/apache/poi/hssf/record/Attic/TestEscherAggregate.java
  
  
  
  
  1.1.2.1   +137 -0    jakarta-poi/src/testcases/org/apache/poi/hssf/record/Attic/TestTextObjectBaseRecord.java
  
  
  
  

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


Mime
View raw message