click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadr...@apache.org
Subject svn commit: r1542564 - in /click/trunk/click: ./ extras/test/org/apache/click/extras/control/ framework/test/org/apache/click/control/ lib/
Date Sat, 16 Nov 2013 20:30:34 GMT
Author: aadrian
Date: Sat Nov 16 20:30:34 2013
New Revision: 1542564

URL: http://svn.apache.org/r1542564
Log:
add a missing MockContexts from some of the unit tests.

Modified:
    click/trunk/click/   (props changed)
    click/trunk/click/extras/test/org/apache/click/extras/control/DateFieldTest.java
    click/trunk/click/extras/test/org/apache/click/extras/control/MenuTest.java
    click/trunk/click/framework/test/org/apache/click/control/FieldSetTest.java
    click/trunk/click/framework/test/org/apache/click/control/SelectTest.java
    click/trunk/click/framework/test/org/apache/click/control/TextAreaTest.java
    click/trunk/click/lib/   (props changed)

Propchange: click/trunk/click/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Sat Nov 16 20:30:34 2013
@@ -2,6 +2,7 @@
 .classpath
 .project
 bin
+out
 classes
 dist
 TODO.txt

Modified: click/trunk/click/extras/test/org/apache/click/extras/control/DateFieldTest.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/test/org/apache/click/extras/control/DateFieldTest.java?rev=1542564&r1=1542563&r2=1542564&view=diff
==============================================================================
--- click/trunk/click/extras/test/org/apache/click/extras/control/DateFieldTest.java (original)
+++ click/trunk/click/extras/test/org/apache/click/extras/control/DateFieldTest.java Sat Nov
16 20:30:34 2013
@@ -98,6 +98,8 @@ public class DateFieldTest extends TestC
      * @throws java.lang.Exception
      */
     public void testFormatPattern() {
+        MockContext.initContext();
+
         DateField calendarField = new DateField("Delivery date");
         assertEquals("dd MMM yyyy", calendarField.getFormatPattern());
         assertEquals("dd NNN yyyy", calendarField.getCalendarPattern());

Modified: click/trunk/click/extras/test/org/apache/click/extras/control/MenuTest.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/test/org/apache/click/extras/control/MenuTest.java?rev=1542564&r1=1542563&r2=1542564&view=diff
==============================================================================
--- click/trunk/click/extras/test/org/apache/click/extras/control/MenuTest.java (original)
+++ click/trunk/click/extras/test/org/apache/click/extras/control/MenuTest.java Sat Nov 16
20:30:34 2013
@@ -68,6 +68,8 @@ public class MenuTest extends TestCase {
      * CLK-724
      */
     public void testAccessForMenuWithoutRoles() {
+        MockContext.initContext();
+
         // Setup
         Menu menu = new Menu("menu");
         RoleAccessController controller = new RoleAccessController();

Modified: click/trunk/click/framework/test/org/apache/click/control/FieldSetTest.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/test/org/apache/click/control/FieldSetTest.java?rev=1542564&r1=1542563&r2=1542564&view=diff
==============================================================================
--- click/trunk/click/framework/test/org/apache/click/control/FieldSetTest.java (original)
+++ click/trunk/click/framework/test/org/apache/click/control/FieldSetTest.java Sat Nov 16
20:30:34 2013
@@ -486,6 +486,8 @@ public class FieldSetTest extends TestCa
      * by multiple threads.
      */
     public void testLabelStyle() {
+        MockContext.initContext();
+
         Form form = new Form("form");
         FieldSet fieldset = new FieldSet("fieldset");
         form.add(fieldset);

Modified: click/trunk/click/framework/test/org/apache/click/control/SelectTest.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/test/org/apache/click/control/SelectTest.java?rev=1542564&r1=1542563&r2=1542564&view=diff
==============================================================================
--- click/trunk/click/framework/test/org/apache/click/control/SelectTest.java (original)
+++ click/trunk/click/framework/test/org/apache/click/control/SelectTest.java Sat Nov 16 20:30:34
2013
@@ -190,6 +190,8 @@ public class SelectTest extends TestCase
      * CLK-745
      */
     public void testDataProviderValues() {
+        MockContext.initContext();
+
         // Setup Select
         Select select  = new Select("gender");
 

Modified: click/trunk/click/framework/test/org/apache/click/control/TextAreaTest.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/test/org/apache/click/control/TextAreaTest.java?rev=1542564&r1=1542563&r2=1542564&view=diff
==============================================================================
--- click/trunk/click/framework/test/org/apache/click/control/TextAreaTest.java (original)
+++ click/trunk/click/framework/test/org/apache/click/control/TextAreaTest.java Sat Nov 16
20:30:34 2013
@@ -93,6 +93,8 @@ public class TextAreaTest extends TestCa
      * cross-site scripting attacks (XSS).
      */
     public void testEscapeValue() {
+        MockContext.initContext();
+
         TextArea field = new TextArea("name");
         String value = "<script>";
         String expected = "&lt;script&gt;";

Propchange: click/trunk/click/lib/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Sat Nov 16 20:30:34 2013
@@ -1,4 +1,4 @@
-junit-3.8.1.jar
+junit-*.jar
 checkstyle-all-*.jar
 commons-lang-2.1.jar
 cayenne-*.jar



Mime
View raw message