This is an automated email from the ASF dual-hosted git repository.
tandraschko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/deltaspike.git
The following commit(s) were added to refs/heads/master by this push:
new 8132a85c5 removed outdated test
8132a85c5 is described below
commit 8132a85c509ecf31f09f3802d26d48b3d483a6a0
Author: Thomas Andraschko <[email protected]>
AuthorDate: Tue Nov 14 11:48:12 2023 +0100
removed outdated test
---
.../jsf/impl/scope/view/ViewScopedContextTest.java | 89 ----------------------
.../resources/viewScopedContextTest/page.xhtml | 41 ----------
2 files changed, 130 deletions(-)
diff --git
a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/view/ViewScopedContextTest.java
b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/view/ViewScopedContextTest.java
deleted file mode 100644
index 5ce4777ab..000000000
---
a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/view/ViewScopedContextTest.java
+++ /dev/null
@@ -1,89 +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.deltaspike.test.jsf.impl.scope.view;
-
-
-import java.net.URL;
-
-import org.apache.deltaspike.test.category.WebProfileCategory;
-import org.apache.deltaspike.test.jsf.impl.config.TestJsfModuleConfig;
-import
org.apache.deltaspike.test.jsf.impl.scope.view.beans.ViewScopedBackingBean;
-import org.apache.deltaspike.test.jsf.impl.util.ArchiveUtils;
-import org.jboss.arquillian.container.test.api.Deployment;
-import org.jboss.arquillian.container.test.api.RunAsClient;
-import org.jboss.arquillian.drone.api.annotation.Drone;
-import org.jboss.arquillian.junit.Arquillian;
-import org.jboss.arquillian.test.api.ArquillianResource;
-import org.jboss.shrinkwrap.api.ShrinkWrap;
-import org.jboss.shrinkwrap.api.asset.EmptyAsset;
-import org.jboss.shrinkwrap.api.spec.WebArchive;
-import org.junit.Assert;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-import org.junit.runner.RunWith;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebElement;
-import org.openqa.selenium.support.ui.ExpectedConditions;
-
-
-/**
- * Test for the DeltaSpike ViewScoped context
- */
-@RunWith(Arquillian.class)
-@Category(WebProfileCategory.class)
-public class ViewScopedContextTest
-{
- @Drone
- private WebDriver driver;
-
- @ArquillianResource
- private URL contextPath;
-
- @Deployment
- public static WebArchive deploy()
- {
- return ShrinkWrap
- .create(WebArchive.class, "viewScopedContextTest.war")
- .addPackage(ViewScopedBackingBean.class.getPackage())
- .addClass(TestJsfModuleConfig.class)
- .addAsLibraries(ArchiveUtils.getDeltaSpikeCoreAndJsfArchive())
- .addAsLibraries(ArchiveUtils.getDeltaSpikeSecurityArchive())
- .addAsWebInfResource("default/WEB-INF/web.xml", "web.xml")
- .addAsWebResource("viewScopedContextTest/page.xhtml",
"page.xhtml")
- .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
- }
-
-
- @Test
- @RunAsClient
- public void testViewScopedContext() throws Exception
- {
- driver.get(new URL(contextPath, "page.xhtml").toString());
-
- WebElement inputField = driver.findElement(By.id("test:valueInput"));
- inputField.sendKeys("23");
-
- WebElement button = driver.findElement(By.id("test:saveButton"));
- button.click();
-
-
Assert.assertTrue(ExpectedConditions.textToBePresentInElement(By.id("test:valueOutput"),
"23").apply(driver));
- }
-
-}
diff --git
a/deltaspike/modules/jsf/impl/src/test/resources/viewScopedContextTest/page.xhtml
b/deltaspike/modules/jsf/impl/src/test/resources/viewScopedContextTest/page.xhtml
deleted file mode 100644
index 72900ff69..000000000
---
a/deltaspike/modules/jsf/impl/src/test/resources/viewScopedContextTest/page.xhtml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ~ 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.
- -->
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:c="http://java.sun.com/jsp/jstl/core">
-
-<body>
-<div>
- <h:form id="test">
- <h:outputLabel for="valueInput" value="ViewScoped value:"/>
- <h:inputText id="valueInput" value="#{viewScopedBean.i}"/>
- <br/>
- <h:outputLabel for="valueOutput" value="backing bean value:"/>
- <h:outputText id="valueOutput" value="#{viewScopedBean.i}"/>
- <br/>
- <h:commandButton id="saveButton" action="#{viewScopedBean.someAction}"
value="save"/>
- </h:form>
-</div>
-</body>
-</html>