Package org.fusesource.ide.fabric8.core.connector

Examples of org.fusesource.ide.fabric8.core.connector.Fabric8Connector.disconnect()


      // TODO: create a new container, start it and check if state is started, delete container
      fabric8.startContainer(container);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }

  @Test
  public void testStopContainer() throws Exception {
View Full Code Here


      // TODO: create container, start it, check if started, stop it, check if stopped, delete container
      fabric8.stopContainer(container);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }
 
  @Test
  public void testDestroyContainer() throws Exception {
View Full Code Here

      String webUrl = fabric8.getWebUrl();
      assertNotNull("Web App Url of Fabric8 is null", webUrl);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }

  @Test
  public void testGetGitUrl() {
View Full Code Here

      String gitUrl = fabric8.getGitUrl();
      assertNotNull("Git Url of Fabric8 is null", gitUrl);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }

  @Test
  public void testGetMavenUploadProxyUrl() {
View Full Code Here

      String url = fabric8.getMavenUploadProxyUrl();
      assertNotNull("Maven Upload Proxy Url of Fabric8 is null", url);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }

  @Test
  public void testGetMavenDownloadProxyUrl() {
View Full Code Here

      String url = fabric8.getMavenDownloadProxyUrl();
      assertNotNull("Maven Download Proxy Url of Fabric8 is null", url);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }
 
  @Test
  public void testGetDefaultVersion() throws Exception {
View Full Code Here

      VersionDTO version = fabric8.getDefaultVersion();
      assertNotNull("Default version is null", version);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }

  @Test
  public void testSetDefaultVersion() throws Exception {
View Full Code Here

      List<VersionDTO> versions = fabric8.getVersions();
      assertNotNull("getVersions returns null", versions);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }
 
  @Test
  public void testDeleteVersion() throws Exception {
View Full Code Here

      List<ProfileDTO> profiles = fabric8.getProfiles(version.getId());
      assertNotNull("getProfiles returns null", profiles);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }

  @Test
  public void testGetProfile() throws Exception {
View Full Code Here

      ProfileDTO profile = fabric8.getProfile(version.getId(), "default");
      assertNotNull("getProfile returns null for default profile", profile);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }

  @Test
  public void testCreateProfile() throws Exception {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.