Package org.rascalmpl.ast

Examples of org.rascalmpl.ast.Declaration$Annotation


    @Test(expected=ExQueryException.class)
    public void create_failsForNonRESTXQAnnotation() throws URISyntaxException, ExQueryException {
       
        final QName badName = new QName("http://fake", "fake");
       
        final Annotation mckAnnotation = mock(Annotation.class);
        when(mckAnnotation.getName()).thenReturn(badName);
       
        final Set<Annotation> annotations = new HashSet<Annotation>();
        annotations.add(mckAnnotation);
               
        ResourceFunctionFactory.create(new URI("/fake.xquery"), annotations);
View Full Code Here

TOP

Related Classes of org.rascalmpl.ast.Declaration$Annotation

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.