@@ -0,0 +1,3271 @@
+package com.basgeekball.awesomevalidation.validators;%0A%0Aimport android.widget.EditText;%0A%0Aimport com.basgeekball.awesomevalidation.ValidationHolder;%0Aimport com.basgeekball.awesomevalidation.helper.SpanHelper;%0A%0Aimport junit.framework.TestCase;%0A%0Aimport org.junit.runner.RunWith;%0Aimport org.powermock.api.mockito.PowerMockito;%0Aimport org.powermock.core.classloader.annotations.PrepareForTest;%0Aimport org.powermock.modules.junit4.PowerMockRunner;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Arrays;%0A%0Aimport static com.basgeekball.awesomevalidation.validators.MockValidationHolderHelper.ValidationHolderType.RANGE;%0Aimport static com.basgeekball.awesomevalidation.validators.MockValidationHolderHelper.ValidationHolderType.REGEX;%0Aimport static com.basgeekball.awesomevalidation.validators.MockValidationHolderHelper.generate;%0Aimport static org.mockito.Matchers.any;%0Aimport static org.mockito.Matchers.anyInt;%0Aimport static org.mockito.Mockito.never;%0Aimport static org.mockito.Mockito.verify;%0Aimport static org.mockito.Mockito.when;%0A%0A@RunWith(PowerMockRunner.class)%0A@PrepareForTest(%7BColorationValidator.class, MockValidationHolderHelper.class, SpanHelper.class%7D)%0Apublic class ColorationValidatorTest extends TestCase %7B%0A%0A    private ColorationValidator mColorationValidator;%0A%0A    @Override%0A    protected void setUp() throws Exception %7B%0A        super.setUp();%0A        mColorationValidator = new ColorationValidator();%0A    %7D%0A%0A    public void testTriggerOneWithoutError() %7B%0A        ValidationHolder mockedValidationHolder = generate(REGEX, true);%0A        String mockedErrMsg = PowerMockito.mock(String.class);%0A        when(mockedValidationHolder.getErrMsg()).thenReturn(mockedErrMsg);%0A        mColorationValidator.mValidationHolderList.add(mockedValidationHolder);%0A        PowerMockito.mockStatic(SpanHelper.class);%0A        PowerMockito.doNothing().when(SpanHelper.class);%0A        SpanHelper.reset(any(EditText.class));%0A        mColorationValidator.trigger();%0A        verify(mockedValidationHolder.getEditText(), never()).setError(mockedErrMsg);%0A        PowerMockito.verifyStatic(never());%0A        SpanHelper.setColor(any(EditText.class), anyInt(), any(ArrayList.class));%0A    %7D%0A%0A    public void testTriggerManyWithoutError() %7B%0A        ValidationHolder mockedValidationHolderRegexType = generate(REGEX, true);%0A        ValidationHolder mockedValidationHolderRangeType = generate(RANGE, true);%0A        String mockedErrMsg = PowerMockito.mock(String.class);%0A        when(mockedValidationHolderRegexType.getErrMsg()).thenReturn(mockedErrMsg);%0A        when(mockedValidationHolderRangeType.getErrMsg()).thenReturn(mockedErrMsg);%0A        mColorationValidator.mValidationHolderList.addAll(Arrays.asList(mockedValidationHolderRegexType, mockedValidationHolderRangeType));%0A        PowerMockito.mockStatic(SpanHelper.class);%0A        PowerMockito.doNothing().when(SpanHelper.class);%0A        SpanHelper.reset(any(EditText.class));%0A        mColorationValidator.trigger();%0A        verify(mockedValidationHolderRegexType.getEditText(), never()).setError(mockedErrMsg);%0A        verify(mockedValidationHolderRangeType.getEditText(), never()).setError(mockedErrMsg);%0A        PowerMockito.verifyStatic(never());%0A        SpanHelper.setColor(any(EditText.class), anyInt(), any(ArrayList.class));%0A    %7D%0A%0A%7D%0A

Add ColorationValidatorTest (not yet finished)