-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WICKET-7072 wicket tester and core tests without test jar (#666)
* WICKET-7072 Remove maven-site-plugin related files Wicket does not use maven-site-plugin since a long time Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * WICKET-7072 Update end year for Copyright to 2023 Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * WICKET-7072 Remove more maven-site-plugin artifacts Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * WICKET-7072 Cleanup pom.xml files Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * WICKET-7072 Move back the JS tests to wicket-core/src/test/js Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * WICKET-7072 Move WebSocketTester to wicket-native-websocket-tester module Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * revert test-jar from wicket-util (see WICKET-7072 26/Sept/23 comment) * removed one unused dependency * added JUnit as non-test dependency in wicket-native-websocket-tester * removed commented-out code * removed unused dependency * reverted requires jakarta.servlet (was not related to test-jar) * added requires jakarta.servlet to support default Eclipse test compile * WICKET-7072: Do not deploy wicket-core-tests artifacts This module is just tests for wicket-core Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * WICKET-7072 Use the fully qualified name of TestFilterConfig class Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * WICKET-7072 Fix the ApacheLicenceHeaderTest for wicket-core Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> --------- Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> Co-authored-by: sre <[email protected]> Co-authored-by: gluser1357 <[email protected]> Co-authored-by: Martin Tzvetanov Grigorov <[email protected]>
- Loading branch information
1 parent
c17cd45
commit b0f3da3
Showing
2,346 changed files
with
25,412 additions
and
24,973 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
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
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
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
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
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 @@ | ||
/bin/ |
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,95 @@ | ||
<?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. | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>org.apache.wicket</groupId> | ||
<artifactId>wicket-parent</artifactId> | ||
<version>10.0.0-M2-SNAPSHOT</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
<artifactId>wicket-core-tests</artifactId> | ||
<packaging>jar</packaging> | ||
<name>Wicket Core Tests</name> | ||
<description> | ||
Internal JUnit Tests for Wicket Core (and Tester). | ||
</description> | ||
<properties> | ||
<osgi.export.package>org.apache.wicket.core.tests*;-noimport:=true</osgi.export.package> | ||
<osgi.import.package>!java*,!kotlin*,!sun.nio.ch,org.slf4j*;version="[1.7,3)",*</osgi.import.package> | ||
<maven.deploy.skip>true</maven.deploy.skip> | ||
</properties> | ||
<dependencies> | ||
<dependency> | ||
<groupId>jakarta.servlet</groupId> | ||
<artifactId>jakarta.servlet-api</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-lang3</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.wicket</groupId> | ||
<artifactId>wicket-tester</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.bouncycastle</groupId> | ||
<artifactId>bcprov-jdk18on</artifactId> | ||
<scope>test</scope> | ||
<optional>true</optional> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.hamcrest</groupId> | ||
<artifactId>hamcrest</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<!-- | ||
WICKET-7072: | ||
To run this project successfully we need two things: | ||
(1) no module-info, | ||
otherwise error "The package org.apache.wicket conflicts with a package accessible from another module") | ||
(2) useModulePath=false for maven-compiler plugin available for 3.11+ (see also WICKET-7019), | ||
otherwise error "Can't compile test sources when main sources are missing a module descriptor") | ||
see https://maven.apache.org/plugins/maven-compiler-plugin/plugin-info.html | ||
--> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>test-compile</id> | ||
<goals> | ||
<goal>testCompile</goal> | ||
</goals> | ||
<configuration> | ||
<useModulePath>false</useModulePath> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
1 change: 1 addition & 0 deletions
1
wicket-core-tests/src/test/java/META-INF/resources/MockServletContextTest with spaces.txt
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 @@ | ||
This file's name contains spaces to ensure proper decoding of MockServletContext#getRealPath() |
1 change: 1 addition & 0 deletions
1
...-tests/src/test/java/META-INF/resources/org/apache/wicket/core/request/resource/sample.js
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 @@ | ||
// static test resource |
1 change: 1 addition & 0 deletions
1
wicket-core-tests/src/test/java/META-INF/services/java.nio.file.spi.FileTypeDetector
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 @@ | ||
org.apache.wicket.filetype.TestFileTypeDetector |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.