Package com.dtolabs.rundeck.core.plugins.configuration

Examples of com.dtolabs.rundeck.core.plugins.configuration.Property


            assertEquals("name is required", e.getMessage());
        }
    }

    public void testBasic() {
        Property test = PropertyBuilder.builder()
            .type(Property.Type.String)
            .name("test")
            .build();

        assertProperty(test, "test", Property.Type.String, null, null, null, null, null, false, false);
View Full Code Here


        }
        assertEquals(required, test.isRequired());
    }

    public void testStringProperties() {
        Property test = PropertyBuilder.builder()
            .type(Property.Type.String)
            .name("test")
            .description("desc test")
            .defaultValue("def test")
            .title("title test")
View Full Code Here

                       true,
                       true);
    }

    public void testSelectValues() {
        Property test = PropertyBuilder.builder()
            .type(Property.Type.Select)
            .name("test")
            .description("desc test")
            .defaultValue("def test")
            .title("title test")
View Full Code Here

                       true, //select validator
                       true);
    }

    public void testFreeSelectValues() {
        Property test = PropertyBuilder.builder()
            .type(Property.Type.FreeSelect)
            .name("test")
            .description("desc test")
            .defaultValue("def test")
            .title("title test")
View Full Code Here

                       false,
                       true);
    }

    public void testFactoryTypesBool() {
        Property test = PropertyBuilder.builder()
            .booleanType("test")
            .name("test")
            .build();

        assertProperty(test,
View Full Code Here

                       true, //boolean validator
                       false);
    }

    public void testFactoryTypesString() {
        Property test = PropertyBuilder.builder()
            .string("test")
            .name("test")
            .build();

        assertProperty(test,
View Full Code Here

                       false,
                       false);
    }

    public void testFactoryTypesSelect() {
        Property test = PropertyBuilder.builder()
            .select("test")
            .name("test")
            .build();

        assertProperty(test,
View Full Code Here

                       true,
                       false);
    }

    public void testFactoryTypesFreeSelect() {
        Property test = PropertyBuilder.builder()
            .freeSelect("test")
            .name("test")
            .build();

        assertProperty(test,
View Full Code Here

                       false,
                       false);
    }

    public void testFactoryTypesInt() {
        Property test = PropertyBuilder.builder()
            .integer("test")
            .name("test")
            .build();

        assertProperty(test,
View Full Code Here

                       true, //int validator
                       false);
    }

    public void testFactoryTypesLong() {
        Property test = PropertyBuilder.builder()
            .longType("test")
            .name("test")
            .build();

        assertProperty(test,
View Full Code Here

TOP

Related Classes of com.dtolabs.rundeck.core.plugins.configuration.Property

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.