@@ -0,0 +1,2516 @@
+package com.github.brunodles.simplepreferences.lib;%0A%0Aimport android.test.suitebuilder.annotation.SmallTest;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.lang.reflect.Field;%0A%0Aimport static junit.framework.Assert.assertEquals;%0A%0A/**%0A * Created by bruno on 05/02/16.%0A */%0Apublic class ParserHelperTest %7B%0A    public static class WhenResolveKey %7B%0A        public static class WithCustomPropertyName %7B%0A%0A            @Test%0A            @SmallTest%0A            public void shouldReturn_username() throws NoSuchFieldException %7B%0A                assertEquals(%22username%22, ParserHelper.resolveKey(User.class.getDeclaredField(%22name%22)));%0A            %7D%0A%0A            public static class User %7B%0A                @Property(%22username%22) String name;%0A            %7D%0A        %7D%0A%0A        public static class WithDefaultPropertyName %7B%0A%0A            @Test%0A            @SmallTest%0A            public void shouldReturn_username() throws NoSuchFieldException %7B%0A                assertEquals(%22name%22, ParserHelper.resolveKey(User.class.getDeclaredField(%22name%22)));%0A            %7D%0A%0A            public static class User %7B%0A                @Property() String name;%0A            %7D%0A        %7D%0A    %7D%0A%0A    public static class WhenGetValue %7B%0A%0A        public static class WithDefaultValue %7B%0A            private Goku goku;%0A            private Field powerField;%0A%0A            @Before%0A            public void setup() throws NoSuchFieldException %7B%0A                goku = new Goku();%0A                powerField = Goku.class.getDeclaredField(%22power%22);%0A            %7D%0A%0A            @Test%0A            @SmallTest%0A            public void ShouldReturn_9001() throws IllegalAccessException %7B%0A                assertEquals(9001f, ParserHelper.getValue(powerField, goku, 0f));%0A            %7D%0A%0A            public static class Goku %7B%0A                @Property float power = 9001f;%0A            %7D%0A        %7D%0A%0A        public static class WithoutDefaultValue %7B%0A            private Person regularPerson;%0A            private Field powerField;%0A%0A            @Before%0A            public void setup() throws NoSuchFieldException %7B%0A                regularPerson = new Person();%0A                powerField = Person.class.getDeclaredField(%22power%22);%0A            %7D%0A%0A            @Test%0A            @SmallTest%0A            public void ShouldReturn_0() throws IllegalAccessException %7B%0A                assertEquals(0f, ParserHelper.getValue(powerField, regularPerson, 0f));%0A            %7D%0A%0A            public static class Person %7B%0A                @Property float power;%0A            %7D%0A        %7D%0A    %7D%0A%7D

Add teests for ParserHelper