Package org.openiaml.model.model

Examples of org.openiaml.model.model.InternetApplication


   * @param logRuleSource should the source of rules be logged?
   * @return The loaded InternetApplication
   * @throws Exception
   */
  protected InternetApplication loadAndCodegen(Class<?> modelFile, IProgressMonitor monitor) throws Exception {
    InternetApplication root = loadAndInfer(modelFile, DEFAULT_LOG_RULE_SOURCES, monitor);
    doCodegen(modelFile, root);
    return root;
  }
View Full Code Here


   * @param logRuleSource should the source of rules be logged?
   * @return The loaded InternetApplication
   * @throws Exception
   */
  protected InternetApplication loadAndCodegen(Class<?> testClass, String modelFile, boolean logRuleSource) throws Exception {
    InternetApplication root = loadAndInfer(modelFile, logRuleSource);
    doCodegen(testClass, root);
    return root;
  }
View Full Code Here

    ResourceSet set = new ResourceSetImpl();
    URI uri = URI.createFileURI("queue.iaml");
    Resource resource = set.createResource(uri);
   
    // create the model
    InternetApplication root = ModelFactory.eINSTANCE.createInternetApplication();
    assertNotNull(root);
    assertNotEqual(root.getName(), "created successfully");
    resource.getContents().add(root);
   
    assertNotNull(root.eResource());
   
    return root;
  }
View Full Code Here

   * Test that the order doesn't matter.
   *
   * @throws Exception
   */
  public void testDroolsQueue() throws Exception {
    InternetApplication root = createInternetApplication();
   
    // initially empty
    assertEquals(0, root.getTypes().size());
    assertEquals(0, root.getScopes().size());

    // infer new elements
    DroolsQueueEngine engine = new DroolsQueueEngine( new EcoreInferenceHandlerFactory() );
   
    engine.create(root, new NullProgressMonitor());
   
    // check that it did actually create stuff
    assertEquals(1, root.getTypes().size());
    assertEquals(1, root.getScopes().size());
   
    // it should also fire new rules in the rule file
    assertEquals(root.getName(), "created successfully");
   
  }
View Full Code Here

   * iterations.
   *
   * @throws Exception
   */
  public void testDroolsQueueCount() throws Exception {
    InternetApplication root = createInternetApplication();
   
    // infer new elements
    DroolsQueueEngine engine = new DroolsQueueEngine(new EcoreInferenceHandlerFactory());
   
    engine.create(root, new NullProgressMonitor());
View Full Code Here

TOP

Related Classes of org.openiaml.model.model.InternetApplication

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.