Package com.eviware.soapui.impl.settings

Examples of com.eviware.soapui.impl.settings.XmlBeansSettingsImpl


      boolean forLoadTest )
  {
    super( method, callConfig, forLoadTest );
    this.forLoadTest = forLoadTest;

    setSettings( new XmlBeansSettingsImpl( this, testStep.getSettings(), callConfig.getSettings() ) );

    this.testStep = testStep;

    initAssertions();
View Full Code Here


        enableRecordingCheckBox = new JCheckBox("Auto-Create");
        enableRecordingCheckBox.setToolTipText("Automatically create Representations from received Responses");
        enableRecordingCheckBox.setOpaque(false);
        UISupport.setFixedSize(enableRecordingCheckBox, 150, 20);
        toolbar.addFixed(enableRecordingCheckBox);
        XmlBeansSettingsImpl settings = getMethod().getSettings();
        if (settings.isSet(RECORD_RESPONSE_REPRESENTATIONS)) {
            enableRecordingCheckBox.setSelected(settings.getBoolean(RECORD_RESPONSE_REPRESENTATIONS));
        } else {
            enableRecordingCheckBox.setSelected(getMethod().getResource() == null
                    || getMethod().getResource().getService().isGenerated());
        }
View Full Code Here

        enableRecordingCheckBox = new JCheckBox("Auto-Create");
        enableRecordingCheckBox.setToolTipText("Automatically create Representations from sent Requests");
        enableRecordingCheckBox.setOpaque(false);
        UISupport.setFixedSize(enableRecordingCheckBox, 100, 20);
        toolbar.addFixed(enableRecordingCheckBox);
        XmlBeansSettingsImpl settings = request.getSettings();
        if (settings.isSet(RECORD_REQUEST_REPRESENTATIONS)) {
            enableRecordingCheckBox.setSelected(settings.getBoolean(RECORD_REQUEST_REPRESENTATIONS));
        } else {
            enableRecordingCheckBox.setSelected(getMethod().getResource() == null
                    || getMethod().getResource().getService().isGenerated());
        }
View Full Code Here

        // password, etc ), so do not encrypt it again.
        return projectDocument.getSoapuiProject().getEncryptedContent() == null;
    }

    private void removeProjectRoot(SoapuiProjectDocumentConfig projectDocument) {
        XmlBeansSettingsImpl tempSettings = new XmlBeansSettingsImpl(this, null, projectDocument.getSoapuiProject()
                .getSettings());
        tempSettings.clearSetting(ProjectSettings.PROJECT_ROOT);
    }
View Full Code Here

                                 Header responseContentTypeHeader, String requestContent) {
        if (context.hasProperty("PreWssProcessedDocument")) {
            requestContent = String.valueOf(context.getProperty("PreWssProcessedDocument"));
        }

        XmlBeansSettingsImpl settings = request.getSettings();
        if (!settings.getBoolean(WsdlRequest.INLINE_RESPONSE_ATTACHMENTS) && responseContentTypeHeader != null
                && responseContentTypeHeader.getValue().toUpperCase().startsWith("MULTIPART")) {
            return new WsdlMimeMessageResponse(request, httpMethod, requestContent, context);
        } else {
            return new WsdlSinglePartHttpResponse(request, httpMethod, requestContent, context);
        }
View Full Code Here

            lastSettingsLoad = 0;
        }

        if (settingsDocument.getSoapuiSettings() == null) {
            settingsDocument.addNewSoapuiSettings();
            settings = new XmlBeansSettingsImpl(null, null, settingsDocument.getSoapuiSettings());

            initDefaultSettings(settings);
        } else {
            settings = new XmlBeansSettingsImpl(null, null, settingsDocument.getSoapuiSettings());
        }

        this.settingsFile = settingsFile.getAbsolutePath();

        if (!settings.isSet(WsdlSettings.EXCLUDED_TYPES)) {
View Full Code Here

            workspaceConfig = SoapuiWorkspaceDocumentConfig.Factory.parse(file);
            if (workspaceConfig.getSoapuiWorkspace().getSettings() == null) {
                workspaceConfig.getSoapuiWorkspace().addNewSettings();
            }
            setPath(file.getAbsolutePath());
            settings = new XmlBeansSettingsImpl(this, SoapUI.getSettings(), workspaceConfig.getSoapuiWorkspace()
                    .getSettings());

            boolean closeOnStartup = getSettings().getBoolean(UISettings.CLOSE_PROJECTS);
            List<WorkspaceProjectConfig> projects = workspaceConfig.getSoapuiWorkspace().getProjectList();
            for (WorkspaceProjectConfig wsc : projects) {
                String str = PathUtils.denormalizePath(wsc.getStringValue());

                str = PathUtils.adjustRelativePath(str, getProjectRoot(), this);

                try {
                    WsdlProject project = (WsdlProject) ProjectFactoryRegistry.getProjectFactory("wsdl").createNew(str,
                            this, !closeOnStartup && wsc.getStatus() != Status.CLOSED && wsc.getType() != Type.REMOTE,
                            wsc.getName(), null);

                    projectList.add(project);
                } catch (Exception e) {
                    UISupport.showErrorMessage(messages.get("FailedToLoadProjectInWorkspace", str) + e.getMessage());

                    SoapUI.logError(e);
                }
            }
        } else {
            workspaceConfig = SoapuiWorkspaceDocumentConfig.Factory.newInstance();
            workspaceConfig.addNewSoapuiWorkspace().setName(messages.get("DefaultWorkspaceName"));
            workspaceConfig.getSoapuiWorkspace().addNewSettings();

            settings = new XmlBeansSettingsImpl(this, SoapUI.getSettings(), workspaceConfig.getSoapuiWorkspace()
                    .getSettings());
        }
    }
View Full Code Here

    private CompressedStringConfig compressedStringConfig;

    @Before
    public void setUp() {
        WsdlMockOperation mockOperation = mock(WsdlMockOperation.class);
        XmlBeansSettingsImpl mockedSettings = mock(XmlBeansSettingsImpl.class);
        when(mockOperation.getSettings()).thenReturn(mockedSettings);

        compressedStringConfig = mock(CompressedStringConfig.class);

        MockResponseConfig mockResponseConfig = mock(MockResponseConfig.class);
View Full Code Here

            conflicts.setLayout(new BorderLayout());
            auto = new JCheckBox("Auto-Resolve");
            auto.setToolTipText("Automatically modify inferred schema from received Responses");
            auto.setOpaque(false);
            UISupport.setFixedSize(auto, 120, 20);
            XmlBeansSettingsImpl settings = getRequest().getSettings();
            if (settings.isSet(AUTO_INFER_SCHEMAS)) {
                auto.setSelected(settings.getBoolean(AUTO_INFER_SCHEMAS));
            }
            auto.addItemListener(new ItemListener() {
                public void itemStateChanged(ItemEvent e) {
                    getRequest().getSettings().setBoolean(AUTO_INFER_SCHEMAS, auto.isSelected());
                }
View Full Code Here

    public WsdlTestRequest(WsdlOperation operation, WsdlRequestConfig callConfig, WsdlTestRequestStep testStep,
                           boolean forLoadTest) {
        super(operation, callConfig, forLoadTest);
        this.forLoadTest = forLoadTest;

        setSettings(new XmlBeansSettingsImpl(this, testStep.getSettings(), callConfig.getSettings()));

        this.testStep = testStep;

        initAssertions();
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.settings.XmlBeansSettingsImpl

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.