Package com.volantis.schema

Examples of com.volantis.schema.SchemaTestBuilder


     *
     * @return The test suite.
     */
    public static Test suite() {

        SchemaTestBuilder builder = XDIMECommonTests.getSchemaTestBuilder(
                XDIMESchemata.ALL_XDIME_CP_SCHEMATA);
        builder.useClass(XDIMECPTestCase.class);

        builder.addInvalidDocument("xml/unknown-link.xml",
                new InvalidContentStartingWith("link"));

        return builder.getSuite();
    }
View Full Code Here


     * @return The test builder.
     */
    public static SchemaTestBuilder getSchemaTestBuilder(
            final Schemata schemata) {

        SchemaTestBuilder builder = new SchemaTestBuilder(
                XDIMECommonTests.class, schemata);
        builder.addValidDocument("xml/simple.xml");
        builder.addValidDocument("xml/meta-in-body.xml");
        builder.addValidDocument("xml/meta-in-head.xml");
        builder.addValidDocument("xml/di-select-in-body.xml");
        builder.addInvalidDocument("xml/no-title.xml",
                new ContentNotCompleteOneChild("head",
                        "http://www.w3.org/2002/06/xhtml2", "title"));

        return builder;
    }
View Full Code Here

     *
     * @return The test suite.
     */
    public static Test suite() {

        SchemaTestBuilder builder
            = new SchemaTestBuilder(WidgetsTestCase.class, XDIMESchemata.ALL_XDIME2_SCHEMATA);

        builder.addInvalidDocument("xml/no-such-widget.xdime",
                new NoDeclarationFor("widget:no-such-widget"));

        // Uncomment all tests when the schema is fixed
        // builder.addValidDocument("xml/autocomplete.xdime");
        builder.addValidDocument("xml/carousel.xdime");
        builder.addValidDocument("xml/date-picker.xdime");
        //builder.addValidDocument("xml/dynamicmenu.xdime");
        //builder.addValidDocument("xml/field-expander.xdime");
        builder.addValidDocument("xml/folding-item.xdime");
        //builder.addValidDocument("xml/item-gallery.xdime");
        //builder.addValidDocument("xml/map.xdime");
        //builder.addValidDocument("xml/multiple-validator.xdime");
        //builder.addValidDocument("xml/popup.xdime");
        builder.addValidDocument("xml/progressbar.xdime");
        //builder.addValidDocument("xml/simple-validator.xdime");
        //builder.addValidDocument("xml/tabs.xdime");
        builder.addValidDocument("xml/ticker-tape.xdime");
        //builder.addValidDocument("xml/wizard.xdime");
        builder.addValidDocument("xml/map-location-markers.xdime");       
        builder.addValidDocument("xml/date-picker.xdime");
        builder.addValidDocument("xml/digital-clock.xdime");
        builder.addValidDocument("xml/stopwatch.xdime");
        builder.addValidDocument("xml/timer.xdime");
        builder.addValidDocument("xml/deck.xdime");
        builder.addValidDocument("xml/ajax-deck.xdime");
        builder.addValidDocument("xml/table.xdime");
        builder.addValidDocument("xml/ajax-table.xdime");
       
        return builder.getSuite();
    }
View Full Code Here

     *
     * @return The test suite.
     */
    public static Test suite() {

        SchemaTestBuilder builder = XDIMECommonTests.getSchemaTestBuilder(
                XDIMESchemata.ALL_XDIME2_SCHEMATA);
        builder.useClass(XDIME2TestCase.class);

        builder.addValidDocument("xml/link.xml");

        return builder.getSuite();
    }
View Full Code Here

TOP

Related Classes of com.volantis.schema.SchemaTestBuilder

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.