Package fr.imag.adele.apam

Examples of fr.imag.adele.apam.CompositeType


    }

    @Test
    public void CompositeContentMngtDependencyFailException_tc040() {

  CompositeType ctroot = (CompositeType) waitForImplByName(null,
    "composite-a-fail-exception");

  CompositeType cta = (CompositeType) waitForImplByName(null,
    "composite-a-fail-exception");

  Composite composite_root = (Composite) ctroot
    .createInstance(null, null);

  Composite composite_a = (Composite) cta.createInstance(composite_root,
    null);

  Instance instanceApp1 = composite_a.getMainInst();

  S3GroupAImpl ga1 = (S3GroupAImpl) instanceApp1.getServiceObject();
View Full Code Here


    }

    @Test
    public void CompositeContentMngtDependencyFailWait_tc039() {

  CompositeType cta = (CompositeType) waitForImplByName(null,
    "composite-a-fail-wait");

  Composite composite_a = (Composite) cta.createInstance(null, null);

  Instance instanceApp1 = composite_a.getMainInst();

  S3GroupAImpl ga1 = (S3GroupAImpl) instanceApp1.getServiceObject();
View Full Code Here

    if (!deployed && impl.isUsed()) {
      logger.info(" : selected " + impl);
      return;
    }

    CompositeType compoType;
    if (source instanceof Instance) {
      compoType = ((Instance) source).getComposite().getCompType();
    } else if (source instanceof Implementation) {
      compoType = ((Implementation) source).getInCompositeType().iterator().next();
    } else {
View Full Code Here

  @Test
  @Ignore
  public void CompositeContentMngtDependencyHide_tc065() {

    CompositeType ctaroot = (CompositeType) waitForImplByName(null,
        "composite-a-hide");

    Composite composite_root = (Composite) ctaroot.createInstance(null,
        null);// composite_root

    CompositeType cta = (CompositeType) waitForImplByName(null,
        "composite-a-hide");

    Composite composite_a = (Composite) cta.createInstance(composite_root,
        null);// inner composite with hide='true'

    Instance instanceApp1 = composite_a.getMainInst();

    S3GroupAImpl ga1 = (S3GroupAImpl) instanceApp1.getServiceObject();
View Full Code Here

  public void CompositeContentMngtStartTriggerByImplementation_tc043() {
    auxListInstances("INSTANCE-t1-");

    String checkingFor = "implementation";

    CompositeType composite = (CompositeType) waitForImplByName(null,
        "composite-a-start-by-" + checkingFor);
    Composite compositeInstance = (Composite) composite.createInstance(
        null, null);

    apam.waitForIt(Constants.CONST_WAIT_TIME);

    Implementation trigger = waitForImplByName(null,
View Full Code Here

  public void CompositeContentMngtStartTriggerBySpecification_tc042() {
    auxListInstances("INSTANCE-t1-");

    String checkingFor = "specification";

    CompositeType composite = (CompositeType) waitForImplByName(null,
        "composite-a-start-by-" + checkingFor);
    Composite compositeInstance = (Composite) composite.createInstance(
        null, null);

    apam.waitForIt(Constants.CONST_WAIT_TIME);

    Implementation trigger = waitForImplByName(null,
View Full Code Here

  }

  @Test
  public void CompositeWithEagerDependency_tc041() {
    CompositeType ct1 = (CompositeType) waitForImplByName(null,"S2Impl-composite-eager");

    String message = "During this test, we enforce the resolution of the dependency by signaling dependency as eager='true'. %s";

    Assert.assertTrue(String.format(message,
        "Although, the test failed to retrieve the composite"),
        ct1 != null);

    auxListInstances("instances existing before the test-");

    Composite instanceComposite = (Composite) ct1.createInstance(null,new HashMap<String, String>());

    InstanceImpl mainInstance = (InstanceImpl) instanceComposite
        .getMainInst();

    Assert.assertTrue(String.format(message,
View Full Code Here

  }

  @Test
  public void CompositeWithEagerDependencyExplicitySpecification_tc051() {

    CompositeType ct1 = (CompositeType) waitForImplByName(null,
        "S2Impl-composite-eager-forceEager");

    String message = "During this test, we enforce the resolution of the dependency by signaling dependency as eager='true'. %s";

    Assert.assertTrue(String.format(message,
        "Although, the test failed to retrieve the composite"),
        ct1 != null);

    auxListInstances("instances existing before the test-");

    Composite instanceComposite = (Composite) ct1.createInstance(null,
        new HashMap<String, String>());

    InstanceImpl mainInstance = (InstanceImpl) instanceComposite
        .getMainInst();
View Full Code Here

    @Test
    public void SubstitutionReachingMultipleNodesWithKeywordComposite_tc125() {

  Implementation subjectCimpl = waitForImplByName(null, "subject-c");

  CompositeType subjectCCompositeType = (CompositeType) waitForImplByName(
    null, "subject-c-composite");
  Composite subjectCComposite = (Composite) subjectCCompositeType
    .createInstance(null, Collections.<String, String> emptyMap());

  // Instance of the subject-a (parent)
  Instance subjectC = subjectCimpl
    .createInstance(subjectCComposite, null);
View Full Code Here

    }

    @Test
    public void SubstitutionReachingMultipleNodesWithKeywordComposite_tc127() {

  CompositeType subjectECompositeType = (CompositeType) waitForImplByName(
    null, "subject-e-composite");
  Composite subjectEComposite = (Composite) subjectECompositeType
    .createInstance(null, Collections.<String, String> emptyMap());

  Implementation implementationAlpha = waitForImplByName(null,
    "impl-case-17");
  Instance instanceEcho = implementationAlpha.createInstance(
View Full Code Here

TOP

Related Classes of fr.imag.adele.apam.CompositeType

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.