labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simo...@apache.org
Subject svn commit: r740987 - /labs/magma/trunk/foundation-website/src/test/java/org/apache/magma/website/WebHandlerCycleTest.java
Date Thu, 05 Feb 2009 03:24:30 GMT
Author: simoneg
Date: Thu Feb  5 03:24:30 2009
New Revision: 740987

URL: http://svn.apache.org/viewvc?rev=740987&view=rev
Log:
Cleanup commented stuff

Modified:
    labs/magma/trunk/foundation-website/src/test/java/org/apache/magma/website/WebHandlerCycleTest.java

Modified: labs/magma/trunk/foundation-website/src/test/java/org/apache/magma/website/WebHandlerCycleTest.java
URL: http://svn.apache.org/viewvc/labs/magma/trunk/foundation-website/src/test/java/org/apache/magma/website/WebHandlerCycleTest.java?rev=740987&r1=740986&r2=740987&view=diff
==============================================================================
--- labs/magma/trunk/foundation-website/src/test/java/org/apache/magma/website/WebHandlerCycleTest.java
(original)
+++ labs/magma/trunk/foundation-website/src/test/java/org/apache/magma/website/WebHandlerCycleTest.java
Thu Feb  5 03:24:30 2009
@@ -185,31 +185,6 @@
 		}};
 		def.setupDefaults("/test/named/ciao");
 		Dispatch disp = def.start();
-		/*
-		mock.checking(new Expectations() {{
-			one(req).getLocale(); will(returnValue(Locale.ITALY));
-			one(req).getPathInfo(); will(returnValue("/test/named/ciao"));
-			one(req).getContextPath(); will(returnValue(""));
-			one(req).getServletPath(); will(returnValue(""));			
-			allowing(req).getSession(); will(returnValue(session));
-			allowing(req).getCookies(); will(returnValue(cookies));
-			allowing(req).getAttribute("cookieInvalidloggedIn"); will(returnValue(null));
-			one(req).setAttribute("__magma_url","/test/named/ciao");
-			allowing(req).getAttribute("__magma_url"); will(returnValue("/test/named/ciao"));
-			one(session).getAttribute("__magma_lastmain"); will(returnValue(null));						
-			one(session).setAttribute("__magma_lastmain","/test/named-ciao");
-			one(session).getAttribute("name"); will(returnValue("test name"));
-			one(req).getHeader("User-Agent"); will(returnValue("Mozilla"));
-			one(req).getParameter("page"); will(returnValue("1"));
-			one(req).getAttribute("user"); will(returnValue(person));
-			one(session).setAttribute("name", "ciao");
-			one(resp).setHeader("User-Agent", "Mozilla");
-			one(resp).addCookie(with(any(Cookie.class)));
-			one(req).setAttribute("user", person);
-			one(resp).setContentType("text/html; charset=utf-8");			
-			allowing(resp).getOutputStream(); will(returnValue(out));
-		}});
-		*/
 	}
 	
 	@Test
@@ -220,31 +195,6 @@
 		}};
 		def.setupDefaults("/test/userEntered/Arianna");
 		Dispatch disp = def.start();
-		/*
-		mock.checking(new Expectations() {{
-			one(req).getLocale(); will(returnValue(Locale.ITALY));
-			one(req).getPathInfo(); will(returnValue("/test/userEntered/Arianna"));
-			one(req).getContextPath(); will(returnValue(""));
-			one(req).getServletPath(); will(returnValue(""));			
-			allowing(req).getSession(); will(returnValue(session));
-			allowing(req).getCookies(); will(returnValue(cookies));
-			allowing(req).getAttribute("cookieInvalidloggedIn"); will(returnValue(null));
-			one(req).setAttribute("__magma_url","/test/userEntered/Arianna");
-			allowing(req).getAttribute("__magma_url"); will(returnValue("/test/userEntered/Arianna"));
-			one(session).getAttribute("__magma_lastmain"); will(returnValue(null));						
-			one(session).setAttribute("__magma_lastmain","/test/userEntered-Arianna");
-			one(session).getAttribute("name"); will(returnValue("test name"));
-			one(req).getHeader("User-Agent"); will(returnValue("Mozilla"));
-			one(req).getParameter("page"); will(returnValue("1"));
-			one(req).getAttribute("user"); will(returnValue(person));
-			one(session).setAttribute("name", "test name");
-			one(resp).setHeader("User-Agent", "Mozilla");
-			one(resp).addCookie(with(any(Cookie.class)));
-			one(req).setAttribute("user", Person.getPerson("Arianna"));
-			one(resp).setContentType("text/html; charset=utf-8");			
-			allowing(resp).getOutputStream(); will(returnValue(out));
-		}});
-		*/
 	}
 	
 	@Test
@@ -288,30 +238,6 @@
 		}};
 		def.setupDefaults("/test/neverRepeat");
 		Dispatch disp = def.start();
-		/*
-		mock.checking(new Expectations() {{
-			one(req).getLocale(); will(returnValue(Locale.ITALY));
-			one(req).getPathInfo(); will(returnValue("/test/neverRepeat"));
-			one(req).getContextPath(); will(returnValue(""));
-			one(req).getServletPath(); will(returnValue(""));			
-			allowing(req).getSession(); will(returnValue(session));
-			allowing(req).getCookies(); will(returnValue(cookies));
-			allowing(req).getAttribute("cookieInvalidloggedIn"); will(returnValue(null));
-			one(req).setAttribute("__magma_url","/test/neverRepeat");
-			allowing(req).getAttribute("__magma_url"); will(returnValue("/test/neverRepeat"));
-			one(session).getAttribute("__magma_lastmain"); will(returnValue(null));						
-			one(session).getAttribute("name"); will(returnValue("test name"));
-			one(req).getHeader("User-Agent"); will(returnValue("Mozilla"));
-			one(req).getParameter("page"); will(returnValue("1"));
-			one(req).getAttribute("user"); will(returnValue(person));
-			one(session).setAttribute("name", "test name");
-			one(resp).setHeader("User-Agent", "Mozilla");
-			one(resp).addCookie(with(any(Cookie.class)));
-			one(req).setAttribute("user", person);
-			one(resp).setContentType("text/html; charset=utf-8");			
-			allowing(resp).getOutputStream(); will(returnValue(out));
-		}});
-		*/
 	}
 	
 	@Test
@@ -321,31 +247,6 @@
 		}};
 		def.setupDefaults("/test/neverRepeatCall");
 		Dispatch disp = def.start();
-		
-		/*
-		mock.checking(new Expectations() {{
-			one(req).getLocale(); will(returnValue(Locale.ITALY));
-			one(req).getPathInfo(); will(returnValue("/test/neverRepeatCall"));
-			one(req).getContextPath(); will(returnValue(""));
-			one(req).getServletPath(); will(returnValue(""));			
-			allowing(req).getSession(); will(returnValue(session));
-			allowing(req).getCookies(); will(returnValue(cookies));
-			allowing(req).getAttribute("cookieInvalidloggedIn"); will(returnValue(null));
-			one(req).setAttribute("__magma_url","/test/neverRepeatCall");
-			allowing(req).getAttribute("__magma_url"); will(returnValue("/test/neverRepeatCall"));
-			one(session).getAttribute("__magma_lastmain"); will(returnValue(null));						
-			one(session).getAttribute("name"); will(returnValue("test name"));
-			one(req).getHeader("User-Agent"); will(returnValue("Mozilla"));
-			one(req).getParameter("page"); will(returnValue("1"));
-			one(req).getAttribute("user"); will(returnValue(person));
-			one(session).setAttribute("name", "test name");
-			one(resp).setHeader("User-Agent", "Mozilla");
-			one(resp).addCookie(with(any(Cookie.class)));
-			one(req).setAttribute("user", person);
-			one(resp).setContentType("text/html; charset=utf-8");			
-			allowing(resp).getOutputStream(); will(returnValue(out));
-		}});
-		*/
 	}	
 
 	@Test



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org


Mime
View raw message