Example #1
0
 @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);
 }
Example #2
0
 @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
   }
 }
Example #3
0
 @Test
 public void testInThrowsSpaceError1() throws Throwable {
   SpaceLet spaceLet = new SpaceLet();
   try {
     spaceLet.in("", 100L);
     fail("Expected SpaceError to be thrown");
   } catch (SpaceError ex) {
     // expected
   }
 }
Example #4
0
 @Test
 public void testInitServiceThrowsNullPointerException() throws Throwable {
   SpaceLet spaceLet = new SpaceLet();
   try {
     spaceLet.initService();
     fail("Expected NullPointerException to be thrown");
   } catch (NullPointerException ex) {
     // expected
   }
 }
Example #5
0
 @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
   }
 }
Example #6
0
 @Test
 public void testRdpThrowsSpaceError() throws Throwable {
   SpaceLet spaceLet = new SpaceLet();
   try {
     spaceLet.rdp("");
     fail("Expected SpaceError to be thrown");
   } catch (SpaceError ex) {
     // expected
   }
 }
Example #7
0
 @Test(expected = SpaceError.class)
 public void testInThrowsSpaceError() throws Throwable {
   SpaceLet spaceLet = new SpaceLet();
   spaceLet.in("");
 }