Package org.auraframework.def

Examples of org.auraframework.def.ExampleDef


    DocumentationDef dd = parse(docDefSource);
    dd.validateDefinition();

    List<ExampleDef> descDefs = dd.getExampleDefs();
    assertEquals(1, descDefs.size());
    ExampleDef ed = descDefs.get(0);
    assertEquals(exampleLabel, ed.getLabel());
    assertEquals(exampleName, ed.getName());
    assertEquals(exampleRef, ed.getRef().getNamespace()+":"+ed.getRef().getName());
    assertEquals(exampleDesc, ed.getDescription());
   
  }
View Full Code Here


    Map<String, ExampleDef> exDefs = dd.getExampleDefsAsMap();
    assertEquals(2, exDefs.size());

    for(String d : examples){ 
      ExampleDef ex = exDefs.get(d);
      assertNotNull(ex);
      assertEquals(d, ex.getLabel());
      assertEquals(d, ex.getDescription());
    }

  }
View Full Code Here

TOP

Related Classes of org.auraframework.def.ExampleDef

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.