Examples of ExampleDef


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

Examples of org.auraframework.def.ExampleDef

    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
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.