tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject [2/6] git commit: Convert tabs to spaces
Date Mon, 01 Sep 2014 23:18:42 GMT
Convert tabs to spaces


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/145b368c
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/145b368c
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/145b368c

Branch: refs/heads/master
Commit: 145b368c42ac75fab0d3fc05ac3bb652239772b9
Parents: fe7e20d
Author: Howard M. Lewis Ship <hlship@apache.org>
Authored: Mon Sep 1 14:55:00 2014 -0700
Committer: Howard M. Lewis Ship <hlship@apache.org>
Committed: Mon Sep 1 14:55:00 2014 -0700

----------------------------------------------------------------------
 .../integration/app1/CoreBehaviorsTests.java    | 106 ++++++++++---------
 1 file changed, 55 insertions(+), 51 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/145b368c/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CoreBehaviorsTests.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CoreBehaviorsTests.java
b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CoreBehaviorsTests.java
index f7b7ea9..cc93804 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CoreBehaviorsTests.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CoreBehaviorsTests.java
@@ -606,7 +606,8 @@ public class CoreBehaviorsTests extends App1TestCase
     }
 
     @Test
-    public void client_persistence_complex_object() {
+    public void client_persistence_complex_object()
+    {
         openLinks("Client Persistence Demo", "nix session", "store complex");
 
         assertText("persisted-value", "ClientDataWrapper[data inside wrapper]");
@@ -1723,7 +1724,7 @@ public class CoreBehaviorsTests extends App1TestCase
         assertTextPresent("Page called with correct activation context",
                 "You should never see me if use an erroneous activation context");
     }
-    
+
     /**
      * TAP5-2311
      */
@@ -1733,63 +1734,66 @@ public class CoreBehaviorsTests extends App1TestCase
         openLinks("Reload on nested page");
 
         assertTextPresent("This page throws an exception");
-        
+
         clickAndWait("css=a:contains('Go to page'):contains('with reload')");
-        
+
         assertTextPresent("This page throws an exception");
     }
-    
+
     @Test
     public void bound_generic_types()
     {
-    	openLinks("Generic bound type demo");
-    	
-    	assertTextPresent("description=mapOfStrings,type=java.util.Map,genericType=java.util.Map<java.lang.String,
java.lang.String>");
-    	assertTextPresent("description=mapOfStrings.get('foo'),type=java.lang.String,genericType=class
java.lang.String");
-    	assertTextPresent("description=setOfLongs,type=java.util.Set,genericType=java.util.Set<java.lang.Long>");
-    	assertTextPresent("description=listOfListOfDates,type=java.util.List,genericType=java.util.List<java.util.List<java.util.Date>>");
-    	assertTextPresent("description=listOfListOfDates.get(0),type=java.util.List,genericType=interface
java.util.List");
-    	assertTextPresent("description=listOfListOfDates.get(0).get(0),type=java.util.Date,genericType=class
java.util.Date");
-    	assertTextPresent("description=[1,2,3],type=java.util.List,genericType=interface java.util.List");
-    	assertTextPresent("description={'foo':'bar'},type=java.util.Map,genericType=interface
java.util.Map");
-    	assertTextPresent("description=baz,type=java.lang.String,genericType=class java.lang.String");
-    }
-    
-    static class PacScenario {
-    	String link;
-    	String expextedPacValues;
-    	String expectedUri;
-    	
-		public PacScenario(String link, String expextedPacValues,
-				String expectedUri) {
-			super();
-			this.link = link;
-			this.expextedPacValues = expextedPacValues;
-			this.expectedUri = expectedUri;
-		}
-    }
-    
+        openLinks("Generic bound type demo");
+
+        assertTextPresent("description=mapOfStrings,type=java.util.Map,genericType=java.util.Map<java.lang.String,
java.lang.String>");
+        assertTextPresent("description=mapOfStrings.get('foo'),type=java.lang.String,genericType=class
java.lang.String");
+        assertTextPresent("description=setOfLongs,type=java.util.Set,genericType=java.util.Set<java.lang.Long>");
+        assertTextPresent("description=listOfListOfDates,type=java.util.List,genericType=java.util.List<java.util.List<java.util.Date>>");
+        assertTextPresent("description=listOfListOfDates.get(0),type=java.util.List,genericType=interface
java.util.List");
+        assertTextPresent("description=listOfListOfDates.get(0).get(0),type=java.util.Date,genericType=class
java.util.Date");
+        assertTextPresent("description=[1,2,3],type=java.util.List,genericType=interface
java.util.List");
+        assertTextPresent("description={'foo':'bar'},type=java.util.Map,genericType=interface
java.util.Map");
+        assertTextPresent("description=baz,type=java.lang.String,genericType=class java.lang.String");
+    }
+
+    static class PacScenario
+    {
+        String link;
+        String expextedPacValues;
+        String expectedUri;
+
+        public PacScenario(String link, String expextedPacValues,
+                           String expectedUri)
+        {
+            super();
+            this.link = link;
+            this.expextedPacValues = expextedPacValues;
+            this.expectedUri = expectedUri;
+        }
+    }
+
     @Test
     public void multiple_pac_fields()
     {
-    	openLinks("PageActivationContext Multiple Demo");
-    	
-    	assertText("//span[@id='pacValues']", "zero=NULL, one=NULL, two=NULL");
-    	
-    	PacScenario[] scenarios = {
-			new PacScenario("link=Change PAC (null, null, null)", "zero=NULL, one=NULL, two=NULL",
"/pacmultipleannotationdemo"),
-			new PacScenario("link=Change PAC (zero, null, null)", "zero=zero, one=NULL, two=NULL",
"/pacmultipleannotationdemo/zero"),
-			new PacScenario("link=Change PAC (zero, 1, null)", "zero=zero, one=1, two=NULL", "/pacmultipleannotationdemo/zero/1"),
-			new PacScenario("link=Change PAC (zero, 1, 2.2)", "zero=zero, one=1, two=2.2", "/pacmultipleannotationdemo/zero/1/2.2"),
-			new PacScenario("link=Change PAC (zero, 1, 2.2, 3)", "zero=zero, one=1, two=2.2", "/pacmultipleannotationdemo/zero/1/2.2"),
-			new PacScenario("link=Change PAC (null, null, 2.2)", "zero=NULL, one=NULL, two=2.2", "/pacmultipleannotationdemo/$N/$N/2.2"),
-			new PacScenario("link=Change PAC (zero, null, 2.2)", "zero=zero, one=NULL, two=2.2", "/pacmultipleannotationdemo/zero/$N/2.2"),
-    	};
-    	
-    	for (PacScenario scenario : scenarios) {
-        	clickAndWait(scenario.link);
-        	assertText("//span[@id='pacValues']", scenario.expextedPacValues);
-        	assertTrue(selenium.getLocation().endsWith(scenario.expectedUri));
-    	}
+        openLinks("PageActivationContext Multiple Demo");
+
+        assertText("//span[@id='pacValues']", "zero=NULL, one=NULL, two=NULL");
+
+        PacScenario[] scenarios = {
+                new PacScenario("link=Change PAC (null, null, null)", "zero=NULL, one=NULL,
two=NULL", "/pacmultipleannotationdemo"),
+                new PacScenario("link=Change PAC (zero, null, null)", "zero=zero, one=NULL,
two=NULL", "/pacmultipleannotationdemo/zero"),
+                new PacScenario("link=Change PAC (zero, 1, null)", "zero=zero, one=1, two=NULL",
"/pacmultipleannotationdemo/zero/1"),
+                new PacScenario("link=Change PAC (zero, 1, 2.2)", "zero=zero, one=1, two=2.2",
"/pacmultipleannotationdemo/zero/1/2.2"),
+                new PacScenario("link=Change PAC (zero, 1, 2.2, 3)", "zero=zero, one=1, two=2.2",
"/pacmultipleannotationdemo/zero/1/2.2"),
+                new PacScenario("link=Change PAC (null, null, 2.2)", "zero=NULL, one=NULL,
two=2.2", "/pacmultipleannotationdemo/$N/$N/2.2"),
+                new PacScenario("link=Change PAC (zero, null, 2.2)", "zero=zero, one=NULL,
two=2.2", "/pacmultipleannotationdemo/zero/$N/2.2"),
+        };
+
+        for (PacScenario scenario : scenarios)
+        {
+            clickAndWait(scenario.link);
+            assertText("//span[@id='pacValues']", scenario.expextedPacValues);
+            assertTrue(selenium.getLocation().endsWith(scenario.expectedUri));
+        }
     }
 }


Mime
View raw message