Package org.fusesource.ide.fabric8.ui.navigator.properties

Examples of org.fusesource.ide.fabric8.ui.navigator.properties.FabricTabViewPage


  @Test
  public void testStopContainer() throws Exception {
      if (!this.doTests) return;
    Fabric8ConnectorType connectorType = Fabric8TestHelpers.getJolokiaConnector();
    Fabric8Connector con = new Fabric8Connector(connectorType);
    try {
      assertNotNull("Connector is null!", con);

      con.connect();
      assertNotNull("Connector Type is null!", con.getConnection());
     
      Fabric8Facade fabric8 = con.getConnection().getFabricFacade();
      assertNotNull("Fabric8 DTO is null!", fabric8);
     
      ContainerDTO container = fabric8.getCurrentContainer();
      assertNotNull("getCurrentContainer() returned NULL!", container);

      // 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();
    }
  }
View Full Code Here


 
  @Test
  public void testGetWebUrl() throws Exception {
      if (!this.doTests) return;
    Fabric8ConnectorType connectorType = Fabric8TestHelpers.getJolokiaConnector();
    Fabric8Connector con = new Fabric8Connector(connectorType);
    try {
      assertNotNull("Connector is null!", con);

      con.connect();
      assertNotNull("Connector Type is null!", con.getConnection());
     
      Fabric8Facade fabric8 = con.getConnection().getFabricFacade();
      assertNotNull("Fabric8 DTO is null!", fabric8);
     
      String webUrl = fabric8.getWebUrl();
      assertNotNull("Web App Url of Fabric8 is null", webUrl);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }
View Full Code Here

  @Test
  public void testGetGitUrl() {
      if (!this.doTests) return;
    Fabric8ConnectorType connectorType = Fabric8TestHelpers.getJolokiaConnector();
    Fabric8Connector con = new Fabric8Connector(connectorType);
    try {
      assertNotNull("Connector is null!", con);

      con.connect();
      assertNotNull("Connector Type is null!", con.getConnection());
     
      Fabric8Facade fabric8 = con.getConnection().getFabricFacade();
      assertNotNull("Fabric8 DTO is null!", fabric8);
     
      String gitUrl = fabric8.getGitUrl();
      assertNotNull("Git Url of Fabric8 is null", gitUrl);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }
View Full Code Here

  @Test
  public void testGetMavenUploadProxyUrl() {
      if (!this.doTests) return;
    Fabric8ConnectorType connectorType = Fabric8TestHelpers.getJolokiaConnector();
    Fabric8Connector con = new Fabric8Connector(connectorType);
    try {
      assertNotNull("Connector is null!", con);

      con.connect();
      assertNotNull("Connector Type is null!", con.getConnection());
     
      Fabric8Facade fabric8 = con.getConnection().getFabricFacade();
      assertNotNull("Fabric8 DTO is null!", fabric8);
     
      String url = fabric8.getMavenUploadProxyUrl();
      assertNotNull("Maven Upload Proxy Url of Fabric8 is null", url);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }
View Full Code Here

  @Test
  public void testGetMavenDownloadProxyUrl() {
      if (!this.doTests) return;
    Fabric8ConnectorType connectorType = Fabric8TestHelpers.getJolokiaConnector();
    Fabric8Connector con = new Fabric8Connector(connectorType);
    try {
      assertNotNull("Connector is null!", con);

      con.connect();
      assertNotNull("Connector Type is null!", con.getConnection());
     
      Fabric8Facade fabric8 = con.getConnection().getFabricFacade();
      assertNotNull("Fabric8 DTO is null!", fabric8);
     
      String url = fabric8.getMavenDownloadProxyUrl();
      assertNotNull("Maven Download Proxy Url of Fabric8 is null", url);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }
View Full Code Here

 
  @Test
  public void testGetDefaultVersion() throws Exception {
      if (!this.doTests) return;
    Fabric8ConnectorType connectorType = Fabric8TestHelpers.getJolokiaConnector();
    Fabric8Connector con = new Fabric8Connector(connectorType);
    try {
      assertNotNull("Connector is null!", con);

      con.connect();
      assertNotNull("Connector Type is null!", con.getConnection());
     
      Fabric8Facade fabric8 = con.getConnection().getFabricFacade();
      assertNotNull("Fabric8 DTO is null!", fabric8);
     
      VersionDTO version = fabric8.getDefaultVersion();
      assertNotNull("Default version is null", version);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }
View Full Code Here

  @Test
  public void testGetVersions() throws Exception {
      if (!this.doTests) return;
    Fabric8ConnectorType connectorType = Fabric8TestHelpers.getJolokiaConnector();
    Fabric8Connector con = new Fabric8Connector(connectorType);
    try {
      assertNotNull("Connector is null!", con);

      con.connect();
      assertNotNull("Connector Type is null!", con.getConnection());
     
      Fabric8Facade fabric8 = con.getConnection().getFabricFacade();
      assertNotNull("Fabric8 DTO is null!", fabric8);
     
      List<VersionDTO> versions = fabric8.getVersions();
      assertNotNull("getVersions returns null", versions);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }
View Full Code Here

  @Test
  public void testGetProfiles() throws Exception {
      if (!this.doTests) return;
    Fabric8ConnectorType connectorType = Fabric8TestHelpers.getJolokiaConnector();
    Fabric8Connector con = new Fabric8Connector(connectorType);
    try {
      assertNotNull("Connector is null!", con);

      con.connect();
      assertNotNull("Connector Type is null!", con.getConnection());
     
      Fabric8Facade fabric8 = con.getConnection().getFabricFacade();
      assertNotNull("Fabric8 DTO is null!", fabric8);
     
      VersionDTO version = fabric8.getDefaultVersion();
      assertNotNull("Default version is null", version);
     
      List<ProfileDTO> profiles = fabric8.getProfiles(version.getId());
      assertNotNull("getProfiles returns null", profiles);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }
View Full Code Here

  @Test
  public void testGetProfile() throws Exception {
      if (!this.doTests) return;
    Fabric8ConnectorType connectorType = Fabric8TestHelpers.getJolokiaConnector();
    Fabric8Connector con = new Fabric8Connector(connectorType);
    try {
      assertNotNull("Connector is null!", con);

      con.connect();
      assertNotNull("Connector Type is null!", con.getConnection());
     
      Fabric8Facade fabric8 = con.getConnection().getFabricFacade();
      assertNotNull("Fabric8 DTO is null!", fabric8);
     
      VersionDTO version = fabric8.getDefaultVersion();
      assertNotNull("Default version is null", version);
     
      ProfileDTO profile = fabric8.getProfile(version.getId(), "default");
      assertNotNull("getProfile returns null for default profile", profile);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }
View Full Code Here

  @Test
  public void testCreateProfile() throws Exception {
      if (!this.doTests) return;
    Fabric8ConnectorType connectorType = Fabric8TestHelpers.getJolokiaConnector();
    Fabric8Connector con = new Fabric8Connector(connectorType);
    try {
      assertNotNull("Connector is null!", con);

      con.connect();
      assertNotNull("Connector Type is null!", con.getConnection());
     
      Fabric8Facade fabric8 = con.getConnection().getFabricFacade();
      assertNotNull("Fabric8 DTO is null!", fabric8);
     
      VersionDTO version = fabric8.getDefaultVersion();
      assertNotNull("Default version is null", version);
     
      ProfileDTO profile = fabric8.createProfile(version.getId(), "unitTestProfileIDE");
      assertNotNull("createProfile returns null when created profile", profile);
     
      ProfileDTO profile2 = fabric8.getProfile(version.getId(), "unitTestProfileIDE");
      assertNotNull("getProfile returns null for created profile", profile2);
     
      fabric8.deleteProfile(version.getId(), profile2.getId());
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }
View Full Code Here

TOP

Related Classes of org.fusesource.ide.fabric8.ui.navigator.properties.FabricTabViewPage

Copyright © 2018 www.massapicom. 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.