Package com.eviware.soapui.impl.wsdl

Examples of com.eviware.soapui.impl.wsdl.WsdlProject


    private WsdlProject project;

    @Before
    public void setUp() throws XmlException, IOException, SoapUIException {
        MockitoAnnotations.initMocks(this);
        project = new WsdlProject();
    }
View Full Code Here


        table.addProperty("Name", "name", true);
        table.addProperty("Description", "description", true);
        table.addProperty("Message Size", "contentLength", false);
        table.addProperty("Encoding", "encoding", new String[]{null, "UTF-8", "iso-8859-1"});

        WsdlProject project = mockResponse.getMockOperation().getMockService().getProject();
        StringList outgoingNames = new StringList(project.getWssContainer().getOutgoingWssNames());
        outgoingNames.add("");
        table.addProperty("Outgoing WSS", "outgoingWss", outgoingNames.toStringArray());

        // attachments
        table.addProperty("Enable MTOM", "mtomEnabled", JPropertiesTable.BOOLEAN_OPTIONS);
View Full Code Here

        boolean hasRunningTests = SoapUI.getTestMonitor().hasRunningLoadTest(getModelItem())
                || SoapUI.getTestMonitor().hasRunningSecurityTest(getModelItem());
        stateDependantComponents.setEnabled(!hasRunningTests);

        //disable setting endpoint if in environment mode
        WsdlProject project = getModelItem().getTestSuite().getProject();
        if (project.isEnvironmentMode()) {
            getSetEndpointButton().setEnabled(false);
        } else {
            getSetEndpointButton().setEnabled(!hasRunningTests);
        }
    }
View Full Code Here

    public void setUp() throws Exception {
        workspaceFile = new File(TEST_WORKSPACE_FILE_PATH);
        workspace = new WorkspaceImpl(workspaceFile.getAbsolutePath(), null);

        projectFile = new File(TEST_PROJECT_FILE_PATH);
        WsdlProject project = workspace.createProject("Test Project", null);
        project.saveAs(projectFile.getAbsolutePath());

        workspace.save(false);
    }
View Full Code Here

        when(mockedDialog.getFormField(fieldName)).thenReturn(fileFormField);
    }

    private void setUpProject() throws URISyntaxException, XmlException, IOException, SoapUIException {
        String fileNameWithPath = getFilePathFromResource("/soapui-projects/BasicMock-soapui-4.6.3-Project.xml");
        project = new WsdlProject(fileNameWithPath);
        ModelItemFactory.makeRestMockService(project);
    }
View Full Code Here

        table.addProperty("Match SOAP Version", "requireSoapVersion", JPropertiesTable.BOOLEAN_OPTIONS).setDescription(
                "Matches incoming SOAP Version against corresponding Interface");
        table.addProperty("Require SOAP Action", "requireSoapAction", JPropertiesTable.BOOLEAN_OPTIONS);
        table.addProperty("Dispatch Responses", "dispatchResponseMessages", JPropertiesTable.BOOLEAN_OPTIONS);

        WsdlProject project = mockService.getProject();
        StringList incomingNames = new StringList(project.getWssContainer().getIncomingWssNames());
        incomingNames.add("");
        table.addProperty("Incoming WSS", "incomingWss", incomingNames.toStringArray());
        StringList outgoingNames = new StringList(project.getWssContainer().getOutgoingWssNames());
        outgoingNames.add("");
        table.addProperty("Default Outgoing WSS", "outgoingWss", outgoingNames.toStringArray());
        table.setPropertyObject(mockService);

        return table;
View Full Code Here

        categoriesListRenderer.setAssertable(assertable);
        selectionListener = new InternalListSelectionListener();
        categoriesAssertionsMap = AssertionCategoryMapping
                .getCategoriesAssertionsMap(assertable, recentAssertionHandler);
        // load interfaces or have a issue with table and cell renderer
        WsdlProject project = (WsdlProject) ModelSupport.getModelItemProject(assertable.getModelItem());
        for (Interface inf : project.getInterfaceList()) {
            try {
                // There seems to be no good reason to load the definitions for rest interfaces
                // hence that call has been removed for the time being.
                if (inf instanceof WsdlInterface) {
                    ((WsdlInterface) inf).getWsdlContext().loadIfNecessary();
View Full Code Here

    private OAuth2Profile oAuth2Profile;
    private String projectFileName = "OAuthTestProject.xml";

    @Before
    public void setUp() throws XmlException, IOException, SoapUIException {
        WsdlProject project = createNewProjectWithRESTInterface();

        oAuth2Profile = project.getOAuth2ProfileContainer().addNewOAuth2Profile(PROFILE_NAME);
        oAuth2Profile.setClientID("google");
        oAuth2Profile.setAccessTokenURI("http://google.com/accessTokenURI");
        oAuth2Profile.setAuthorizationURI("http://google.com/auth");
        oAuth2Profile.setClientSecret("XYSDKMLL");
        oAuth2Profile.setAccessToken("ACDFECDSFKJFK#SDFSD8df");
        oAuth2Profile.setScope("google.com/calendar/read");

        project.saveAs(projectFileName);
    }
View Full Code Here

        }
    }

    @Test
    public void theProfileListIsEmptyByDefault() throws XmlException, IOException, SoapUIException {
        WsdlProject project = createNewProjectWithRESTInterface();

        assertThat(project.getOAuth2ProfileContainer().getOAuth2ProfileList(), is(empty()));
    }
View Full Code Here

    }


    @Test
    public void basicOAuthConfigIsProjectSpecific() throws Exception {
        WsdlProject retrievedProject = new WsdlProject(projectFileName);

        assertThat(retrievedProject.getOAuth2ProfileContainer().getOAuth2ProfileList().size(), is(1));
        OAuth2Profile savedOAuth2Profile = retrievedProject.getOAuth2ProfileContainer().getOAuth2ProfileList().get(0);

        assertOAuth2ProfileFields(savedOAuth2Profile);

    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.WsdlProject

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.