Create tool task that checks Mock fields of test classes

This commit is contained in:
ljacqu
2016-05-21 11:54:54 +02:00
parent 6af65e6cd4
commit 53043ddc0d
7 changed files with 180 additions and 9 deletions
@@ -11,7 +11,7 @@ import java.lang.reflect.InvocationTargetException;
/**
* Functionality for constructor injection.
*/
class ConstructorInjection<T> implements Injection<T> {
public class ConstructorInjection<T> implements Injection<T> {
private final Constructor<T> constructor;
@@ -16,7 +16,7 @@ import java.util.List;
/**
* Functionality for field injection.
*/
class FieldInjection<T> implements Injection<T> {
public class FieldInjection<T> implements Injection<T> {
private final Field[] fields;
private final Constructor<T> defaultConstructor;
@@ -5,7 +5,7 @@ package fr.xephi.authme.initialization;
*
* @param <T> the type of the concerned object
*/
interface Injection<T> {
public interface Injection<T> {
/**
* Returns the dependencies that must be provided to instantiate the given item.