You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by pa...@apache.org on 2013/10/28 09:16:26 UTC

[10/47] git commit: WICKET-5325 ComponentRenderer.renderComponent does not render markup for ListView

WICKET-5325 ComponentRenderer.renderComponent does not render markup for ListView

Move files related to ComponentRenderer tests in a separate package


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/fb71b7fa
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/fb71b7fa
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/fb71b7fa

Branch: refs/heads/wicket-4997
Commit: fb71b7fa3aae38a075caee3d876eb83590a0142a
Parents: e10c819
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Mon Sep 2 14:51:12 2013 +0300
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Mon Sep 2 14:51:12 2013 +0300

----------------------------------------------------------------------
 .../core/util/string/ComponentRendererTest.java | 39 -------------------
 .../wicket/core/util/string/EnclosurePanel.html | 22 -----------
 .../wicket/core/util/string/EnclosurePanel.java | 35 -----------------
 .../ComponentRendererTest.java                  | 40 ++++++++++++++++++++
 .../componentrenderer/EnclosurePanel.html       | 22 +++++++++++
 .../componentrenderer/EnclosurePanel.java       | 35 +++++++++++++++++
 6 files changed, 97 insertions(+), 96 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/fb71b7fa/wicket-core/src/test/java/org/apache/wicket/core/util/string/ComponentRendererTest.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/core/util/string/ComponentRendererTest.java b/wicket-core/src/test/java/org/apache/wicket/core/util/string/ComponentRendererTest.java
deleted file mode 100644
index edaa1d9..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/core/util/string/ComponentRendererTest.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * 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 org.apache.wicket.core.util.string;
-
-import org.apache.wicket.WicketTestCase;
-import org.junit.Test;
-
-/**
- * Tests for ComponentRenderer
- */
-public class ComponentRendererTest extends WicketTestCase
-{
-
-	/**
-	 * https://issues.apache.org/jira/browse/WICKET-5209
-	 *
-	 * Tests that the page and the components in it are initialized.
-	 * Enclosure won't know its child component without being initialized
-	 */
-	@Test
-	public void componentsAreInitialized()
-	{
-		ComponentRenderer.renderComponent(new EnclosurePanel("anyId"));
-	}
-}

http://git-wip-us.apache.org/repos/asf/wicket/blob/fb71b7fa/wicket-core/src/test/java/org/apache/wicket/core/util/string/EnclosurePanel.html
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/core/util/string/EnclosurePanel.html b/wicket-core/src/test/java/org/apache/wicket/core/util/string/EnclosurePanel.html
deleted file mode 100644
index 2977d1b..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/core/util/string/EnclosurePanel.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!--
-    ====================================================================
-    Licensed 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.
--->
-<!DOCTYPE html>
-<html xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
-	<wicket:panel>
-		<wicket:enclosure child="externalLink">
-			<a wicket:id="externalLink">Google</a>
-		</wicket:enclosure>
-	</wicket:panel>
-</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/wicket/blob/fb71b7fa/wicket-core/src/test/java/org/apache/wicket/core/util/string/EnclosurePanel.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/core/util/string/EnclosurePanel.java b/wicket-core/src/test/java/org/apache/wicket/core/util/string/EnclosurePanel.java
deleted file mode 100644
index d204ed4..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/core/util/string/EnclosurePanel.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * 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 org.apache.wicket.core.util.string;
-
-import org.apache.wicket.markup.html.link.ExternalLink;
-import org.apache.wicket.markup.html.panel.Panel;
-
-class EnclosurePanel extends Panel
-{
-	
-	private static final long serialVersionUID = 1L;
-	
-	private static final String TEST_LINK = "http://google.com";
-
-	public EnclosurePanel(String id) {
-		super(id);
-		
-		ExternalLink externalLink = new ExternalLink("externalLink", TEST_LINK);
-		add(externalLink);
-	}
-}

http://git-wip-us.apache.org/repos/asf/wicket/blob/fb71b7fa/wicket-core/src/test/java/org/apache/wicket/core/util/string/componentrenderer/ComponentRendererTest.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/core/util/string/componentrenderer/ComponentRendererTest.java b/wicket-core/src/test/java/org/apache/wicket/core/util/string/componentrenderer/ComponentRendererTest.java
new file mode 100644
index 0000000..8631dec
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/core/util/string/componentrenderer/ComponentRendererTest.java
@@ -0,0 +1,40 @@
+/*
+ * 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 org.apache.wicket.core.util.string.componentrenderer;
+
+import org.apache.wicket.WicketTestCase;
+import org.apache.wicket.core.util.string.ComponentRenderer;
+import org.junit.Test;
+
+/**
+ * Tests for ComponentRenderer
+ */
+public class ComponentRendererTest extends WicketTestCase
+{
+
+	/**
+	 * https://issues.apache.org/jira/browse/WICKET-5209
+	 *
+	 * Tests that the page and the components in it are initialized.
+	 * Enclosure won't know its child component without being initialized
+	 */
+	@Test
+	public void componentsAreInitialized()
+	{
+		ComponentRenderer.renderComponent(new EnclosurePanel("anyId"));
+	}
+}

http://git-wip-us.apache.org/repos/asf/wicket/blob/fb71b7fa/wicket-core/src/test/java/org/apache/wicket/core/util/string/componentrenderer/EnclosurePanel.html
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/core/util/string/componentrenderer/EnclosurePanel.html b/wicket-core/src/test/java/org/apache/wicket/core/util/string/componentrenderer/EnclosurePanel.html
new file mode 100644
index 0000000..2977d1b
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/core/util/string/componentrenderer/EnclosurePanel.html
@@ -0,0 +1,22 @@
+<!--
+    ====================================================================
+    Licensed 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.
+-->
+<!DOCTYPE html>
+<html xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
+	<wicket:panel>
+		<wicket:enclosure child="externalLink">
+			<a wicket:id="externalLink">Google</a>
+		</wicket:enclosure>
+	</wicket:panel>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/wicket/blob/fb71b7fa/wicket-core/src/test/java/org/apache/wicket/core/util/string/componentrenderer/EnclosurePanel.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/core/util/string/componentrenderer/EnclosurePanel.java b/wicket-core/src/test/java/org/apache/wicket/core/util/string/componentrenderer/EnclosurePanel.java
new file mode 100644
index 0000000..2f8bd31
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/core/util/string/componentrenderer/EnclosurePanel.java
@@ -0,0 +1,35 @@
+/*
+ * 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 org.apache.wicket.core.util.string.componentrenderer;
+
+import org.apache.wicket.markup.html.link.ExternalLink;
+import org.apache.wicket.markup.html.panel.Panel;
+
+class EnclosurePanel extends Panel
+{
+	
+	private static final long serialVersionUID = 1L;
+	
+	private static final String TEST_LINK = "http://google.com";
+
+	public EnclosurePanel(String id) {
+		super(id);
+		
+		ExternalLink externalLink = new ExternalLink("externalLink", TEST_LINK);
+		add(externalLink);
+	}
+}