Examples of ToolSpec


Examples of org.apache.cxf.tools.common.toolspec.ToolSpec

    public TestUtils() {
       
    }
   
    public TestUtils(String toolName, InputStream in) throws Exception {
        ToolSpec spec = new ToolSpec(in, false);
        CommandLineParser parser = new CommandLineParser(spec);
        String usage = parser.getUsage();
        mUsage = "Usage : " + toolName + " " + usage;
        mDetailedUsage = toolName + " " + usage + System.getProperty("line.separator")
                          + System.getProperty("line.separator");
View Full Code Here

Examples of org.apache.cxf.tools.common.toolspec.ToolSpec

    private CommandLineParser parser;

    @Before
    public void setUp() throws Exception {
        String tsSource = "/org/apache/cxf/tools/common/toolspec/parser/resources/testtool.xml";
        ToolSpec toolspec = new ToolSpec(getClass().getResourceAsStream(tsSource), true);

        parser = new CommandLineParser(toolspec);
    }
View Full Code Here

Examples of org.apache.cxf.tools.common.toolspec.ToolSpec

    }

    @Test
    public void testOtherMethods() throws Exception {
        String tsSource = "/org/apache/cxf/tools/common/toolspec/parser/resources/testtool.xml";
        ToolSpec toolspec = new ToolSpec(getClass().getResourceAsStream(tsSource), false);
        CommandLineParser commandLineParser = new CommandLineParser(null);
        commandLineParser.setToolSpec(toolspec);
        CommandDocument commandDocument = commandLineParser.parseArguments("-r unknown");
        assertTrue(commandDocument != null);
    }
View Full Code Here

Examples of org.apache.cxf.tools.common.toolspec.ToolSpec

                list.add(file.getCanonicalPath());
                String[] pargs = list.toArray(new String[list.size()]);
               
                InputStream toolspecStream = WSDLValidator.class
                    .getResourceAsStream("wsdlvalidator.xml");
                ToolSpec spec = new ToolSpec(toolspecStream, false);
                toolspecStream.close();
                WSDLValidator validator = new WSDLValidator(spec);
                validator.setArguments(pargs);
                boolean ok = validator.executeForMaven();
                if (!ok) {
View Full Code Here

Examples of org.apache.cxf.tools.common.toolspec.ToolSpec

                list.add(file.getCanonicalPath());
                String[] pargs = list.toArray(new String[list.size()]);
               
                InputStream toolspecStream = WSDLValidator.class
                    .getResourceAsStream("wsdlvalidator.xml");
                ToolSpec spec = new ToolSpec(toolspecStream, false);
                toolspecStream.close();
                WSDLValidator validator = new WSDLValidator(spec);
                validator.setArguments(pargs);
                boolean ok = validator.executeForMaven();
                if (!ok) {
View Full Code Here

Examples of org.apache.cxf.tools.common.toolspec.ToolSpec

        junit.textui.TestRunner.run(CommandLineParserTest.class);
    }

    public void setUp() throws Exception {
        String tsSource = "/org/apache/cxf/tools/common/toolspec/parser/resources/testtool.xml";
        ToolSpec toolspec = new ToolSpec(getClass().getResourceAsStream(tsSource), true);

        parser = new CommandLineParser(toolspec);
    }
View Full Code Here

Examples of org.apache.cxf.tools.common.toolspec.ToolSpec

                     .replaceAll(" ", "").replaceAll("\\\t", ""));
    }

    public void testOtherMethods() throws Exception {
        String tsSource = "/org/apache/cxf/tools/common/toolspec/parser/resources/testtool.xml";
        ToolSpec toolspec = new ToolSpec(getClass().getResourceAsStream(tsSource), false);
        CommandLineParser commandLineParser = new CommandLineParser(null);
        commandLineParser.setToolSpec(toolspec);
        CommandDocument commandDocument = commandLineParser.parseArguments("-r unknown");
        assertTrue(commandDocument != null);
    }
View Full Code Here

Examples of org.apache.cxf.tools.common.toolspec.ToolSpec

            getLog().debug("Calling wsdlvalidator with args: " + list);
            try {
                list.add(file.getCanonicalPath());
                String[] pargs = list.toArray(new String[list.size()]);
               
                ToolSpec spec = null;
                InputStream toolspecStream = null;
                try {
                    toolspecStream = WSDLValidator.class .getResourceAsStream("wsdlvalidator.xml");
                    spec = new ToolSpec(toolspecStream, false);
                } finally {
                    if (toolspecStream != null) {
                        toolspecStream.close();
                    }
                }
View Full Code Here

Examples of org.apache.cxf.tools.common.toolspec.ToolSpec

    public TestUtils() {
       
    }
   
    public TestUtils(String toolName, InputStream in) throws Exception {
        ToolSpec spec = new ToolSpec(in, false);
        CommandLineParser parser = new CommandLineParser(spec);
        String usage = parser.getUsage();
        mUsage = "Usage : " + toolName + " " + usage;
        mDetailedUsage = toolName + " " + usage + System.getProperty("line.separator")
                          + System.getProperty("line.separator");
View Full Code Here

Examples of org.apache.cxf.tools.common.toolspec.ToolSpec

    private CommandLineParser parser;

    @Before
    public void setUp() throws Exception {
        String tsSource = "/org/apache/cxf/tools/common/toolspec/parser/resources/testtool.xml";
        ToolSpec toolspec = new ToolSpec(getClass().getResourceAsStream(tsSource), true);

        parser = new CommandLineParser(toolspec);
    }
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.