package com.worth.ifs.validator;

import org.springframework.validation.BindingResult;
import org.springframework.validation.DataBinder;
import com.worth.ifs.finance.resource.cost.FinanceRowItem;
import com.worth.ifs.form.domain.FormInputResponse;

public final class ValidatorTestUtil {

	private ValidatorTestUtil(){}
	
    public static BindingResult getBindingResult(FormInputResponse formInputResponse) {
        return new DataBinder(formInputResponse).getBindingResult();
    }

    public static BindingResult getBindingResult(FinanceRowItem costItem) {
        return new DataBinder(costItem).getBindingResult();
    }
}

@@ -130,16 +130,17 @@
 Binder;%0A
+%0A
 import c
@@ -283,17 +283,20 @@
 Util %7B%0A%0A
-%09
+    
 private 
@@ -321,9 +321,8 @@
 )%7B%7D%0A
-%09
 %0A   

tidy up