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