Author: jbq
Date: Fri Feb 23 03:42:14 2007
New Revision: 510914
URL: http://svn.apache.org/viewvc?view=rev&rev=510914
Log:
WICKET-280 Allow to access html resources if they are not associated with a
java class
Add missing class
Added:
incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/util/tester/MockResourceLinkPage.java
Added:
incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/util/tester/MockResourceLinkPage.java
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/util/tester/MockResourceLinkPage.java?view=auto&rev=510914
==============================================================================
---
incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/util/tester/MockResourceLinkPage.java
(added)
+++
incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/util/tester/MockResourceLinkPage.java
Fri Feb 23 03:42:14 2007
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package wicket.util.tester;
+
+import wicket.ResourceReference;
+import wicket.markup.html.WebPage;
+import wicket.markup.html.link.ResourceLink;
+
+/**
+ * Mock page for testing WicketTesters ability to test ResourceLinks
+ *
+ * @author frankbille
+ */
+public class MockResourceLinkPage extends WebPage
+{
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * Construct.
+ */
+ public MockResourceLinkPage()
+ {
+ add(new ResourceLink("link", new
ResourceReference(MockResourceLinkPage.class, "test.html")));
+ }
+}