Author: thrantal
Date: Thu Jul 17 20:38:42 2008
New Revision: 677812
URL: http://svn.apache.org/viewvc?rev=677812&view=rev
Log:
Fixed missing @Overrides, redundant thises and raw types
- no functional changes
Modified:
wicket/trunk/wicket/src/test/java/org/apache/wicket/protocol/http/MockWebApplicationTest.java
Modified:
wicket/trunk/wicket/src/test/java/org/apache/wicket/protocol/http/MockWebApplicationTest.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/wicket/src/test/java/org/apache/wicket/protocol/http/MockWebApplicationTest.java?rev=677812&r1=677811&r2=677812&view=diff
==============================================================================
---
wicket/trunk/wicket/src/test/java/org/apache/wicket/protocol/http/MockWebApplicationTest.java
(original)
+++
wicket/trunk/wicket/src/test/java/org/apache/wicket/protocol/http/MockWebApplicationTest.java
Thu Jul 17 20:38:42 2008
@@ -67,14 +67,16 @@
super(name);
}
- protected void setUp() throws Exception
+ @Override
+ protected void setUp() throws Exception
{
super.setUp();
application = new WicketTester();
application.startPage(MockPage.class);
}
- protected void tearDown() throws Exception
+ @Override
+ protected void tearDown() throws Exception
{
application.destroy();
}
@@ -86,7 +88,7 @@
{
// Validate the document
String document =
application.getServletResponse().getDocument();
- DiffUtil.validatePage(document, this.getClass(),
"MockPage_expectedResult.html", true);
+ DiffUtil.validatePage(document, getClass(),
"MockPage_expectedResult.html", true);
// Inspect the page & model
MockPage p = (MockPage)application.getLastRenderedPage();
@@ -102,12 +104,12 @@
session.info("Message");
session.info("Not rendered");
FeedbackMessages feedbackMessages =
session.getFeedbackMessages();
- Iterator iterator = feedbackMessages.iterator();
- FeedbackMessage message = (FeedbackMessage)iterator.next();
+ Iterator<FeedbackMessage> iterator =
feedbackMessages.iterator();
+ FeedbackMessage message = iterator.next();
message.markRendered();
feedbackMessages.clear(RENDERED_MESSAGES);
assertEquals(1, feedbackMessages.size());
- message = (FeedbackMessage)iterator.next();
+ message = iterator.next();
message.markRendered();
feedbackMessages.clear(RENDERED_MESSAGES);
assertEquals(0, feedbackMessages.size());
@@ -124,7 +126,7 @@
// Now request that we click the link
application.setupRequestAndResponse();
MockPage p = (MockPage)application.getLastRenderedPage();
- Link link = (Link)p.get("actionLink");
+ Link<?> link = (Link<?>)p.get("actionLink");
application.getServletRequest().setRequestToComponent(link);
application.processRequestCycle();
@@ -139,7 +141,7 @@
*/
// Validate the document
String document =
application.getServletResponse().getDocument();
- DiffUtil.validatePage(document, this.getClass(),
"MockPage_expectedResult2.html", true);
+ DiffUtil.validatePage(document, getClass(),
"MockPage_expectedResult2.html", true);
// Inspect the page & model
p = (MockPage)application.getLastRenderedPage();