@Test
public void short_values() throws Exception {
CsvParser parser = create("0,1,50,-1,-50,"
+ Short.MAX_VALUE + ","
+ Short.MIN_VALUE + ", 0,0 ,");
ShortOption option = new ShortOption();
assertThat(parser.next(), is(true));
parser.fill(option);
assertThat(option.get(), is((short) 0));
parser.fill(option);
assertThat(option.get(), is((short) 1));
parser.fill(option);
assertThat(option.get(), is((short) 50));
parser.fill(option);
assertThat(option.get(), is((short) -1));
parser.fill(option);
assertThat(option.get(), is((short) -50));
parser.fill(option);
assertThat(option.get(), is(Short.MAX_VALUE));
parser.fill(option);
assertThat(option.get(), is(Short.MIN_VALUE));
parser.fill(option);
assertThat(option.get(), is((short) 0));
parser.fill(option);
assertThat(option.get(), is((short) 0));
parser.fill(option);
assertThat(option.isNull(), is(true));
parser.endRecord();
assertThat(parser.next(), is(false));
}