Package org.wso2.carbon.integration.core

Examples of org.wso2.carbon.integration.core.AuthenticateStub


        OMElement result = null;

        StockQuoteClient stockQuoteClient = new StockQuoteClient();

        try {
            AuthenticateStub authenticateStub = new AuthenticateStub();
            ConfigServiceAdminStub configServiceAdminStub = new ConfigServiceAdminStub("https://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTPS_PORT + "/services/ConfigServiceAdmin");
            authenticateStub.authenticateAdminStub(configServiceAdminStub, sessionCookie);
            ArtifactReader artifactReader = new ArtifactReader();
            OMElement omElement = artifactReader.getOMElement(Soap12FCodeEncodeTest.class.getResource("/soap12_fcode_encode.xml").getPath());
            configServiceAdminStub.updateConfiguration(omElement);

            if (FrameworkSettings.STRATOS.equalsIgnoreCase("false")) {
View Full Code Here


    protected void invokeClient() {
        LogViewerStub logViewerStub = null;

        try {
            logViewerStub = new LogViewerStub("https://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTPS_PORT + "/services/LogViewer");
            AuthenticateStub authenticateStub = new AuthenticateStub();
            authenticateStub.authenticateAdminStub(logViewerStub, sessionCookie);
            clientLog = Axis2Client.fireClient("ant jmsclient -Djms_type=text -Djms_payload=\"12.33 1000 ACP\" -Djms_dest=dynamicQueues/JMSTextProxy");

            LogMessage[] logMessages = logViewerStub.getLogs("ALL", "PropertyMediator");
            if (!logMessages[logMessages.length - 1].getLogMessage().contains(searchWord)) {
                Assert.fail("Sample 252 JMSTextProxy Case doesn't work");
View Full Code Here

        log.debug("Running Header mediator SuccessCase ");
        StockQuoteClient stockQuoteClient = new StockQuoteClient();
        OMElement result = null;

        try {
            AuthenticateStub authenticateStub = new AuthenticateStub();
            ConfigServiceAdminStub configServiceAdminStub = new ConfigServiceAdminStub("https://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTPS_PORT + "/services/ConfigServiceAdmin");
            authenticateStub.authenticateAdminStub(configServiceAdminStub, sessionCookie);
            ArtifactReader artifactReader = new ArtifactReader();
            OMElement omElement = artifactReader.getOMElement(HeaderMediatorTests.class.getResource("/header.xml").getPath());
            configServiceAdminStub.updateConfiguration(omElement);

            if (FrameworkSettings.STRATOS.equalsIgnoreCase("false")) {
View Full Code Here

            handleError("Error while launching the Axis2 server with stock quote service", e);
        }
    }

    protected void authenticate(Stub stub) {
        AuthenticateStub authenticateStub = new AuthenticateStub();
        authenticateStub.authenticateAdminStub(stub, sessionCookie);
    }
View Full Code Here

        OMElement result = null;

        StockQuoteClient stockQuoteClient = new StockQuoteClient();

        try {
            AuthenticateStub authenticateStub = new AuthenticateStub();
            ConfigServiceAdminStub configServiceAdminStub = new ConfigServiceAdminStub("https://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTPS_PORT + "/services/ConfigServiceAdmin");
            authenticateStub.authenticateAdminStub(configServiceAdminStub, sessionCookie);
            ArtifactReader artifactReader = new ArtifactReader();
            OMElement omElement = artifactReader.getOMElement(Soap11FCodeClientTest.class.getResource("/soap11_fcode_client.xml").getPath());
            configServiceAdminStub.updateConfiguration(omElement);

            if (FrameworkSettings.STRATOS.equalsIgnoreCase("false")) {
View Full Code Here

        OMElement result = null;

        StockQuoteClient stockQuoteClient = new StockQuoteClient();

        try {
            AuthenticateStub authenticateStub = new AuthenticateStub();
            ConfigServiceAdminStub configServiceAdminStub = new ConfigServiceAdminStub("https://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTPS_PORT + "/services/ConfigServiceAdmin");
            authenticateStub.authenticateAdminStub(configServiceAdminStub, sessionCookie);
            ArtifactReader artifactReader = new ArtifactReader();
            OMElement omElement = artifactReader.getOMElement(Soap12FCodeVrTest.class.getResource("/soap12_fcode_vr.xml").getPath());
            configServiceAdminStub.updateConfiguration(omElement);

            if (FrameworkSettings.STRATOS.equalsIgnoreCase("false")) {
View Full Code Here

    @Override
    public void runSuccessCase() {
        log.debug("Running SuccessCase ");

        try {
            AuthenticateStub authenticateStub = new AuthenticateStub();
            ConfigServiceAdminStub configServiceAdminStub = new ConfigServiceAdminStub("https://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTPS_PORT + "/services/ConfigServiceAdmin");
            authenticateStub.authenticateAdminStub(configServiceAdminStub, sessionCookie);
            ArtifactReader artifactReader = new ArtifactReader();

            OMElement omElement = artifactReader.getOMElement(EventMediatorTest.class.getResource("/event.xml").getPath());

            configServiceAdminStub.updateConfiguration(omElement);
View Full Code Here

        OMElement result = null;

        StockQuoteClient stockQuoteClient = new StockQuoteClient();

        try {
            AuthenticateStub authenticateStub = new AuthenticateStub();
            ConfigServiceAdminStub configServiceAdminStub = new ConfigServiceAdminStub("https://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTPS_PORT + "/services/ConfigServiceAdmin");
            authenticateStub.authenticateAdminStub(configServiceAdminStub, sessionCookie);
            ArtifactReader artifactReader = new ArtifactReader();
            OMElement omElement = artifactReader.getOMElement(Soap12FCodeSenderTest.class.getResource("/soap12_fcode_sender.xml").getPath());
            configServiceAdminStub.updateConfiguration(omElement);

            if (FrameworkSettings.STRATOS.equalsIgnoreCase("false")) {
View Full Code Here

    @Override
    public void runSuccessCase() {
        log.debug("Running SuccessCase");

        try {
            AuthenticateStub authenticateStub = new AuthenticateStub();
            PriorityMediationAdminStub priorityMediationAdminStub = new PriorityMediationAdminStub("https://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTPS_PORT + "/services/PriorityMediationAdmin");
            authenticateStub.authenticateAdminStub(priorityMediationAdminStub, sessionCookie);

            String priorityExConfig = "<priority-executor xmlns=\"http://ws.apache.org/ns/synapse\" name=\"ex\">\n" +
                                      "   <queues>\n" +
                                      "      <queue size=\"34\" priority=\"2\" />\n" +
                                      "      <queue size=\"23\" priority=\"1\" />\n" +
View Full Code Here

    protected void invokeClient() {
        try {
            clientLog = Axis2Client.fireClient("ant stockquote -Daddurl=http://" + HOST_NAME + ":" + HTTP_PORT + "/services/StockQuoteProxy -Dmode=placeorder -Dsymbol=MSFT");

            LogViewerStub logViewerStub = new LogViewerStub("https://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTPS_PORT + "/services/LogViewer");
            AuthenticateStub authenticateStub = new AuthenticateStub();
            authenticateStub.authenticateAdminStub(logViewerStub, sessionCookie);

            LogMessage[] logMessages = logViewerStub.getLogs("ALL", "PropertyMediator");
            if (!logMessages[logMessages.length - 1].getLogMessage().contains(searchWord)) {
                Assert.fail("Sample 251 doesn't work");
                log.error("Sample 251 doesn't work");
View Full Code Here

TOP

Related Classes of org.wso2.carbon.integration.core.AuthenticateStub

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.