Skip to content

Commit

Permalink
Set test skip enabled, remove surefire
Browse files Browse the repository at this point in the history
  • Loading branch information
mondain committed Dec 4, 2023
1 parent 919e985 commit 303d348
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 50 deletions.
11 changes: 0 additions & 11 deletions client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,6 @@
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<!--
<plugin>
<artifactId>maven-toolchains-plugin</artifactId>
</plugin>
-->
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
Expand Down
6 changes: 0 additions & 6 deletions common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-toolchains-plugin</artifactId>
</plugin>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public static Object[] findMethod(IConnection conn, IServiceCall call, Object se
* Arguments
* @return Method/params pairs
*/
public static Object[] findMethodWithExactParameters(Object service, String methodName, Object[] args) {
private static Object[] findMethodWithExactParameters(Object service, String methodName, Object[] args) {
int numParams = (args == null) ? 0 : args.length;
if (isTrace) {
log.trace("Args / parameters count: {}", numParams);
Expand Down Expand Up @@ -192,7 +192,7 @@ public static Object[] findMethodWithExactParameters(Object service, String meth
* Arguments
* @return Method/params pairs
*/
public static Object[] findMethodWithListParameters(Object service, String methodName, List<?> args) {
private static Object[] findMethodWithListParameters(Object service, String methodName, List<?> args) {
return findMethodWithListParameters(service, methodName, args.toArray());
}

Expand All @@ -207,7 +207,7 @@ public static Object[] findMethodWithListParameters(Object service, String metho
* Arguments
* @return Method/params pairs
*/
public static Object[] findMethodWithListParameters(Object service, String methodName, Object[] args) {
private static Object[] findMethodWithListParameters(Object service, String methodName, Object[] args) {
Method method = null;
try {
// convert the args first
Expand Down Expand Up @@ -253,7 +253,7 @@ public static Object[] findMethodWithListParameters(Object service, String metho
* Number of parameters
* @return List of methods that match by name and number of parameters
*/
public static List<Method> findMethodsByNameAndNumParams(Object object, String method, int numParam) {
private static List<Method> findMethodsByNameAndNumParams(Object object, String method, int numParam) {
LinkedList<Method> list = new LinkedList<>();
Method[] methods = object.getClass().getMethods();
for (Method m : methods) {
Expand Down
6 changes: 0 additions & 6 deletions io/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-toolchains-plugin</artifactId>
</plugin>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
Expand Down
14 changes: 1 addition & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- to run unit tests use -Dmaven.test.skip=false -->
<!-- <maven.test.skip>true</maven.test.skip> -->
<maven.test.skip>true</maven.test.skip>
<maven.compiler.source>1.11</maven.compiler.source>
<maven.compiler.target>1.11</maven.compiler.target>
<java.release.level>11</java.release.level>
Expand Down Expand Up @@ -319,18 +319,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M3</version>
<configuration>
<skipTests>${skipTests}</skipTests>
</configuration>
</plugin>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.0.0</version>
</plugin>
<plugin>
<artifactId>maven-scm-plugin</artifactId>
<version>1.11.2</version>
Expand Down
2 changes: 1 addition & 1 deletion red5-server.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}
],
"settings": {
"java.configuration.updateBuildConfiguration": "interactive",
"java.configuration.updateBuildConfiguration": "automatic",
"java.compile.nullAnalysis.mode": "automatic",
"java.project.sourcePaths": [
"io",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,18 @@ public void testReflectionUtils() {
}
assertNotEquals(NULL_RETURN, result);


}

private class DummyConnection extends RTMPMinaConnection {

}

public class TestService {

public void doTest(String param) {
log.info("doTest: {}", param);
}

public void doTestWithConn(IConnection conn, String param0, Integer param1) {
log.info("doTestWithConn: {} {} {}", conn, param0, param1);
}
Expand Down
6 changes: 0 additions & 6 deletions service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-toolchains-plugin</artifactId>
</plugin>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
Expand Down

0 comments on commit 303d348

Please sign in to comment.