Skip to content
Snippets Groups Projects
Commit 303d3487 authored by Paul Gregoire's avatar Paul Gregoire
Browse files

Set test skip enabled, remove surefire

parent 919e9854
No related branches found
No related tags found
No related merge requests found
...@@ -13,17 +13,6 @@ ...@@ -13,17 +13,6 @@
<build> <build>
<defaultGoal>install</defaultGoal> <defaultGoal>install</defaultGoal>
<plugins> <plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<!--
<plugin>
<artifactId>maven-toolchains-plugin</artifactId>
</plugin>
-->
<plugin> <plugin>
<groupId>net.revelc.code.formatter</groupId> <groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId> <artifactId>formatter-maven-plugin</artifactId>
......
...@@ -21,12 +21,6 @@ ...@@ -21,12 +21,6 @@
<build> <build>
<defaultGoal>install</defaultGoal> <defaultGoal>install</defaultGoal>
<plugins> <plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-toolchains-plugin</artifactId>
</plugin>
<plugin> <plugin>
<groupId>net.revelc.code.formatter</groupId> <groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId> <artifactId>formatter-maven-plugin</artifactId>
......
...@@ -130,7 +130,7 @@ public class ReflectionUtils { ...@@ -130,7 +130,7 @@ public class ReflectionUtils {
* Arguments * Arguments
* @return Method/params pairs * @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; int numParams = (args == null) ? 0 : args.length;
if (isTrace) { if (isTrace) {
log.trace("Args / parameters count: {}", numParams); log.trace("Args / parameters count: {}", numParams);
...@@ -192,7 +192,7 @@ public class ReflectionUtils { ...@@ -192,7 +192,7 @@ public class ReflectionUtils {
* Arguments * Arguments
* @return Method/params pairs * @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()); return findMethodWithListParameters(service, methodName, args.toArray());
} }
...@@ -207,7 +207,7 @@ public class ReflectionUtils { ...@@ -207,7 +207,7 @@ public class ReflectionUtils {
* Arguments * Arguments
* @return Method/params pairs * @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; Method method = null;
try { try {
// convert the args first // convert the args first
...@@ -253,7 +253,7 @@ public class ReflectionUtils { ...@@ -253,7 +253,7 @@ public class ReflectionUtils {
* Number of parameters * Number of parameters
* @return List of methods that match by name and 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<>(); LinkedList<Method> list = new LinkedList<>();
Method[] methods = object.getClass().getMethods(); Method[] methods = object.getClass().getMethods();
for (Method m : methods) { for (Method m : methods) {
......
...@@ -13,12 +13,6 @@ ...@@ -13,12 +13,6 @@
<build> <build>
<defaultGoal>install</defaultGoal> <defaultGoal>install</defaultGoal>
<plugins> <plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-toolchains-plugin</artifactId>
</plugin>
<plugin> <plugin>
<groupId>net.revelc.code.formatter</groupId> <groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId> <artifactId>formatter-maven-plugin</artifactId>
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- to run unit tests use -Dmaven.test.skip=false --> <!-- 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.source>1.11</maven.compiler.source>
<maven.compiler.target>1.11</maven.compiler.target> <maven.compiler.target>1.11</maven.compiler.target>
<java.release.level>11</java.release.level> <java.release.level>11</java.release.level>
...@@ -319,18 +319,6 @@ ...@@ -319,18 +319,6 @@
</execution> </execution>
</executions> </executions>
</plugin> </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> <plugin>
<artifactId>maven-scm-plugin</artifactId> <artifactId>maven-scm-plugin</artifactId>
<version>1.11.2</version> <version>1.11.2</version>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
} }
], ],
"settings": { "settings": {
"java.configuration.updateBuildConfiguration": "interactive", "java.configuration.updateBuildConfiguration": "automatic",
"java.compile.nullAnalysis.mode": "automatic", "java.compile.nullAnalysis.mode": "automatic",
"java.project.sourcePaths": [ "java.project.sourcePaths": [
"io", "io",
......
...@@ -54,11 +54,10 @@ public class ReflectionUtilsTest { ...@@ -54,11 +54,10 @@ public class ReflectionUtilsTest {
} }
assertNotEquals(NULL_RETURN, result); assertNotEquals(NULL_RETURN, result);
} }
private class DummyConnection extends RTMPMinaConnection { private class DummyConnection extends RTMPMinaConnection {
} }
public class TestService { public class TestService {
...@@ -66,7 +65,7 @@ public class ReflectionUtilsTest { ...@@ -66,7 +65,7 @@ public class ReflectionUtilsTest {
public void doTest(String param) { public void doTest(String param) {
log.info("doTest: {}", param); log.info("doTest: {}", param);
} }
public void doTestWithConn(IConnection conn, String param0, Integer param1) { public void doTestWithConn(IConnection conn, String param0, Integer param1) {
log.info("doTestWithConn: {} {} {}", conn, param0, param1); log.info("doTestWithConn: {} {} {}", conn, param0, param1);
} }
......
...@@ -16,12 +16,6 @@ ...@@ -16,12 +16,6 @@
<build> <build>
<defaultGoal>install</defaultGoal> <defaultGoal>install</defaultGoal>
<plugins> <plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-toolchains-plugin</artifactId>
</plugin>
<plugin> <plugin>
<groupId>net.revelc.code.formatter</groupId> <groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId> <artifactId>formatter-maven-plugin</artifactId>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment