cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1073935 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/types/ByteArrayTypeTest.java
Date Wed, 23 Feb 2011 20:39:34 GMT
Author: aadamchik
Date: Wed Feb 23 20:39:34 2011
New Revision: 1073935

URL: http://svn.apache.org/viewvc?rev=1073935&view=rev
Log:
tests cleanup

no need for special superclass

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/types/ByteArrayTypeTest.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/types/ByteArrayTypeTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/types/ByteArrayTypeTest.java?rev=1073935&r1=1073934&r2=1073935&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/types/ByteArrayTypeTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/types/ByteArrayTypeTest.java
Wed Feb 23 20:39:34 2011
@@ -19,27 +19,33 @@
 
 package org.apache.cayenne.access.types;
 
-import org.apache.cayenne.unit.CayenneCase;
+import junit.framework.TestCase;
 
-/**
- */
-public class ByteArrayTypeTest extends CayenneCase {
+public class ByteArrayTypeTest extends TestCase {
 
     public void testTrimBytes1() throws Exception {
-        byte[] b1 = new byte[] { 1, 2, 3 };
+        byte[] b1 = new byte[] {
+                1, 2, 3
+        };
         byte[] b2 = ByteArrayType.trimBytes(b1);
         assertByteArraysEqual(b1, b2);
     }
 
     public void testTrimBytes2() throws Exception {
-        byte[] ref = new byte[] { 1, 2, 3 };
-        byte[] b1 = new byte[] { 1, 2, 3, 0, 0 };
+        byte[] ref = new byte[] {
+                1, 2, 3
+        };
+        byte[] b1 = new byte[] {
+                1, 2, 3, 0, 0
+        };
         byte[] b2 = ByteArrayType.trimBytes(b1);
         assertByteArraysEqual(ref, b2);
     }
 
     public void testTrimBytes3() throws Exception {
-        byte[] b1 = new byte[] { 0, 1, 2, 3 };
+        byte[] b1 = new byte[] {
+                0, 1, 2, 3
+        };
         byte[] b2 = ByteArrayType.trimBytes(b1);
         assertByteArraysEqual(b1, b2);
     }
@@ -50,8 +56,7 @@ public class ByteArrayTypeTest extends C
         assertByteArraysEqual(b1, b2);
     }
 
-    public static void assertByteArraysEqual(byte[] b1, byte[] b2)
-        throws Exception {
+    public static void assertByteArraysEqual(byte[] b1, byte[] b2) throws Exception {
         if (b1 == b2) {
             return;
         }
@@ -69,8 +74,7 @@ public class ByteArrayTypeTest extends C
         }
 
         if (b1.length != b2.length) {
-            fail(
-                "byte arrays differ (length differs: ["
+            fail("byte arrays differ (length differs: ["
                     + b1.length
                     + ","
                     + b2.length



Mime
View raw message