forked from javaee/glassfish
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR: Tests cleanup - round 1 (javaee#22530)
* Remove old Junit * Updating JUnit APIs * Remove unwanted target directory * Removing unwanted jars and adding missing classes
- Loading branch information
Showing
47 changed files
with
3,434 additions
and
112 deletions.
There are no files selected for viewing
Binary file removed
BIN
-34.1 KB
appserver/tests/appserv-tests/devtests/connector/SunRaXml/lib/cciblackbox-tx.jar
Binary file not shown.
Binary file removed
BIN
-1.29 MB
appserver/tests/appserv-tests/devtests/connector/lib/ojdbc14-1.0.jar
Binary file not shown.
Binary file removed
BIN
-29.8 KB
...s/appserv-tests/devtests/connector/v3/defaultConnectorResource-standalone-rar/ra/jdbc.jar
Binary file not shown.
Binary file removed
BIN
-26.2 KB
...ppserv-tests/devtests/connector/v3/installed-libraries-resources/rar/classes/blackbox.jar
Binary file not shown.
Binary file removed
BIN
-81.3 KB
appserver/tests/appserv-tests/devtests/connector/v3/securitymapweb/myds.jar
Binary file not shown.
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
Binary file removed
BIN
-104 KB
appserver/tests/appserv-tests/devtests/deployment/extlib/junit-4.3.1.jar
Binary file not shown.
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
Binary file removed
BIN
-7.42 KB
...erv-tests/devtests/ejb/ee/cluster-tests/multi-restart/target/http-client-1.0-SNAPSHOT.jar
Binary file not shown.
5 changes: 0 additions & 5 deletions
5
...rv-tests/devtests/ejb/ee/cluster-tests/multi-restart/target/maven-archiver/pom.properties
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
...ests/appserv-tests/devtests/ejb/ee/cluster-tests/multi-restart/target/pom-transformed.xml
This file was deleted.
Oops, something went wrong.
61 changes: 0 additions & 61 deletions
61
...ests/ejb/ee/cluster-tests/multi-restart/target/surefire-reports/TEST-com.acme.AppTest.xml
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
.../devtests/ejb/ee/cluster-tests/multi-restart/target/surefire-reports/com.acme.AppTest.txt
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-693 KB
...s/appserv-tests/devtests/persistence/lib/drivers/mysql/mysql-connector-java-5.1.7-bin.jar
Binary file not shown.
Binary file removed
BIN
-2.01 MB
appserver/tests/appserv-tests/devtests/persistence/lib/drivers/oracle/ojdbc/ojdbc6.jar
Binary file not shown.
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
Binary file modified
BIN
-2.11 KB
(36%)
appserver/tests/appserv-tests/devtests/web/valveWithParams/lib/valve1.jar
Binary file not shown.
77 changes: 77 additions & 0 deletions
77
appserver/tests/appserv-tests/devtests/web/valveWithParams/lib/valves/TestValve1.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,77 @@ | ||
/* | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. | ||
* | ||
* Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. | ||
* | ||
* The contents of this file are subject to the terms of either the GNU | ||
* General Public License Version 2 only ("GPL") or the Common Development | ||
* and Distribution License("CDDL") (collectively, the "License"). You | ||
* may not use this file except in compliance with the License. You can | ||
* obtain a copy of the License at | ||
* https://oss.oracle.com/licenses/CDDL+GPL-1.1 | ||
* or LICENSE.txt. See the License for the specific | ||
* language governing permissions and limitations under the License. | ||
* | ||
* When distributing the software, include this License Header Notice in each | ||
* file and include the License file at LICENSE.txt. | ||
* | ||
* GPL Classpath Exception: | ||
* Oracle designates this particular file as subject to the "Classpath" | ||
* exception as provided by Oracle in the GPL Version 2 section of the License | ||
* file that accompanied this code. | ||
* | ||
* Modifications: | ||
* If applicable, add the following below the License Header, with the fields | ||
* enclosed by brackets [] replaced by your own identifying information: | ||
* "Portions Copyright [year] [name of copyright owner]" | ||
* | ||
* Contributor(s): | ||
* If you wish your version of this file to be governed by only the CDDL or | ||
* only the GPL Version 2, indicate your decision by adding "[Contributor] | ||
* elects to include this software in this distribution under the [CDDL or GPL | ||
* Version 2] license." If you don't indicate a single choice of license, a | ||
* recipient has the option to distribute your version of this file under | ||
* either the CDDL, the GPL Version 2 or to extend the choice of license to | ||
* its licensees as provided above. However, if you add GPL Version 2 code | ||
* and therefore, elected the GPL Version 2 license, then the option applies | ||
* only if the new code is made subject to such option by the copyright | ||
* holder. | ||
*/ | ||
|
||
package valves; | ||
|
||
import java.io.IOException; | ||
import javax.servlet.ServletException; | ||
import org.apache.catalina.Request; | ||
import org.apache.catalina.Response; | ||
import org.glassfish.web.valve.GlassFishValve; | ||
|
||
public class TestValve1 implements GlassFishValve { | ||
|
||
private String testProperty = null; | ||
|
||
public String getInfo() { | ||
return getClass().getName(); | ||
} | ||
|
||
public int invoke(Request req, Response resp) throws IOException, ServletException { | ||
if (testProperty == null) { | ||
req.getRequest().setAttribute("valve3", "null_value"); | ||
} | ||
else if ("".equals(testProperty)) { | ||
req.getRequest().setAttribute("valve2", "empty_value"); | ||
} | ||
else { | ||
req.getRequest().setAttribute("valve1", testProperty); | ||
} | ||
return GlassFishValve.INVOKE_NEXT; | ||
} | ||
|
||
public void postInvoke(Request req, Response resp) throws IOException, ServletException { | ||
} | ||
|
||
public void setTestProperty(String val) { | ||
testProperty = val; | ||
} | ||
|
||
} |
Binary file modified
BIN
-153 Bytes
(80%)
appserver/tests/appserv-tests/devtests/web/webappLoaderConsiderHiddenJarFiles/lib/.foo.jar
Binary file not shown.
44 changes: 44 additions & 0 deletions
44
...rver/tests/appserv-tests/devtests/web/webappLoaderConsiderHiddenJarFiles/lib/foo/Bar.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,44 @@ | ||
/* | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. | ||
* | ||
* Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. | ||
* | ||
* The contents of this file are subject to the terms of either the GNU | ||
* General Public License Version 2 only ("GPL") or the Common Development | ||
* and Distribution License("CDDL") (collectively, the "License"). You | ||
* may not use this file except in compliance with the License. You can | ||
* obtain a copy of the License at | ||
* https://oss.oracle.com/licenses/CDDL+GPL-1.1 | ||
* or LICENSE.txt. See the License for the specific | ||
* language governing permissions and limitations under the License. | ||
* | ||
* When distributing the software, include this License Header Notice in each | ||
* file and include the License file at LICENSE.txt. | ||
* | ||
* GPL Classpath Exception: | ||
* Oracle designates this particular file as subject to the "Classpath" | ||
* exception as provided by Oracle in the GPL Version 2 section of the License | ||
* file that accompanied this code. | ||
* | ||
* Modifications: | ||
* If applicable, add the following below the License Header, with the fields | ||
* enclosed by brackets [] replaced by your own identifying information: | ||
* "Portions Copyright [year] [name of copyright owner]" | ||
* | ||
* Contributor(s): | ||
* If you wish your version of this file to be governed by only the CDDL or | ||
* only the GPL Version 2, indicate your decision by adding "[Contributor] | ||
* elects to include this software in this distribution under the [CDDL or GPL | ||
* Version 2] license." If you don't indicate a single choice of license, a | ||
* recipient has the option to distribute your version of this file under | ||
* either the CDDL, the GPL Version 2 or to extend the choice of license to | ||
* its licensees as provided above. However, if you add GPL Version 2 code | ||
* and therefore, elected the GPL Version 2 license, then the option applies | ||
* only if the new code is made subject to such option by the copyright | ||
* holder. | ||
*/ | ||
|
||
package foo; | ||
|
||
public class Bar { | ||
} |
Binary file modified
BIN
-153 Bytes
(80%)
appserver/tests/appserv-tests/devtests/web/webappLoaderIgnoreHiddenJarFiles/lib/.foo.jar
Binary file not shown.
44 changes: 44 additions & 0 deletions
44
appserver/tests/appserv-tests/devtests/web/webappLoaderIgnoreHiddenJarFiles/lib/foo/Bar.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,44 @@ | ||
/* | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. | ||
* | ||
* Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. | ||
* | ||
* The contents of this file are subject to the terms of either the GNU | ||
* General Public License Version 2 only ("GPL") or the Common Development | ||
* and Distribution License("CDDL") (collectively, the "License"). You | ||
* may not use this file except in compliance with the License. You can | ||
* obtain a copy of the License at | ||
* https://oss.oracle.com/licenses/CDDL+GPL-1.1 | ||
* or LICENSE.txt. See the License for the specific | ||
* language governing permissions and limitations under the License. | ||
* | ||
* When distributing the software, include this License Header Notice in each | ||
* file and include the License file at LICENSE.txt. | ||
* | ||
* GPL Classpath Exception: | ||
* Oracle designates this particular file as subject to the "Classpath" | ||
* exception as provided by Oracle in the GPL Version 2 section of the License | ||
* file that accompanied this code. | ||
* | ||
* Modifications: | ||
* If applicable, add the following below the License Header, with the fields | ||
* enclosed by brackets [] replaced by your own identifying information: | ||
* "Portions Copyright [year] [name of copyright owner]" | ||
* | ||
* Contributor(s): | ||
* If you wish your version of this file to be governed by only the CDDL or | ||
* only the GPL Version 2, indicate your decision by adding "[Contributor] | ||
* elects to include this software in this distribution under the [CDDL or GPL | ||
* Version 2] license." If you don't indicate a single choice of license, a | ||
* recipient has the option to distribute your version of this file under | ||
* either the CDDL, the GPL Version 2 or to extend the choice of license to | ||
* its licensees as provided above. However, if you add GPL Version 2 code | ||
* and therefore, elected the GPL Version 2 license, then the option applies | ||
* only if the new code is made subject to such option by the copyright | ||
* holder. | ||
*/ | ||
|
||
package foo; | ||
|
||
public class Bar { | ||
} |
Binary file removed
BIN
-19.2 KB
...rver/tests/appserv-tests/devtests/webservice/monitoring/wsmonitoring/lib/errorhandler.jar
Binary file not shown.
Oops, something went wrong.