2021222324252627
new DoubleParser().perform("A"); } @Test(expected = ClassCastException.class) public void passingNonStringToErasureYieldsException() { Delegate d = new DoubleParser(); d.perform(new Object()); }
2122232425262728
new ShortTryParser(Character.MIN_RADIX - 1); } @Test(expected = ClassCastException.class) public void passingNonStringToErasureYieldsException() { Delegate d = new ShortTryParser(10); d.perform(new Object()); }
new FloatParser().perform("A"); } @Test(expected = ClassCastException.class) public void passingNonStringToErasureYieldsException() { Delegate d = new FloatParser(); d.perform(new Object()); }
3031323334353637
new IntegerParser(10).perform("A"); } @Test(expected = ClassCastException.class) public void passingNonStringToErasureYieldsException() { Delegate d = new IntegerParser(10); d.perform(new Object()); }
1112131415161718
*/ public class FloatTryParserTest { @Test(expected = ClassCastException.class) public void passingNonStringToErasureYieldsException() { Delegate d = new FloatTryParser(); d.perform(new Object()); }
new LongParser(10).perform("A"); } @Test(expected = ClassCastException.class) public void passingNonStringToErasureYieldsException() { Delegate d = new LongParser(10); d.perform(new Object()); }
new IntegerTryParser(Character.MIN_RADIX - 1); } @Test(expected = ClassCastException.class) public void passingNonStringToErasureYieldsException() { Delegate d = new IntegerTryParser(10); d.perform(new Object()); }
1617181920212223
new BooleanParser().perform("A"); } @Test(expected = ClassCastException.class) public void passingNonStringToErasureYieldsException() { Delegate d = new BooleanParser(); d.perform(new Object()); }
new ByteParser(10).perform("A"); } @Test(expected = ClassCastException.class) public void passingNonStringToErasureYieldsException() { Delegate d = new ByteParser(10); d.perform(new Object()); }
*/ public class DoubleTryParserTest { @Test(expected = ClassCastException.class) public void passingNonStringToErasureYieldsException() { Delegate d = new DoubleTryParser(); d.perform(new Object()); }