Add test case for schema based property support. designer_palette_mod designer_palette_mod2
authorjqian@netbeans.org
Mon, 06 Aug 2007 19:29:48 +0000
changeset 945813187f266dd
parent 944 9a0ec95e597e
child 946 39184d758d09
Add test case for schema based property support.
compapp.manager.jbi/nbproject/project.properties
compapp.manager.jbi/nbproject/project.xml
compapp.manager.jbi/src/org/netbeans/modules/sun/manager/jbi/editors/ComboBoxPropertyEditor.java
compapp.manager.jbi/test/build-qa-functional.xml
compapp.manager.jbi/test/build-unit.xml
compapp.manager.jbi/test/build.xml
compapp.manager.jbi/test/cfg-qa-functional.xml
compapp.manager.jbi/test/cfg-unit.xml
compapp.manager.jbi/test/unit/src/org/netbeans/modules/sun/manager/jbi/nodes/property/SchemaBasedConfigPropertySupportFactoryTest.java
compapp.manager.jbi/test/unit/src/org/netbeans/modules/sun/manager/jbi/nodes/property/resources/sun-http-binding-config.xsd
     1.1 --- a/compapp.manager.jbi/nbproject/project.properties	Mon Aug 06 19:16:42 2007 +0000
     1.2 +++ b/compapp.manager.jbi/nbproject/project.properties	Mon Aug 06 19:29:48 2007 +0000
     1.3 @@ -28,3 +28,16 @@
     1.4  
     1.5  #javac.compilerargs=-Xlint:unchecked
     1.6  javac.source=1.5
     1.7 +
     1.8 +test.unit.cp.extra=\
     1.9 +${netbeans.dest.dir}/soa1/modules/org-netbeans-modules-compapp-manager-jbi.jar:\
    1.10 +${netbeans.dest.dir}/platform7/modules/org-openide-nodes.jar:\
    1.11 +${netbeans.dest.dir}/platform7/modules/org-openide-dialogs.jar:\
    1.12 +${netbeans.dest.dir}/platform7/modules/org-openide-explorer.jar:\
    1.13 +${netbeans.dest.dir}/platform7/lib/org-openide-util.jar:\
    1.14 +${netbeans.dest.dir}/ide8/modules/org-netbeans-modules-xml-xam.jar:\
    1.15 +${netbeans.dest.dir}/ide8/modules/org-netbeans-modules-xml-schema-model.jar:\
    1.16 +${netbeans.dest.dir}/java1/modules/ext/junit-4.1.jar
    1.17 +
    1.18 +    
    1.19 +test.unit.run.cp=${test.unit.cp.extra}
    1.20 \ No newline at end of file
     2.1 --- a/compapp.manager.jbi/nbproject/project.xml	Mon Aug 06 19:16:42 2007 +0000
     2.2 +++ b/compapp.manager.jbi/nbproject/project.xml	Mon Aug 06 19:29:48 2007 +0000
     2.3 @@ -144,5 +144,6 @@
     2.4              </module-dependencies>
     2.5              <public-packages/>
     2.6          </data>
     2.7 +        <junit-version xmlns="http://www.netbeans.org/ns/junit/1" value="junit4"/>
     2.8      </configuration>
     2.9  </project>
     3.1 --- a/compapp.manager.jbi/src/org/netbeans/modules/sun/manager/jbi/editors/ComboBoxPropertyEditor.java	Mon Aug 06 19:16:42 2007 +0000
     3.2 +++ b/compapp.manager.jbi/src/org/netbeans/modules/sun/manager/jbi/editors/ComboBoxPropertyEditor.java	Mon Aug 06 19:29:48 2007 +0000
     3.3 @@ -26,6 +26,7 @@
     3.4  package org.netbeans.modules.sun.manager.jbi.editors;
     3.5  
     3.6  import java.beans.PropertyEditorSupport;
     3.7 +import java.util.Arrays;
     3.8  
     3.9  import org.openide.explorer.propertysheet.ExPropertyEditor;
    3.10  import org.openide.explorer.propertysheet.PropertyEnv;
    3.11 @@ -100,6 +101,14 @@
    3.12              setValue(t);
    3.13          }
    3.14  
    3.15 +        @Override
    3.16 +        public void setValue(Object t) {
    3.17 +            if (!Arrays.asList(vals).contains(t)) {
    3.18 +                throw new IllegalArgumentException("Illegal argument: " + t);
    3.19 +            }
    3.20 +            super.setValue(t);
    3.21 +        }
    3.22 +
    3.23          /**
    3.24           * Describe <code>supportsCustomEditor</code> method here.
    3.25           *
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/compapp.manager.jbi/test/build-qa-functional.xml	Mon Aug 06 19:29:48 2007 +0000
     4.3 @@ -0,0 +1,52 @@
     4.4 +<?xml version="1.0"?>
     4.5 +<!--
     4.6 +The contents of this file are subject to the terms of the Common Development
     4.7 +and Distribution License (the License). You may not use this file except in
     4.8 +compliance with the License.
     4.9 +
    4.10 +You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    4.11 +or http://www.netbeans.org/cddl.txt.
    4.12 +
    4.13 +When distributing Covered Code, include this CDDL Header Notice in each file
    4.14 +and include the License file at http://www.netbeans.org/cddl.txt.
    4.15 +If applicable, add the following below the CDDL Header, with the fields
    4.16 +enclosed by brackets [] replaced by your own identifying information:
    4.17 +"Portions Copyrighted [year] [name of copyright owner]"
    4.18 +
    4.19 +The Original Software is NetBeans. The Initial Developer of the Original
    4.20 +Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
    4.21 +Microsystems, Inc. All Rights Reserved.
    4.22 +-->
    4.23 +<project name="org.netbeans.modules.compapp.manager.jbi/test-qa-functional" basedir="." default="all">
    4.24 +
    4.25 +    <!-- Imports default qa-functional-compiler and runidetest executor.
    4.26 +        jemmy and jellytools jars are on classpath for both. -->
    4.27 +    <import file="../../../../nbbuild/templates/xtest-qa-functional.xml"/>
    4.28 +
    4.29 +    <!-- ========= -->
    4.30 +    <!-- Compilers -->
    4.31 +    <!-- ========= -->
    4.32 +
    4.33 +    <!-- You can override default qa-functional-compiler if you need something special -->
    4.34 +         <!--
    4.35 +    <target name="qa-functional-compiler" depends="init-cp">
    4.36 +        <buildTests srcdir="qa-functional/src" compileexcludes="**/data/**">
    4.37 +            <classpath refid="test.qa-functional.compile.cp"/>
    4.38 +        </buildTests>
    4.39 +    </target>
    4.40 +    -->
    4.41 +    
    4.42 +    <!-- ========= -->
    4.43 +    <!-- Executors -->
    4.44 +    <!-- ========= -->
    4.45 +    
    4.46 +    <!-- This target executes tests inside IDE. It is defined in default-build-qa-functional.xml.
    4.47 +         If you need to customize it, you can uncomment the following and override it.
    4.48 +    <target name="runidetest" depends="init-cp">
    4.49 +        <executeTests pluginname="ide">
    4.50 +            <classpath refid="test.qa-functional.run.cp"/>
    4.51 +        </executeTests>
    4.52 +    </target>
    4.53 +    -->
    4.54 +</project>
    4.55 +
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/compapp.manager.jbi/test/build-unit.xml	Mon Aug 06 19:29:48 2007 +0000
     5.3 @@ -0,0 +1,25 @@
     5.4 +<?xml version="1.0"?>
     5.5 +<!--
     5.6 +The contents of this file are subject to the terms of the Common Development
     5.7 +and Distribution License (the License). You may not use this file except in
     5.8 +compliance with the License.
     5.9 +
    5.10 +You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    5.11 +or http://www.netbeans.org/cddl.txt.
    5.12 +
    5.13 +When distributing Covered Code, include this CDDL Header Notice in each file
    5.14 +and include the License file at http://www.netbeans.org/cddl.txt.
    5.15 +If applicable, add the following below the CDDL Header, with the fields
    5.16 +enclosed by brackets [] replaced by your own identifying information:
    5.17 +"Portions Copyrighted [year] [name of copyright owner]"
    5.18 +
    5.19 +The Original Software is NetBeans. The Initial Developer of the Original
    5.20 +Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
    5.21 +Microsystems, Inc. All Rights Reserved.
    5.22 +-->
    5.23 +<project name="org.netbeans.modules.compapp.manager.jbi/test-unit" basedir="." default="all">
    5.24 +
    5.25 +    <!-- Imports default-compiler, run-unit-test targets referenced from cfg-unit.xml. -->
    5.26 +    <import file="../../../../nbbuild/templates/xtest-unit.xml"/>
    5.27 +</project>
    5.28 +
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/compapp.manager.jbi/test/build.xml	Mon Aug 06 19:29:48 2007 +0000
     6.3 @@ -0,0 +1,45 @@
     6.4 +<?xml version="1.0"?>
     6.5 +<!--
     6.6 +The contents of this file are subject to the terms of the Common Development
     6.7 +and Distribution License (the License). You may not use this file except in
     6.8 +compliance with the License.
     6.9 +
    6.10 +You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    6.11 +or http://www.netbeans.org/cddl.txt.
    6.12 +
    6.13 +When distributing Covered Code, include this CDDL Header Notice in each file
    6.14 +and include the License file at http://www.netbeans.org/cddl.txt.
    6.15 +If applicable, add the following below the CDDL Header, with the fields
    6.16 +enclosed by brackets [] replaced by your own identifying information:
    6.17 +"Portions Copyrighted [year] [name of copyright owner]"
    6.18 +
    6.19 +The Original Software is NetBeans. The Initial Developer of the Original
    6.20 +Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
    6.21 +Microsystems, Inc. All Rights Reserved.
    6.22 +-->
    6.23 +<project name="org.netbeans.modules.compapp.manager.jbi/test" basedir="." default="all">
    6.24 +
    6.25 +    <!-- Name of tested module -->
    6.26 +    <property name="xtest.module" value="org.netbeans.modules.compapp.manager.jbi"/>
    6.27 +
    6.28 +    <!-- Home of XTest 
    6.29 +    <property name="xtest.home" location="C:\Documents and Settings\jqian\.netbeans\6.0m10\xtest-distribution"/>
    6.30 +    -->
    6.31 +
    6.32 +    <!-- Imports buildtests, cleantests, runtest, cleanresults, realclean, printconfig targets. -->
    6.33 +    <import file="../../../../nbbuild/templates/xtest.xml"/>
    6.34 +
    6.35 +    <!-- default testtypes, attributes used when no value is supplied from command line -->
    6.36 +    <property name="xtest.testtype" value="unit"/>
    6.37 +    <property name="xtest.attribs" value="stable"/>
    6.38 +    <!--
    6.39 +    <property name="xtest.testtype" value="qa-functional"/>
    6.40 +    <property name="xtest.attribs" value="stable,validation"/>
    6.41 +    -->
    6.42 +
    6.43 +    <!-- Points to your NetBeans user directory. Optional for IDE tests.  
    6.44 +    <property name="netbeans.user" location="C:\Documents and Settings\jqian\.netbeans\6.0m10"/>
    6.45 +    -->
    6.46 +    
    6.47 +</project>
    6.48 +
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/compapp.manager.jbi/test/cfg-qa-functional.xml	Mon Aug 06 19:29:48 2007 +0000
     7.3 @@ -0,0 +1,36 @@
     7.4 +<?xml version="1.0" encoding="UTF-8"?>
     7.5 +<!--
     7.6 +The contents of this file are subject to the terms of the Common Development
     7.7 +and Distribution License (the License). You may not use this file except in
     7.8 +compliance with the License.
     7.9 +
    7.10 +You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    7.11 +or http://www.netbeans.org/cddl.txt.
    7.12 +
    7.13 +When distributing Covered Code, include this CDDL Header Notice in each file
    7.14 +and include the License file at http://www.netbeans.org/cddl.txt.
    7.15 +If applicable, add the following below the CDDL Header, with the fields
    7.16 +enclosed by brackets [] replaced by your own identifying information:
    7.17 +"Portions Copyrighted [year] [name of copyright owner]"
    7.18 +
    7.19 +The Original Software is NetBeans. The Initial Developer of the Original
    7.20 +Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
    7.21 +Microsystems, Inc. All Rights Reserved.
    7.22 +-->
    7.23 +<!-- Configation file to group tests into testbags. For details see
    7.24 +     http://xtest.netbeans.org/xtest_config.html.
    7.25 +-->
    7.26 +<mconfig name="qa-functional config">
    7.27 +
    7.28 +    <testbag testattribs="validation,stable" executor="ide" name="qa-functional tests">
    7.29 +        <testset dir="qa-functional/src">
    7.30 +            <patternset>
    7.31 +                <include name="**/*Test.class"/>
    7.32 +            </patternset>
    7.33 +        </testset>
    7.34 +    </testbag>
    7.35 +
    7.36 +    <compiler name="qa-functional-compiler" antfile="build-qa-functional.xml"
    7.37 +              target="qa-functional-compiler" default="true"/>
    7.38 +    <executor name="ide" antfile="build-qa-functional.xml" target="runidetest" default="true"/>
    7.39 +</mconfig>
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/compapp.manager.jbi/test/cfg-unit.xml	Mon Aug 06 19:29:48 2007 +0000
     8.3 @@ -0,0 +1,35 @@
     8.4 +<?xml version="1.0" encoding="UTF-8"?>
     8.5 +<!--
     8.6 +The contents of this file are subject to the terms of the Common Development
     8.7 +and Distribution License (the License). You may not use this file except in
     8.8 +compliance with the License.
     8.9 +
    8.10 +You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    8.11 +or http://www.netbeans.org/cddl.txt.
    8.12 +
    8.13 +When distributing Covered Code, include this CDDL Header Notice in each file
    8.14 +and include the License file at http://www.netbeans.org/cddl.txt.
    8.15 +If applicable, add the following below the CDDL Header, with the fields
    8.16 +enclosed by brackets [] replaced by your own identifying information:
    8.17 +"Portions Copyrighted [year] [name of copyright owner]"
    8.18 +
    8.19 +The Original Software is NetBeans. The Initial Developer of the Original
    8.20 +Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
    8.21 +Microsystems, Inc. All Rights Reserved.
    8.22 +-->
    8.23 +<!-- Configation file to group tests into testbags. For details see
    8.24 +     http://xtest.netbeans.org/xtest_config.html
    8.25 +-->
    8.26 +<mconfig name="Unit config">
    8.27 +
    8.28 +    <testbag testattribs="stable" executor="unit-executor" name="unit tests">
    8.29 +        <testset dir="unit/src">
    8.30 +            <patternset>
    8.31 +                <include name="**/*Test.class"/>
    8.32 +            </patternset>
    8.33 +        </testset>
    8.34 +    </testbag>
    8.35 +
    8.36 +    <compiler name="default-compiler" antfile="build-unit.xml" target="default-compiler" default="true"/>
    8.37 +    <executor name="unit-executor" antfile="build-unit.xml" target="run-unit-test" default="true"/>
    8.38 +</mconfig>
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/compapp.manager.jbi/test/unit/src/org/netbeans/modules/sun/manager/jbi/nodes/property/SchemaBasedConfigPropertySupportFactoryTest.java	Mon Aug 06 19:29:48 2007 +0000
     9.3 @@ -0,0 +1,145 @@
     9.4 +/*
     9.5 + * The contents of this file are subject to the terms of the Common Development
     9.6 + * and Distribution License (the License). You may not use this file except in
     9.7 + * compliance with the License.
     9.8 + *
     9.9 + * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    9.10 + * or http://www.netbeans.org/cddl.txt.
    9.11 + *
    9.12 + * When distributing Covered Code, include this CDDL Header Notice in each file
    9.13 + * and include the License file at http://www.netbeans.org/cddl.txt.
    9.14 + * If applicable, add the following below the CDDL Header, with the fields
    9.15 + * enclosed by brackets [] replaced by your own identifying information:
    9.16 + * "Portions Copyrighted [year] [name of copyright owner]"
    9.17 + *
    9.18 + * Portions Copyrighted 2007 Sun Microsystems, Inc.
    9.19 + */
    9.20 +
    9.21 +/*
    9.22 + * SchemaBasedConfigPropertySupportFactoryTest.java
    9.23 + * JUnit 4.x based test
    9.24 + *
    9.25 + * Created on August 3, 2007, 6:54 PM
    9.26 + */
    9.27 +
    9.28 +package org.netbeans.modules.sun.manager.jbi.nodes.property;
    9.29 +
    9.30 +import java.beans.PropertyEditor;
    9.31 +import java.io.BufferedReader;
    9.32 +import java.io.File;
    9.33 +import java.io.FileReader;
    9.34 +import java.io.IOException;
    9.35 +import java.net.URI;
    9.36 +import javax.management.Attribute;
    9.37 +import javax.management.MBeanAttributeInfo;
    9.38 +import junit.framework.TestCase;
    9.39 +import org.netbeans.modules.sun.manager.jbi.editors.ComboBoxPropertyEditor;
    9.40 +import org.netbeans.modules.xml.schema.model.Schema;
    9.41 +import org.openide.nodes.PropertySupport;
    9.42 +
    9.43 +/**
    9.44 + *
    9.45 + * @author jqian
    9.46 + */
    9.47 +public class SchemaBasedConfigPropertySupportFactoryTest extends TestCase {
    9.48 +    
    9.49 +    private Schema schema;
    9.50 +
    9.51 +    public SchemaBasedConfigPropertySupportFactoryTest(String testName) {
    9.52 +        super(testName);
    9.53 +    }
    9.54 +
    9.55 +    protected void setUp() throws Exception {        
    9.56 +        URI xsdURI = getClass().getResource(
    9.57 +                "resources/sun-http-binding-config.xsd").toURI();
    9.58 +        File xsdFile = new File(xsdURI);        
    9.59 +        String schemaText = getContent(xsdFile);
    9.60 +        schema = SchemaBasedConfigPropertySupportFactory.getSchema(schemaText, "whatever");
    9.61 +    }
    9.62 +
    9.63 +    protected void tearDown() throws Exception {        
    9.64 +    }
    9.65 +    
    9.66 +    public void testGetBaseTypeName() {
    9.67 +        // integer
    9.68 +        String type = SchemaBasedConfigPropertySupportFactory.
    9.69 +            getGlobalSimpleTypeName(schema, "OutboundThreads");
    9.70 +        assertEquals(type, "tns:SimpleRestrictedThreadType");
    9.71 +        
    9.72 +        // boolean
    9.73 +        type = SchemaBasedConfigPropertySupportFactory.
    9.74 +            getGlobalSimpleTypeName(schema, "UseJVMProxySettings");
    9.75 +        assertEquals(type, "xsd:boolean");
    9.76 +        
    9.77 +        // string
    9.78 +        type = SchemaBasedConfigPropertySupportFactory.
    9.79 +            getGlobalSimpleTypeName(schema, "ProxyHost");
    9.80 +        assertEquals(type, "tns:SimpleStringType");
    9.81 +
    9.82 +        // string enumeration
    9.83 +        type = SchemaBasedConfigPropertySupportFactory.
    9.84 +            getGlobalSimpleTypeName(schema, "ProxyType");
    9.85 +        assertEquals(type, "tns:ProxyTypeSimpleType");        
    9.86 +    }
    9.87 +
    9.88 +    public void testGetPropertySupport() throws Exception {
    9.89 +        PropertySupport propSupport = SchemaBasedConfigPropertySupportFactory.
    9.90 +            getPropertySupport(schema, null, 
    9.91 +                new Attribute("OutboundThreads", 4), 
    9.92 +                new MBeanAttributeInfo("name", "java.lang.Integer", "description", true, true, false));
    9.93 +        assertTrue(propSupport.getValue() instanceof Integer);
    9.94 +
    9.95 +        propSupport = SchemaBasedConfigPropertySupportFactory.
    9.96 +            getPropertySupport(schema, null, 
    9.97 +                new Attribute("UseJVMProxySettings", true), 
    9.98 +                new MBeanAttributeInfo("name", "java.lang.Boolean", "description", true, true, false));
    9.99 +        assertTrue(propSupport.getValue() instanceof Boolean);
   9.100 +        
   9.101 +        propSupport = SchemaBasedConfigPropertySupportFactory.
   9.102 +            getPropertySupport(schema, null, 
   9.103 +                new Attribute("ProxyHost", "localhost"), 
   9.104 +                new MBeanAttributeInfo("name", "java.lang.String", "description", true, true, false));
   9.105 +        assertTrue(propSupport.getValue() instanceof String);
   9.106 +        assertFalse(propSupport.getPropertyEditor() instanceof ComboBoxPropertyEditor);
   9.107 +
   9.108 +        propSupport = SchemaBasedConfigPropertySupportFactory.
   9.109 +            getPropertySupport(schema, null, 
   9.110 +                new Attribute("ProxyType", "SOCKS"), 
   9.111 +                new MBeanAttributeInfo("name", "java.lang.String", "description", true, true, false));
   9.112 +        assertTrue(propSupport.getValue() instanceof String);
   9.113 +        PropertyEditor propEditor = propSupport.getPropertyEditor();
   9.114 +        assertTrue(propEditor instanceof ComboBoxPropertyEditor);
   9.115 +        ((ComboBoxPropertyEditor) propEditor).setValue("HTTP");
   9.116 +        try {
   9.117 +            ((ComboBoxPropertyEditor) propEditor).setValue("INVALID_VALUE");
   9.118 +            assertTrue(false);
   9.119 +        } catch (IllegalArgumentException e) {
   9.120 +            // expected
   9.121 +        }
   9.122 +    }
   9.123 +
   9.124 +
   9.125 +    private String getContent(File file) {
   9.126 +        String ret = "";
   9.127 +
   9.128 +        BufferedReader is = null;
   9.129 +        try {
   9.130 +            is = new BufferedReader(new FileReader(file));
   9.131 +            String inputLine;
   9.132 +            while ((inputLine = is.readLine()) != null) {
   9.133 +                ret += inputLine;
   9.134 +            }
   9.135 +        } catch (IOException e) {
   9.136 +            System.out.println("IOException: " + e);
   9.137 +        } finally {
   9.138 +            if (is != null) {
   9.139 +                try {
   9.140 +                    is.close();
   9.141 +                } catch (Exception e) {
   9.142 +                }
   9.143 +            }
   9.144 +        }
   9.145 +
   9.146 +        return ret;
   9.147 +   }    
   9.148 +}
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/compapp.manager.jbi/test/unit/src/org/netbeans/modules/sun/manager/jbi/nodes/property/resources/sun-http-binding-config.xsd	Mon Aug 06 19:29:48 2007 +0000
    10.3 @@ -0,0 +1,173 @@
    10.4 +<?xml version="1.0" encoding="UTF-8"?>
    10.5 +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    10.6 +            targetNamespace="http://com.sun.jbi.component/schema/configuration"
    10.7 +            xmlns:tns="http://com.sun.jbi.component/schema/configuration"
    10.8 +            attributeFormDefault="unqualified"
    10.9 +            elementFormDefault="qualified">
   10.10 +   
   10.11 +    <xsd:element name="Configuration"
   10.12 +                 type="tns:ConfigurationType"/>
   10.13 +   
   10.14 +    <xsd:complexType name="ConfigurationType">
   10.15 +        <xsd:sequence>
   10.16 +            <xsd:element type="tns:ThreadType" name="OutboundThreads">
   10.17 +            </xsd:element>
   10.18 +           
   10.19 +            <xsd:element type="tns:HttpPortType" name="HttpDefaultPort">
   10.20 +            </xsd:element>
   10.21 +           
   10.22 +            <xsd:element type="tns:HttpPortType" name="HttpsDefaultPort">
   10.23 +            </xsd:element>
   10.24 +           
   10.25 +            <xsd:element type="tns:UseJVMProxySettingsType" name="UseJVMProxySettings">
   10.26 +            </xsd:element>
   10.27 +           
   10.28 +            <xsd:element type="tns:ProxyTypeType" name="ProxyType">
   10.29 +            </xsd:element>
   10.30 +           
   10.31 +            <xsd:element type="tns:ProxyHostType" name="ProxyHost">
   10.32 +            </xsd:element>
   10.33 +           
   10.34 +            <xsd:element type="tns:ProxyPortType" name="ProxyPort">
   10.35 +            </xsd:element>
   10.36 +           
   10.37 +            <xsd:element type="tns:nonProxyHostsType" name="NonProxyHosts">
   10.38 +            </xsd:element>
   10.39 +           
   10.40 +            <xsd:element type="tns:ProxyUserNameType" name="ProxyUserName">
   10.41 +            </xsd:element>
   10.42 +           
   10.43 +            <xsd:element type="tns:ProxyPasswordType" name="ProxyPassword">
   10.44 +            </xsd:element>
   10.45 +        </xsd:sequence>
   10.46 +        <xsd:attribute type="xsd:string" name="name"/>
   10.47 +    </xsd:complexType>
   10.48 +   
   10.49 +    <xsd:complexType name="ThreadType">
   10.50 +        <xsd:simpleContent>
   10.51 +            <xsd:extension base="tns:SimpleRestrictedThreadType">
   10.52 +                <xsd:attribute type="xsd:string" name="displayName"/>
   10.53 +                <xsd:attribute type="xsd:string" name="displayDescription"/>
   10.54 +                <xsd:attribute type="xsd:boolean" name="isPasswordField"/>
   10.55 +            </xsd:extension>
   10.56 +        </xsd:simpleContent>
   10.57 +    </xsd:complexType>
   10.58 +   
   10.59 +     <xsd:simpleType name="SimpleRestrictedThreadType">
   10.60 +        <xsd:restriction base="xsd:int">
   10.61 +            <xsd:minInclusive value="1"/>
   10.62 +            <xsd:maxInclusive value="2147483647"/>
   10.63 +        </xsd:restriction>
   10.64 +    </xsd:simpleType>
   10.65 +   
   10.66 +    <xsd:complexType name="HttpPortType">
   10.67 +        <xsd:simpleContent>
   10.68 +            <xsd:extension base="tns:HttpPortSimpleType">
   10.69 +                <xsd:attribute type="xsd:string" name="displayName"/>
   10.70 +                <xsd:attribute type="xsd:string" name="displayDescription"/>
   10.71 +                <xsd:attribute type="xsd:boolean" name="isPasswordField"/>
   10.72 +            </xsd:extension>
   10.73 +        </xsd:simpleContent>
   10.74 +    </xsd:complexType>
   10.75 +   
   10.76 +    <xsd:simpleType name="HttpPortSimpleType">
   10.77 +        <xsd:restriction base="xsd:int">
   10.78 +            <xsd:totalDigits value="5"/>
   10.79 +            <xsd:minInclusive value="-1"/>
   10.80 +            <xsd:maxInclusive value="65536"/>
   10.81 +        </xsd:restriction>
   10.82 +    </xsd:simpleType>
   10.83 +   
   10.84 +    <xsd:complexType name="ProxyPortType">
   10.85 +        <xsd:simpleContent>
   10.86 +            <xsd:extension base="tns:ProxyPortSimpleType">
   10.87 +                <xsd:attribute type="xsd:string" name="displayName"/>
   10.88 +                <xsd:attribute type="xsd:string" name="displayDescription"/>
   10.89 +                <xsd:attribute type="xsd:boolean" name="isPasswordField"/>
   10.90 +            </xsd:extension>
   10.91 +        </xsd:simpleContent>
   10.92 +    </xsd:complexType>
   10.93 +   
   10.94 +    <xsd:simpleType name="ProxyPortSimpleType">
   10.95 +        <xsd:restriction base="xsd:int">
   10.96 +            <xsd:totalDigits value="5"/>
   10.97 +            <xsd:minInclusive value="0"/>
   10.98 +            <xsd:maxInclusive value="65536"/>
   10.99 +        </xsd:restriction>
  10.100 +    </xsd:simpleType>
  10.101 +   
  10.102 +    <xsd:complexType name="UseJVMProxySettingsType">
  10.103 +        <xsd:simpleContent>
  10.104 +            <xsd:extension base="xsd:boolean">
  10.105 +                <xsd:attribute type="xsd:string" name="displayName"/>
  10.106 +                <xsd:attribute type="xsd:string" name="displayDescription"/>
  10.107 +                <xsd:attribute type="xsd:boolean" name="isPasswordField"/>
  10.108 +            </xsd:extension>
  10.109 +        </xsd:simpleContent>
  10.110 +    </xsd:complexType>
  10.111 +   
  10.112 +    <xsd:complexType name="ProxyTypeType">
  10.113 +        <xsd:simpleContent>
  10.114 +            <xsd:extension base="tns:ProxyTypeSimpleType">
  10.115 +                <xsd:attribute type="xsd:string" name="displayName"/>
  10.116 +                <xsd:attribute type="xsd:string" name="displayDescription"/>
  10.117 +                <xsd:attribute type="xsd:boolean" name="isPasswordField"/>
  10.118 +            </xsd:extension>
  10.119 +        </xsd:simpleContent>
  10.120 +    </xsd:complexType>
  10.121 +   
  10.122 +    <xsd:simpleType name="ProxyTypeSimpleType">
  10.123 +        <xsd:restriction base="xsd:string">
  10.124 +            <xsd:enumeration value="SOCKS"/>
  10.125 +            <xsd:enumeration value="HTTP"/>
  10.126 +            <xsd:enumeration value="DIRECT"/>
  10.127 +        </xsd:restriction>
  10.128 +    </xsd:simpleType>
  10.129 +   
  10.130 +    <xsd:complexType name="ProxyHostType">
  10.131 +        <xsd:simpleContent>
  10.132 +            <xsd:extension base="tns:SimpleStringType">
  10.133 +                <xsd:attribute type="xsd:string" name="displayName"/>
  10.134 +                <xsd:attribute type="xsd:string" name="displayDescription"/>
  10.135 +                <xsd:attribute type="xsd:boolean" name="isPasswordField"/>
  10.136 +            </xsd:extension>
  10.137 +        </xsd:simpleContent>
  10.138 +    </xsd:complexType>
  10.139 +   
  10.140 +    <xsd:complexType name="nonProxyHostsType">
  10.141 +        <xsd:simpleContent>
  10.142 +            <xsd:extension base="tns:SimpleStringType">
  10.143 +                <xsd:attribute type="xsd:string" name="displayName"/>
  10.144 +                <xsd:attribute type="xsd:string" name="displayDescription"/>
  10.145 +                <xsd:attribute type="xsd:boolean" name="isPasswordField"/>
  10.146 +            </xsd:extension>
  10.147 +        </xsd:simpleContent>
  10.148 +    </xsd:complexType>
  10.149 +   
  10.150 +    <xsd:complexType name="ProxyUserNameType">
  10.151 +        <xsd:simpleContent>
  10.152 +            <xsd:extension base="tns:SimpleStringType">
  10.153 +                <xsd:attribute type="xsd:string" name="displayName"/>
  10.154 +                <xsd:attribute type="xsd:string" name="displayDescription"/>
  10.155 +                <xsd:attribute type="xsd:boolean" name="isPasswordField"/>
  10.156 +            </xsd:extension>
  10.157 +        </xsd:simpleContent>
  10.158 +    </xsd:complexType>
  10.159 +   
  10.160 +   
  10.161 +    <xsd:complexType name="ProxyPasswordType">
  10.162 +        <xsd:simpleContent>
  10.163 +            <xsd:extension base="tns:SimpleStringType">
  10.164 +                <xsd:attribute type="xsd:string" name="displayName"/>
  10.165 +                <xsd:attribute type="xsd:string" name="displayDescription"/>
  10.166 +                <xsd:attribute type="xsd:boolean" name="isPasswordField"/>
  10.167 +            </xsd:extension>
  10.168 +        </xsd:simpleContent>
  10.169 +    </xsd:complexType>
  10.170 +   
  10.171 +    <xsd:simpleType name="SimpleStringType">
  10.172 +        <xsd:restriction base="xsd:string">
  10.173 +        </xsd:restriction>
  10.174 +    </xsd:simpleType>
  10.175 +   
  10.176 +</xsd:schema>
  10.177 \ No newline at end of file