コード例 #1
0
 public void deleteModeShapeServer() {
   modeshapeView.show();
   modeshapeView.deleteServer(serverUrl);
   shell("Confirm Delete Server").bot().button("OK").click();
   assertFalse(
       "Created server is still visible in ModeShape view.",
       modeshapeView.containsServer(serverUrl));
 }
コード例 #2
0
 public void createModeShapeServer() {
   modeshapeView.show();
   ModeshapeServerDialog dialog = modeshapeView.newServer();
   dialog.setUrl(serverUrl);
   dialog.setUser(user);
   dialog.setPassword(password);
   assertTrue("Couldn't connect to the server", dialog.testServerConnection());
   dialog.finishWithWait();
   assertTrue(
       "Created server not visible in ModeShape view.", modeshapeView.containsServer(serverUrl));
   modeshapeView.reconnectServer(serverUrl);
 }