Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.oakfusion.valter;
 
 public class ViolationCase<T> {
 
 	private final CaseBuilder<T> caseBuilder;
 	private final String fieldName;
 	private Object expected;
 
 	private static final int DEFAULT_VIOLATIONS_COUNT = 1;
	public ViolationCase(CaseBuilder<T> caseBuilderString fieldName) {
		this. = caseBuilder;
		this. = fieldName;
	}
		return new FieldModifier<>(this);
	}
	public FieldModifier shouldFailTimes(Integer expected) {
		this. = expected;
		return new FieldModifier<>(this);
	}
	public FieldModifier shouldFailWith(Class expected) {
		this. = expected;
		return new FieldModifier<>(this);
	}
		return ;
	}
		return ;
	}
New to GrepCode? Check out our FAQ X