@@ -0,0 +1,1683 @@
+package sp.util.function;%0D%0A%0D%0Aimport static org.hamcrest.CoreMatchers.*;%0D%0Aimport static org.junit.Assert.*;%0D%0A%0D%0Aimport org.junit.Rule;%0D%0Aimport org.junit.Test;%0D%0Aimport org.junit.rules.ExpectedException;%0D%0A%0D%0A/**%0D%0A * %7B@link FunctionWithThrown.OfObjToInt%7D %E3%81%AE%E3%83%86%E3%82%B9%E3%83%88%E9%A7%86%E5%8B%95%E9%96%8B%E7%99%BA.%0D%0A *%0D%0A * @author Se-foo%0D%0A * @since 0.1%0D%0A */%0D%0Apublic class FunctionWithThrown_OfObjToIntTddTest %7B%0D%0A%0D%0A    @Rule%0D%0A    public ExpectedException thrown = ExpectedException.none();%0D%0A%0D%0A    @Test%0D%0A    public void test() %7B%0D%0A%0D%0A        // Check exception from #apply(%22test%22)%0D%0A        this.thrown.expect(NumberFormatException.class);%0D%0A        this.thrown.expectMessage(%22test%22);%0D%0A%0D%0A        // #apply%0D%0A        FunctionWithThrown.OfObjToInt%3CString, NumberFormatException%3E instance = target -%3E Integer.parseInt(target);%0D%0A        assertThat(instance.apply(%22100%22), is(100));%0D%0A%0D%0A        // #compose%0D%0A        assertThat(%0D%0A                instance.compose((StringBuilder target) -%3E new String(target)).apply(new StringBuilder().append(%22100%22)),%0D%0A                is(100));%0D%0A%0D%0A        // #composeFunction%0D%0A        assertThat(instance.composeFunction((StringBuilder target) -%3E new String(target))%0D%0A                .apply(new StringBuilder().append(%22100%22)), is(100));%0D%0A%0D%0A        // andThen%0D%0A        double value = instance.andThen(target -%3E target * -1).apply(%22100%22);%0D%0A        assertThat(value == -100, is(true));%0D%0A%0D%0A        // andThenFunction%0D%0A        value = instance.andThenFunction(target -%3E target * -1).apply(%22100%22);%0D%0A        assertThat(value == -100, is(true));%0D%0A%0D%0A        // #toFunction%0D%0A        assertThat(instance.toFunction().applyAsInt(%22100%22), is(100));%0D%0A%0D%0A        // #apply%0D%0A        instance.toFunction().applyAsInt(%22test%22);%0D%0A    %7D%0D%0A%0D%0A%7D%0D%0A

Add TDD of FunctionWithThrown.OfObjToInt