@@ -0,0 +1,1534 @@
+package util.list;%0A%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport junit.framework.TestCase;%0A%0Aimport org.junit.Test;%0A%0A/**%0A * %7B@link ListEx%7D is test class.%0A * %0A * @since v0.1%0A */%0Apublic class TestListEx extends TestCase %7B%0A    private static final List%3CString%3E LIST = new ArrayList%3C%3E(Arrays.asList(%0A            %22hoge%22,%0A            %22fuga%22,%0A            %22piyo%22,%0A            null,%0A            %22%22));%0A%0A    @Test%0A    public void test() %7B%0A        assertThat(ListEx.countList(LIST, null, false), is(5));%0A        assertThat(ListEx.countList(LIST, null, true), is(4));%0A        assertThat(ListEx.countList(LIST, Arrays.asList(%22hoge%22), false), is(4));%0A        assertThat(ListEx.countList(LIST, Arrays.asList(%22hoge%22, %22fuga%22), false), is(3));%0A        assertThat(ListEx.countList(LIST, Arrays.asList(%22hoge%22, %22fuga%22, %22piyo%22), true), is(1));%0A        assertThat(%0A                ListEx.countList(LIST, Arrays.asList(%22hoge%22, %22fuga%22, %22piyo%22, %22%22), true),%0A                is(0));%0A        assertThat(%0A                ListEx.countList(LIST, Arrays.asList(%22hoge%22, %22fuga%22, %22piyo%22, null), false),%0A                is(1));%0A        assertThat(ListEx.countList(LIST, Arrays.asList(%22%22), false), is(4));%0A        assertThat(ListEx.countList(LIST, Arrays.asList(%22%22), true), is(3));%0A        assertThat(ListEx.countList(LIST, Arrays.asList(%22%22, null), false), is(3));%0A        assertThat(ListEx.countList(null, null, false), is(0));%0A    %7D%0A%7D%0A

Create TestListEx.java