Author: centic
Date: Mon Aug 10 06:17:44 2015
New Revision: 1694960

URL: http://svn.apache.org/r1694960
Log:
Provide more output when failing range-checks on HSL2RGB-construction

Modified:
    poi/trunk/src/integrationtest/org/apache/poi/stress/XSLFFileHandler.java
    poi/trunk/src/java/org/apache/poi/sl/draw/DrawPaint.java

Modified: 
poi/trunk/src/integrationtest/org/apache/poi/stress/XSLFFileHandler.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/integrationtest/org/apache/poi/stress/XSLFFileHandler.java?rev=1694960&r1=1694959&r2=1694960&view=diff
==============================================================================
--- poi/trunk/src/integrationtest/org/apache/poi/stress/XSLFFileHandler.java 
(original)
+++ poi/trunk/src/integrationtest/org/apache/poi/stress/XSLFFileHandler.java 
Mon Aug 10 06:17:44 2015
@@ -97,7 +97,7 @@ public class XSLFFileHandler extends Abs
        // a test-case to test this locally without executing the full 
TestAllFiles
        @Test
        public void test() throws Exception {
-               InputStream stream = new 
FileInputStream("test-data/slideshow/SampleShow.pptx");
+               InputStream stream = new 
FileInputStream("test-data/slideshow/ae.ac.uaeu.faculty_nafaachbili_GeomLec1.pptx");
                try {
                        handleFile(stream);
                } finally {
@@ -105,10 +105,9 @@ public class XSLFFileHandler extends Abs
                }
        }
 
-
     // a test-case to test this locally without executing the full TestAllFiles
     @Test
     public void testExtractor() throws Exception {
-        handleExtracting(new File("test-data/slideshow/testPPT.thmx"));
+        handleExtracting(new 
File("test-data/slideshow/ae.ac.uaeu.faculty_nafaachbili_GeomLec1.pptx"));
     }
 }
\ No newline at end of file

Modified: poi/trunk/src/java/org/apache/poi/sl/draw/DrawPaint.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/sl/draw/DrawPaint.java?rev=1694960&r1=1694959&r2=1694960&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/sl/draw/DrawPaint.java (original)
+++ poi/trunk/src/java/org/apache/poi/sl/draw/DrawPaint.java Mon Aug 10 
06:17:44 2015
@@ -357,17 +357,17 @@ public class DrawPaint {
      */
     private static Color HSL2RGB(double h, double s, double l, double alpha) {
         if (s <0.0f || s > 100.0f) {
-            String message = "Color parameter outside of expected range - 
Saturation";
+            String message = "Color parameter outside of expected range - 
Saturation: " + s;
             throw new IllegalArgumentException( message );
         }
 
         if (l <0.0f || l > 100.0f) {
-            String message = "Color parameter outside of expected range - 
Luminance";
+            String message = "Color parameter outside of expected range - 
Luminance: " + l;
             throw new IllegalArgumentException( message );
         }
 
         if (alpha <0.0f || alpha > 1.0f) {
-            String message = "Color parameter outside of expected range - 
Alpha";
+            String message = "Color parameter outside of expected range - 
Alpha: " + alpha;
             throw new IllegalArgumentException( message );
         }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to