2122232425262728
new LongTryParser(Character.MIN_RADIX - 1); } @Test(expected = ClassCastException.class) public void passingNonStringToErasureYieldsException() { Delegate d = new LongTryParser(10); d.perform(new Object()); }
2526272829303132
new ShortParser(10).perform(null); } @Test(expected = ClassCastException.class) public void passingNonStringToErasureYieldsException() { Delegate d = new ShortParser(10); d.perform(new Object()); }