sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1410844 - /sis/branches/JDK7/sis-utility/src/test/java/org/apache/sis/util/collection/DefaultTreeTableTest.java
Date Sun, 18 Nov 2012 07:25:28 GMT
Author: desruisseaux
Date: Sun Nov 18 07:25:27 2012
New Revision: 1410844

URL: http://svn.apache.org/viewvc?rev=1410844&view=rev
Log:
Variable renaming.

Modified:
    sis/branches/JDK7/sis-utility/src/test/java/org/apache/sis/util/collection/DefaultTreeTableTest.java

Modified: sis/branches/JDK7/sis-utility/src/test/java/org/apache/sis/util/collection/DefaultTreeTableTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-utility/src/test/java/org/apache/sis/util/collection/DefaultTreeTableTest.java?rev=1410844&r1=1410843&r2=1410844&view=diff
==============================================================================
--- sis/branches/JDK7/sis-utility/src/test/java/org/apache/sis/util/collection/DefaultTreeTableTest.java
(original)
+++ sis/branches/JDK7/sis-utility/src/test/java/org/apache/sis/util/collection/DefaultTreeTableTest.java
Sun Nov 18 07:25:27 2012
@@ -49,9 +49,9 @@ public final strictfp class DefaultTreeT
     @TestStep
     private static DefaultTreeTable testTableCreation() {
         final DefaultTreeTable table = new DefaultTreeTable(NAME, TYPE);
-        assertEquals("Number of columns:",      2,                  table.columnIndex.size());
-        assertEquals("Index of first column:",  Integer.valueOf(0), table.columnIndex.get(NAME));
-        assertEquals("Index of second column:", Integer.valueOf(1), table.columnIndex.get(TYPE));
+        assertEquals("Number of columns:",      2,                  table.columnIndices.size());
+        assertEquals("Index of first column:",  Integer.valueOf(0), table.columnIndices.get(NAME));
+        assertEquals("Index of second column:", Integer.valueOf(1), table.columnIndices.get(TYPE));
         assertArrayEquals(new TableColumn<?>[] {NAME, TYPE}, table.getColumns().toArray());
         try {
             assertNull(table.getRoot());
@@ -80,7 +80,7 @@ public final strictfp class DefaultTreeT
          * Create a root node with an initially empty list of children.
          */
         final DefaultTreeTable.Node root = new DefaultTreeTable.Node(table);
-        assertSame("Internal table sharing:", table.columnIndex, root.columnIndex);
+        assertSame("Internal table sharing:", table.columnIndices, root.columnIndices);
         assertTrue("Initial children list:",  root.getChildren().isEmpty());
         table.setRoot(root);
         /*
@@ -88,7 +88,7 @@ public final strictfp class DefaultTreeT
          * to the root list of children.
          */
         final DefaultTreeTable.Node node1 = new DefaultTreeTable.Node(root, -1);
-        assertSame("Internal table sharing:",  table.columnIndex, node1.columnIndex);
+        assertSame("Internal table sharing:",  table.columnIndices, node1.columnIndices);
         assertTrue("Initial children list:",   node1.getChildren().isEmpty());
         assertSame("Specified parent:",        root, node1.getParent());
         assertSame("Children list after add:", node1, getSingleton(root.getChildren()));
@@ -96,7 +96,7 @@ public final strictfp class DefaultTreeT
          * Create a child of the previous child.
          */
         final DefaultTreeTable.Node node2 = new DefaultTreeTable.Node(node1, 0);
-        assertSame("Internal table sharing:",    table.columnIndex, node2.columnIndex);
+        assertSame("Internal table sharing:",    table.columnIndices, node2.columnIndices);
         assertTrue("Initial children list:",     node2.getChildren().isEmpty());
         assertSame("Specified parent:",          node1, node2.getParent());
         assertSame("Children list after add:",   node2, getSingleton(node1.getChildren()));



Mime
View raw message