All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.davidebocca.util.unit.test.rules.conf.FieldExclusionConf Maven / Gradle / Ivy

There is a newer version: 0.0.20
Show newest version
package io.github.davidebocca.util.unit.test.rules.conf;

import java.util.ArrayList;
import java.util.List;

public class FieldExclusionConf {

	private Class clazz;
	private List fieldsToExclude;

	public FieldExclusionConf() {
		super();
		// TODO Auto-generated constructor stub
	}

	/**
	 * 
	 * Use this constructor to apply the exclusions to a certain class
	 * 
	 * @param clazz
	 * @param fieldsToExclude
	 */
	public FieldExclusionConf(Class clazz, List fieldsToExclude) {
		super();
		this.clazz = clazz;
		this.fieldsToExclude = fieldsToExclude;
	}

	/**
	 * 
	 * Use this constructor to exclude the fields from all the classes tested
	 * 
	 * @param fieldsToExclude
	 * 
	 */
	public FieldExclusionConf(List fieldsToExclude) {
		super();
		this.fieldsToExclude = fieldsToExclude;
	}

	public List getFieldsToExclude() {
		if (fieldsToExclude == null) {
			fieldsToExclude = new ArrayList<>();
		}
		return fieldsToExclude;
	}

	public void setFieldsToExclude(List fieldsToExclude) {
		this.fieldsToExclude = fieldsToExclude;
	}

	public Class getClazz() {
		return clazz;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy