Package com.dubture.doctrine.annotation.model

Examples of com.dubture.doctrine.annotation.model.ObjectValue


        assertEquals("post", annotation.getArgumentValue("name").getValue());
        assertEquals(-10.0, annotation.getArgumentValue("double").getValue());
        assertEquals(100.0, annotation.getArgumentValue("int").getValue());

        assertEquals(ArgumentValueType.OBJECT, annotation.getArgumentValue("defaults").getType());
        ObjectValue objectValue = (ObjectValue) annotation.getArgumentValue("defaults");

        assertEquals("\\s+", objectValue.getArgumentValue("_format").getValue());

        assertEquals(ArgumentValueType.ARRAY, annotation.getArgumentValue("requirements").getType());
        ArrayValue arrayValue = (ArrayValue) annotation.getArgumentValue("requirements");

        assertEquals("one", arrayValue.getArgumentValue(0).getValue());
View Full Code Here


        assertEquals("Route",annotation.getClassName());
        assertFalse(reporter.hasErrors());

        assertEquals(ArgumentValueType.OBJECT, annotation.getArgumentValue("defaults").getType());

        ObjectValue objectValue = (ObjectValue) annotation.getArgumentValue("defaults");
        assertEquals("*World*", objectValue.get("name"));
        assertEquals(true, objectValue.get("isFalse"));
        assertEquals(false, objectValue.get("false"));
        assertEquals(null, objectValue.get("null"));
    }
View Full Code Here

TOP

Related Classes of com.dubture.doctrine.annotation.model.ObjectValue

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.