Ejemplo n.º 1
0
 @Test
 public void testCheckConnection() {
   try {
     assertTrue(PlintRobot.getInstance().checkConnection());
   } catch (LintException e) {
     assertFalse(e.getMessage(), true);
   } catch (TimeoutException e) {
     assertFalse(e.getMessage(), true);
   }
 }
Ejemplo n.º 2
0
 @After
 public void clean() throws LintException, TimeoutException {
   // Delete context created for testing
   PlintRobot.getInstance().deleteContext(CONTEXT_NAME);
 }
Ejemplo n.º 3
0
 @Before
 public void setup() throws LintException, TimeoutException {
   // create subdomain for test
   PlintRobot.getInstance().createContext(CONTEXT_NAME, null, null, "test context", null);
 }