Examples of obtainXmlPropertyViaXPath()


Examples of org.rhq.modules.plugins.jbossas7.helper.HostConfiguration.obtainXmlPropertyViaXPath()

/*
        String realm = bd.obtainXmlPropertyViaXPath("/management/management-interfaces/http-interface/@security-realm");
        assert "ManagementRealm".equals(realm) : "Realm was " + realm;
*/
        String pathExpr = "//management/management-interfaces/http-interface/@port";
        String port = hostConfig.obtainXmlPropertyViaXPath(pathExpr);
        assert "19990".equals(port) : "Port was [" + port + "]";

        pathExpr = "//management/management-interfaces/http-interface/@interface";
        String interfName = hostConfig.obtainXmlPropertyViaXPath(pathExpr);
        assert "management".equals(interfName) : "Interface was " + interfName;
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.helper.HostConfiguration.obtainXmlPropertyViaXPath()

        String pathExpr = "//management/management-interfaces/http-interface/@port";
        String port = hostConfig.obtainXmlPropertyViaXPath(pathExpr);
        assert "19990".equals(port) : "Port was [" + port + "]";

        pathExpr = "//management/management-interfaces/http-interface/@interface";
        String interfName = hostConfig.obtainXmlPropertyViaXPath(pathExpr);
        assert "management".equals(interfName) : "Interface was " + interfName;

        pathExpr = "/server/interfaces/interface[@name='" + interfName + "']/inet-address/@value";
        String interfElem = hostConfig.obtainXmlPropertyViaXPath(pathExpr);
        assert "${jboss.bind.address.management:127.0.0.70}".equals(interfElem) : "InterfElem was " + interfElem;
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.helper.HostConfiguration.obtainXmlPropertyViaXPath()

        pathExpr = "//management/management-interfaces/http-interface/@interface";
        String interfName = hostConfig.obtainXmlPropertyViaXPath(pathExpr);
        assert "management".equals(interfName) : "Interface was " + interfName;

        pathExpr = "/server/interfaces/interface[@name='" + interfName + "']/inet-address/@value";
        String interfElem = hostConfig.obtainXmlPropertyViaXPath(pathExpr);
        assert "${jboss.bind.address.management:127.0.0.70}".equals(interfElem) : "InterfElem was " + interfElem;
    }


    public void testXpath71() throws Exception {
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.helper.HostConfiguration.obtainXmlPropertyViaXPath()

    public void testXpath71() throws Exception {
        URL url = getClass().getClassLoader().getResource("standalone71.xml");
        HostConfiguration hostConfig = new HostConfiguration(new File(url.getPath()));

        String realm = hostConfig.obtainXmlPropertyViaXPath("//management/management-interfaces/http-interface/@security-realm");
        assert "ManagementRealm".equals(realm) : "Realm was " + realm;
        String sbindingRef = hostConfig.obtainXmlPropertyViaXPath(
                ("//management/management-interfaces/http-interface/socket-binding/@http"));
        assert "management-http".equals(sbindingRef): "Socketbinding was " + sbindingRef;
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.helper.HostConfiguration.obtainXmlPropertyViaXPath()

        URL url = getClass().getClassLoader().getResource("standalone71.xml");
        HostConfiguration hostConfig = new HostConfiguration(new File(url.getPath()));

        String realm = hostConfig.obtainXmlPropertyViaXPath("//management/management-interfaces/http-interface/@security-realm");
        assert "ManagementRealm".equals(realm) : "Realm was " + realm;
        String sbindingRef = hostConfig.obtainXmlPropertyViaXPath(
                ("//management/management-interfaces/http-interface/socket-binding/@http"));
        assert "management-http".equals(sbindingRef): "Socketbinding was " + sbindingRef;

        String pathExpr = "/server/socket-binding-group/socket-binding[@name='" + sbindingRef + "']/@port";
        String port = hostConfig.obtainXmlPropertyViaXPath(pathExpr);
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.helper.HostConfiguration.obtainXmlPropertyViaXPath()

        String sbindingRef = hostConfig.obtainXmlPropertyViaXPath(
                ("//management/management-interfaces/http-interface/socket-binding/@http"));
        assert "management-http".equals(sbindingRef): "Socketbinding was " + sbindingRef;

        String pathExpr = "/server/socket-binding-group/socket-binding[@name='" + sbindingRef + "']/@port";
        String port = hostConfig.obtainXmlPropertyViaXPath(pathExpr);
        assert "29990".equals(port) : "Port was [" + port + "]";

        pathExpr = "/server/socket-binding-group/socket-binding[@name='" + sbindingRef + "']/@interface";
        String interfName = hostConfig.obtainXmlPropertyViaXPath(pathExpr);
        assert "management".equals(interfName) : "Interface was " + interfName;
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.helper.HostConfiguration.obtainXmlPropertyViaXPath()

        String pathExpr = "/server/socket-binding-group/socket-binding[@name='" + sbindingRef + "']/@port";
        String port = hostConfig.obtainXmlPropertyViaXPath(pathExpr);
        assert "29990".equals(port) : "Port was [" + port + "]";

        pathExpr = "/server/socket-binding-group/socket-binding[@name='" + sbindingRef + "']/@interface";
        String interfName = hostConfig.obtainXmlPropertyViaXPath(pathExpr);
        assert "management".equals(interfName) : "Interface was " + interfName;

        pathExpr = "/server/interfaces/interface[@name='" + interfName + "']/inet-address/@value";
        String interfElem = hostConfig.obtainXmlPropertyViaXPath(pathExpr);
        assert "${jboss.bind.address.management:127.0.0.71}".equals(interfElem) : "InterfElem was " + interfElem;
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.helper.HostConfiguration.obtainXmlPropertyViaXPath()

        pathExpr = "/server/socket-binding-group/socket-binding[@name='" + sbindingRef + "']/@interface";
        String interfName = hostConfig.obtainXmlPropertyViaXPath(pathExpr);
        assert "management".equals(interfName) : "Interface was " + interfName;

        pathExpr = "/server/interfaces/interface[@name='" + interfName + "']/inet-address/@value";
        String interfElem = hostConfig.obtainXmlPropertyViaXPath(pathExpr);
        assert "${jboss.bind.address.management:127.0.0.71}".equals(interfElem) : "InterfElem was " + interfElem;
    }

    public void testXpath711() throws Exception {
        URL url = getClass().getClassLoader().getResource("standalone711.xml");
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.helper.HostConfiguration.obtainXmlPropertyViaXPath()

    public void testXpath711() throws Exception {
        URL url = getClass().getClassLoader().getResource("standalone711.xml");
        HostConfiguration hostConfig = new HostConfiguration(new File(url.getPath()));

        String realm = hostConfig.obtainXmlPropertyViaXPath("//management/management-interfaces/http-interface/@security-realm");
        assert "ManagementRealm".equals(realm) : "Realm was " + realm;
        String sbindingRef = hostConfig.obtainXmlPropertyViaXPath(
                ("//management/management-interfaces/http-interface/socket-binding/@http"));
        assert "management-http".equals(sbindingRef): "Socketbinding was " + sbindingRef;
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.helper.HostConfiguration.obtainXmlPropertyViaXPath()

        URL url = getClass().getClassLoader().getResource("standalone711.xml");
        HostConfiguration hostConfig = new HostConfiguration(new File(url.getPath()));

        String realm = hostConfig.obtainXmlPropertyViaXPath("//management/management-interfaces/http-interface/@security-realm");
        assert "ManagementRealm".equals(realm) : "Realm was " + realm;
        String sbindingRef = hostConfig.obtainXmlPropertyViaXPath(
                ("//management/management-interfaces/http-interface/socket-binding/@http"));
        assert "management-http".equals(sbindingRef): "Socketbinding was " + sbindingRef;

        String pathExpr = "/server/socket-binding-group/socket-binding[@name='" + sbindingRef + "']/@port";
        String port = hostConfig.obtainXmlPropertyViaXPath(pathExpr);
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.