You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by ss...@apache.org on 2018/04/13 09:37:07 UTC

svn commit: r1829049 - in /xmlgraphics/commons/trunk/src/test/java/org/apache/xmlgraphics/java2d/color: NamedColorTest.java NamedColorTestCase.java

Author: ssteiner
Date: Fri Apr 13 09:37:06 2018
New Revision: 1829049

URL: http://svn.apache.org/viewvc?rev=1829049&view=rev
Log:
Use newer test api

Added:
    xmlgraphics/commons/trunk/src/test/java/org/apache/xmlgraphics/java2d/color/NamedColorTestCase.java
      - copied, changed from r1809626, xmlgraphics/commons/trunk/src/test/java/org/apache/xmlgraphics/java2d/color/NamedColorTest.java
Removed:
    xmlgraphics/commons/trunk/src/test/java/org/apache/xmlgraphics/java2d/color/NamedColorTest.java

Copied: xmlgraphics/commons/trunk/src/test/java/org/apache/xmlgraphics/java2d/color/NamedColorTestCase.java (from r1809626, xmlgraphics/commons/trunk/src/test/java/org/apache/xmlgraphics/java2d/color/NamedColorTest.java)
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/test/java/org/apache/xmlgraphics/java2d/color/NamedColorTestCase.java?p2=xmlgraphics/commons/trunk/src/test/java/org/apache/xmlgraphics/java2d/color/NamedColorTestCase.java&p1=xmlgraphics/commons/trunk/src/test/java/org/apache/xmlgraphics/java2d/color/NamedColorTest.java&r1=1809626&r2=1829049&rev=1829049&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/test/java/org/apache/xmlgraphics/java2d/color/NamedColorTest.java (original)
+++ xmlgraphics/commons/trunk/src/test/java/org/apache/xmlgraphics/java2d/color/NamedColorTestCase.java Fri Apr 13 09:37:06 2018
@@ -21,18 +21,22 @@ package org.apache.xmlgraphics.java2d.co
 
 import java.awt.Color;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
 
 /**
  * Tests named color spaces (and the CIE Lab color space implementation).
  */
-public class NamedColorTest extends TestCase {
+public class NamedColorTestCase {
 
     private static final float POSTGELB_X = 0.6763079f;
     private static final float POSTGELB_Y = 0.6263507f;
     private static final float POSTGELB_Z = 0.04217565f;
 
-    public void testNamedColorWithCIELab() throws Exception {
+    @Test
+    public void testNamedColorWithCIELab() {
         CIELabColorSpace lab = ColorSpaces.getCIELabColorSpaceD50();
 
         //CIE Lab definition of "Postgelb" (postal yellow) at D50 as defined by Swiss Post
@@ -63,7 +67,8 @@ public class NamedColorTest extends Test
         assertEquals(0, c1.getBlue());
     }
 
-    public void testEquals() throws Exception {
+    @Test
+    public void testEquals() {
         NamedColorSpace ncs1 = new NamedColorSpace("Postgelb",
                 new float[] {POSTGELB_X, POSTGELB_Y, POSTGELB_Z});
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org