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