You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2010/11/23 08:35:22 UTC

svn commit: r1038010 - /click/trunk/click/framework/test/org/apache/click/control/TableTest.java

Author: sabob
Date: Tue Nov 23 07:35:22 2010
New Revision: 1038010

URL: http://svn.apache.org/viewvc?rev=1038010&view=rev
Log:
use english locale when running tests

Modified:
    click/trunk/click/framework/test/org/apache/click/control/TableTest.java

Modified: click/trunk/click/framework/test/org/apache/click/control/TableTest.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/test/org/apache/click/control/TableTest.java?rev=1038010&r1=1038009&r2=1038010&view=diff
==============================================================================
--- click/trunk/click/framework/test/org/apache/click/control/TableTest.java (original)
+++ click/trunk/click/framework/test/org/apache/click/control/TableTest.java Tue Nov 23 07:35:22 2010
@@ -21,6 +21,7 @@ package org.apache.click.control;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
+import java.util.Locale;
 
 import java.util.Map;
 import junit.framework.TestCase;
@@ -35,7 +36,7 @@ public class TableTest extends TestCase 
      * Check that Table prints message when no records are set.
      */
     public void testNoRows() {
-        MockContext.initContext();
+        MockContext.initContext(Locale.ENGLISH);
 
         Table table = new Table();
         Column column = new Column("Foo");
@@ -51,7 +52,7 @@ public class TableTest extends TestCase 
      * Check that Column id's are rendered properly.
      */
     public void testTdId() {
-        MockContext.initContext();
+        MockContext.initContext(Locale.ENGLISH);
         
         List<Foo> foos = new ArrayList<Foo>();
         foos.add(new Foo("foo1"));
@@ -76,7 +77,7 @@ public class TableTest extends TestCase 
      * Check Table paging shows correct page.
      */
     public void testPagingCurrentPage() {
-        MockContext.initContext();
+        MockContext.initContext(Locale.ENGLISH);
 
         List<Foo> foos = new ArrayList<Foo>();
         for (int i = 0; i < 1000; i++) {
@@ -105,7 +106,7 @@ public class TableTest extends TestCase 
      * Check that table row attributes are set.
      */
     public void testSetRowAttributes() {
-        MockContext.initContext();
+        MockContext.initContext(Locale.ENGLISH);
 
         List<Foo> foos = new ArrayList<Foo>();
         for (int i = 0; i < 3; i++) {
@@ -152,7 +153,7 @@ public class TableTest extends TestCase 
      * Test CLK-673 caption
      */
     public void testCaption() {
-        MockContext.initContext();
+        MockContext.initContext(Locale.ENGLISH);
 
         List<Foo> foos = new ArrayList<Foo>();
         foos.add(new Foo("foo1"));
@@ -239,7 +240,7 @@ public class TableTest extends TestCase 
      * when sortable=true.
      */
     public void testNoTitleOnLinkWhenSorting() {
-        MockContext.initContext("/mock.htm");
+        MockContext.initContext(Locale.ENGLISH, "/mock.htm");
 
         List<Foo> foos = new ArrayList<Foo>();
         foos.add(new Foo("foo1"));