You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jb...@apache.org on 2007/03/02 14:45:39 UTC

svn commit: r513760 - /incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/markup/html/link/DownloadLinkTest.java

Author: jbq
Date: Fri Mar  2 05:45:38 2007
New Revision: 513760

URL: http://svn.apache.org/viewvc?view=rev&rev=513760
Log:
Add logging

Modified:
    incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/markup/html/link/DownloadLinkTest.java

Modified: incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/markup/html/link/DownloadLinkTest.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/markup/html/link/DownloadLinkTest.java?view=diff&rev=513760&r1=513759&r2=513760
==============================================================================
--- incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/markup/html/link/DownloadLinkTest.java (original)
+++ incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/markup/html/link/DownloadLinkTest.java Fri Mar  2 05:45:38 2007
@@ -16,6 +16,9 @@
  */
 package wicket.markup.html.link;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
 import wicket.WicketTestCase;
 import wicket.protocol.http.MockHttpServletResponse;
 import wicket.protocol.http.MockServletContext;
@@ -28,6 +31,7 @@
 public class DownloadLinkTest extends WicketTestCase
 {
 	private static final String APPLICATION_X_CUSTOM = "application/x-custom";
+	private static final Log log = LogFactory.getLog(DownloadLinkTest.class);
 
 	public DownloadLinkTest(String name)
 	{
@@ -57,6 +61,7 @@
 		((MockServletContext)tester.getApplication().getServletContext()).addMimeType("custom",
 				APPLICATION_X_CUSTOM);
 		tester.clickLink(DownloadPage.CUSTOM_DOWNLOAD_LINK);
+		log.debug("Content-Type: " + getContentType());
 		assertTrue(getContentType().startsWith(APPLICATION_X_CUSTOM));
 	}