Package org.auraframework.def

Examples of org.auraframework.def.ControllerDef.validateDefinition()


        DefDescriptor<ControllerDef> descriptor = DefDescriptorImpl.getInstance("js://test.testInvalidJSController",
                ControllerDef.class);
        Source<?> source = getJavascriptSourceLoader().getSource(descriptor);
        ControllerDef cd = parser.parse(descriptor, source);
        try {
            cd.validateDefinition();
            fail("Javascript controller must only contain functions");
        } catch (Exception e) {
            this.checkExceptionContains(e, InvalidDefinitionException.class, "Expected ':'");
        }
    }
View Full Code Here


                .getInstance("js://test.testNonFunctionElementsInJSController",
                        ControllerDef.class);
        Source<?> source = getJavascriptSourceLoader().getSource(descriptor);
        ControllerDef cd = parser.parse(descriptor, source);
        try {
            cd.validateDefinition();
            fail("Javascript controller must only contain functions");
        } catch (Exception e) {
          this.checkExceptionContains(e, InvalidDefinitionException.class,
                            "JsonStreamParseException");
        }
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.