commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1185695 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ToStringStyleTest.java
Date Tue, 18 Oct 2011 14:47:48 GMT
Author: ggregory
Date: Tue Oct 18 14:47:48 2011
New Revision: 1185695

URL: http://svn.apache.org/viewvc?rev=1185695&view=rev
Log:
Port to JUnit 4.

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ToStringStyleTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ToStringStyleTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ToStringStyleTest.java?rev=1185695&r1=1185694&r2=1185695&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ToStringStyleTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ToStringStyleTest.java
Tue Oct 18 14:47:48 2011
@@ -16,89 +16,99 @@
  */
 package org.apache.commons.lang3.builder;
 
-import junit.framework.TestCase;
+import static org.junit.Assert.assertEquals;
+
+import org.junit.Test;
 
 /**
  * Test case for ToStringStyle.
  * 
  * @version $Id$
  */
-public class ToStringStyleTest extends TestCase {
-
-    public ToStringStyleTest(String name) {
-        super(name);
-    }
+public class ToStringStyleTest {
 
     private static class ToStringStyleImpl extends ToStringStyle {
     }
 
     //-----------------------------------------------------------------------
+    @Test
     public void testSetArrayStart() {
         ToStringStyle style = new ToStringStyleImpl();
         style.setArrayStart(null);
         assertEquals("", style.getArrayStart());
     }
 
+    @Test
     public void testSetArrayEnd() {
         ToStringStyle style = new ToStringStyleImpl();
         style.setArrayEnd(null);
         assertEquals("", style.getArrayEnd());
     }
 
+    @Test
     public void testSetArraySeparator() {
         ToStringStyle style = new ToStringStyleImpl();
         style.setArraySeparator(null);
         assertEquals("", style.getArraySeparator());
     }
 
+    @Test
     public void testSetContentStart() {
         ToStringStyle style = new ToStringStyleImpl();
         style.setContentStart(null);
         assertEquals("", style.getContentStart());
     }
 
+    @Test
     public void testSetContentEnd() {
         ToStringStyle style = new ToStringStyleImpl();
         style.setContentEnd(null);
         assertEquals("", style.getContentEnd());
     }
 
+    @Test
     public void testSetFieldNameValueSeparator() {
         ToStringStyle style = new ToStringStyleImpl();
         style.setFieldNameValueSeparator(null);
         assertEquals("", style.getFieldNameValueSeparator());
     }
 
+    @Test
     public void testSetFieldSeparator() {
         ToStringStyle style = new ToStringStyleImpl();
         style.setFieldSeparator(null);
         assertEquals("", style.getFieldSeparator());
     }
 
+    @Test
     public void testSetNullText() {
         ToStringStyle style = new ToStringStyleImpl();
         style.setNullText(null);
         assertEquals("", style.getNullText());
     }
 
+    @Test
     public void testSetSizeStartText() {
         ToStringStyle style = new ToStringStyleImpl();
         style.setSizeStartText(null);
         assertEquals("", style.getSizeStartText());
     }
 
+    @Test
     public void testSetSizeEndText() {
         ToStringStyle style = new ToStringStyleImpl();
         style.setSizeEndText(null);
         assertEquals("", style.getSizeEndText());
     }
 
+    @Test
     public void testSetSummaryObjectStartText() {
         ToStringStyle style = new ToStringStyleImpl();
         style.setSummaryObjectStartText(null);
         assertEquals("", style.getSummaryObjectStartText());
     }
 
+    @Test
     public void testSetSummaryObjectEndText() {
         ToStringStyle style = new ToStringStyleImpl();
         style.setSummaryObjectEndText(null);



Mime
View raw message