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