Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5423 from eclipse-ee4j/restore_disappeared_test_c…
…lasses restore disappeared test classes
- Loading branch information
Showing
31 changed files
with
1,760 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
impl/src/test/java/com/sun/faces/mock/MockFacesServletFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0, which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* This Source Code may also be made available under the following Secondary | ||
* Licenses when the conditions for such availability set forth in the | ||
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | ||
* version 2 with the GNU Classpath Exception, which is available at | ||
* https://www.gnu.org/software/classpath/license.html. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
*/ | ||
|
||
package com.sun.faces.mock; | ||
|
||
import jakarta.faces.FactoryFinder; | ||
import jakarta.faces.webapp.FacesServletFactory; | ||
import jakarta.servlet.Servlet; | ||
import jakarta.servlet.ServletConfig; | ||
import jakarta.servlet.ServletException; | ||
|
||
import com.sun.faces.webapp.FacesServletImpl; | ||
|
||
public class MockFacesServletFactory extends FacesServletFactory { | ||
public MockFacesServletFactory() { | ||
System.setProperty(FactoryFinder.FACES_SERVLET_FACTORY, this.getClass().getName()); | ||
} | ||
|
||
@Override | ||
public Servlet getFacesServlet(ServletConfig config) { | ||
Servlet facesServlet = new FacesServletImpl(); | ||
try { | ||
facesServlet.init(config); | ||
} catch (ServletException e) { | ||
throw new IllegalStateException(e); | ||
} | ||
return facesServlet; | ||
} | ||
|
||
@Override | ||
public FacesServletFactory getWrapped() { | ||
return null; | ||
} | ||
} |
224 changes: 0 additions & 224 deletions
224
impl/src/test/java/jakarta/faces/FacesWrapperTestCase.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.