package com.basgeekball.awesomevalidation;

import junit.framework.TestCase;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

@RunWith(JUnit4.class)
public class ValidationStyleTest extends TestCase {

    public void testFromValueToBasic() {
        assertEquals(ValidationStyle.BASIC, ValidationStyle.fromValue(0));
    }

    public void testFromValueToColoration() {
        assertEquals(ValidationStyle.COLORATION, ValidationStyle.fromValue(1));
    }

    public void testFromValueToUnderlabel() {
        assertEquals(ValidationStyle.UNDERLABEL, ValidationStyle.fromValue(2));
    }

    @Test(expected = IllegalArgumentException.class)
    public void testFromValueThrowException() {
        ValidationStyle.fromValue(3);
    }

}

@@ -622,24 +622,169 @@
 2));%0A    %7D%0A%0A
+    public void testFromValueToTextInputLayout() %7B%0A        assertEquals(ValidationStyle.TEXT_INPUT_LAYOUT, ValidationStyle.fromValue(3));%0A    %7D%0A%0A
     @Test(ex
@@ -824,16 +824,16 @@
 .class)%0A
-
     publ
@@ -906,17 +906,17 @@
 omValue(
-3
+4
 );%0A    %7D

Fix failed unit test