@Test(expected = UnsupportedOperationException.class) public void testUnsupportedArrayType() throws Exception { cfg.unsupported(); }
@Test public void itShouldReturnIntArray() throws Exception { assertThat(cfg.primitiveIntArray(), is(new int[] {1, 2, 3})); }
@Test public void itShouldReturnEmptyIntArray() throws Exception { assertThat(cfg.primitiveEmptyIntegers(), is(new int[] {})); }
@Test public void itShouldReturnEmptyIntegerArray() throws Exception { assertThat(cfg.emptyIntegers(), is(new Integer[] {})); }
@Test public void itShouldReturnIntegerArray() throws Exception { assertThat(cfg.integers(), is(new Integer[] {1, 2, 3})); }
@Test public void itShouldReturnEmptyStringArray() throws Exception { assertThat(cfg.emptyProperty(), is(new String[] {})); }
@Test public void itShouldReturnNullForMissedStringArray() throws Exception { assertThat(cfg.missedProperty(), is(nullValue())); }
@Test public void itShouldReadStringArray() throws Exception { assertThat(cfg.fruit(), is(new String[] {"apple", "pear", "orange"})); }