@Test public void testInThrowsSpaceError1() throws Throwable { SpaceLet spaceLet = new SpaceLet(); try { spaceLet.in("", 100L); fail("Expected SpaceError to be thrown"); } catch (SpaceError ex) { // expected } }
@Test(expected = SpaceError.class) public void testInThrowsSpaceError() throws Throwable { SpaceLet spaceLet = new SpaceLet(); spaceLet.in(""); }