Exemple #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);
   }
 }
Exemple #2
0
 @After
 public void clean() throws LintException, TimeoutException {
   // Delete context created for testing
   PlintRobot.getInstance().deleteContext(CONTEXT_NAME);
 }
Exemple #3
0
 @Before
 public void setup() throws LintException, TimeoutException {
   // create subdomain for test
   PlintRobot.getInstance().createContext(CONTEXT_NAME, null, null, "test context", null);
 }