You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by sv...@apache.org on 2018/12/06 20:31:27 UTC
[07/14] wicket git commit: Revert "WICKET-6608 added test case"
Revert "WICKET-6608 added test case"
This reverts commit 3b34d36ad98a5895f7bb9581c22e3b8620c684bc.
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/52a101f0
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/52a101f0
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/52a101f0
Branch: refs/heads/WICKET-6563
Commit: 52a101f01bdc646d0f62ab7a5bfb4b468211d54f
Parents: dc326ef
Author: Sven Meier <sv...@apache.org>
Authored: Mon Dec 3 18:00:15 2018 +0100
Committer: Sven Meier <sv...@apache.org>
Committed: Mon Dec 3 18:00:15 2018 +0100
----------------------------------------------------------------------
.../handler/PageAndComponentProviderTest.java | 36 ------------
.../StatelessPageWithQueuedComponents.html | 14 -----
.../StatelessPageWithQueuedComponents.java | 58 --------------------
3 files changed, 108 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/52a101f0/wicket-core/src/test/java/org/apache/wicket/core/request/handler/PageAndComponentProviderTest.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/core/request/handler/PageAndComponentProviderTest.java b/wicket-core/src/test/java/org/apache/wicket/core/request/handler/PageAndComponentProviderTest.java
deleted file mode 100644
index 27e6793..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/core/request/handler/PageAndComponentProviderTest.java
+++ /dev/null
@@ -1,36 +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.request.handler;
-
-import org.apache.wicket.core.request.handler.StatelessPageWithQueuedComponents.CustomLabel;
-import org.apache.wicket.util.tester.WicketTestCase;
-import org.junit.Test;
-
-public class PageAndComponentProviderTest extends WicketTestCase
-{
-
- @Test
- public void statelessComponentQueued() throws Exception
- {
- PageAndComponentProvider provider = new PageAndComponentProvider(StatelessPageWithQueuedComponents.class, "container:label");
-
- CustomLabel component = (CustomLabel)provider.getComponent();
-
- assertFalse(component.hasBeenConfigured());
-
- }
-}
http://git-wip-us.apache.org/repos/asf/wicket/blob/52a101f0/wicket-core/src/test/java/org/apache/wicket/core/request/handler/StatelessPageWithQueuedComponents.html
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/core/request/handler/StatelessPageWithQueuedComponents.html b/wicket-core/src/test/java/org/apache/wicket/core/request/handler/StatelessPageWithQueuedComponents.html
deleted file mode 100644
index 4e6bf9f..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/core/request/handler/StatelessPageWithQueuedComponents.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html xmlns:wicket="http://wicket.apache.org">
- <head>
- <meta charset="utf-8" />
- <title>Apache Wicket Quickstart</title>
- <link href='https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:regular,bold' rel='stylesheet' type='text/css' />
- <link rel="stylesheet" href="style.css" type="text/css" media="screen" title="Stylesheet" />
- </head>
- <body>
- <div wicket:id="container">
- <span wicket:id="label"></span>
- </div>
- </body>
-</html>
http://git-wip-us.apache.org/repos/asf/wicket/blob/52a101f0/wicket-core/src/test/java/org/apache/wicket/core/request/handler/StatelessPageWithQueuedComponents.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/core/request/handler/StatelessPageWithQueuedComponents.java b/wicket-core/src/test/java/org/apache/wicket/core/request/handler/StatelessPageWithQueuedComponents.java
deleted file mode 100644
index e1facca..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/core/request/handler/StatelessPageWithQueuedComponents.java
+++ /dev/null
@@ -1,58 +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.request.handler;
-
-import org.apache.wicket.markup.html.WebMarkupContainer;
-import org.apache.wicket.markup.html.WebPage;
-import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.request.mapper.parameter.PageParameters;
-
-public class StatelessPageWithQueuedComponents extends WebPage {
- private static final long serialVersionUID = 1L;
-
- public StatelessPageWithQueuedComponents(final PageParameters parameters) {
- super(parameters);
-
- setStatelessHint(true);
- setVersioned(false);
-
- WebMarkupContainer container = new WebMarkupContainer("container");
- container.queue(new CustomLabel("label"));
-
- add(container);
- }
-
- public static class CustomLabel extends Label
- {
-
- /**
- * @param id
- */
- public CustomLabel(String id)
- {
- super(id);
- }
-
- /**
- *
- */
- public boolean hasBeenConfigured()
- {
- return getRequestFlag((short)0x10);
- }
- }
-}