Return-Path: X-Original-To: apmail-poi-commits-archive@minotaur.apache.org Delivered-To: apmail-poi-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A649C18938 for ; Mon, 10 Aug 2015 06:17:45 +0000 (UTC) Received: (qmail 98976 invoked by uid 500); 10 Aug 2015 06:17:45 -0000 Delivered-To: apmail-poi-commits-archive@poi.apache.org Received: (qmail 98941 invoked by uid 500); 10 Aug 2015 06:17:45 -0000 Mailing-List: contact commits-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@poi.apache.org Delivered-To: mailing list commits@poi.apache.org Received: (qmail 98931 invoked by uid 99); 10 Aug 2015 06:17:45 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2015 06:17:45 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id 2EBE3AC0321 for ; Mon, 10 Aug 2015 06:17:45 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1694960 - in /poi/trunk/src: integrationtest/org/apache/poi/stress/XSLFFileHandler.java java/org/apache/poi/sl/draw/DrawPaint.java Date: Mon, 10 Aug 2015 06:17:45 -0000 To: commits@poi.apache.org From: centic@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150810061745.2EBE3AC0321@hades.apache.org> 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: commits-unsubscribe@poi.apache.org For additional commands, e-mail: commits-help@poi.apache.org