@Test public void testInp() throws Throwable { SpaceLet spaceLet = new SpaceLet(); Element persist = mock(Element.class); spaceLet.setPersist(persist); spaceLet.initService(); Object result = spaceLet.inp(Integer.valueOf(0)); assertNull(result); }
@Test public void testOutThrowsSpaceError1() throws Throwable { SpaceLet spaceLet = new SpaceLet(); try { spaceLet.out("testString", "testString"); fail("Expected SpaceError to be thrown"); } catch (SpaceError ex) { // expected } }
@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 public void testInitServiceThrowsNullPointerException() throws Throwable { SpaceLet spaceLet = new SpaceLet(); try { spaceLet.initService(); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { // expected } }
@Test public void testRdThrowsSpaceError() throws Throwable { SpaceLet spaceLet = new SpaceLet(); try { spaceLet.rd(Integer.valueOf(0)); fail("Expected SpaceError to be thrown"); } catch (SpaceError ex) { // expected } }
@Test public void testRdpThrowsSpaceError() throws Throwable { SpaceLet spaceLet = new SpaceLet(); try { spaceLet.rdp(""); 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(""); }