Package fr.imag.adele.apam

Examples of fr.imag.adele.apam.Implementation


    }

    @Test
    public void SubstitutionGetPropertyString_tc089() {
  Implementation impl = waitForImplByName(null,
    "MetasubstitutionStringTest");

  Instance instance = impl.createInstance(null, null);

  auxListProperties("\t", instance);

  Assert.assertTrue("geting property didnt work as expected", instance
    .getProperty("meta_string_retrieve").equals("goethe"));
View Full Code Here


    }

    @Test
    public void SubstitutionGetPropertyWithDotInMiddleOfComponentName_tc093() {
  Implementation subjectAimpl = waitForImplByName(null, "impl-case-11");

  Instance subjectA = subjectAimpl.createInstance(null,
    Collections.singletonMap("property-subject-b", "bete"));

  auxListProperties("\t", subjectA);

  System.err.println("--->" + subjectA.getProperty("property-case-10"));
View Full Code Here

    "bete"));
    }

    @Test
    public void SubstitutionGetPropertyWithDotInMiddleOfComponentName_tc117() {
  Implementation subjectAimpl = waitForImplByName(null, "subject-a");

  Instance subjectA = subjectAimpl.createInstance(null, null);

  auxListProperties("\t", subjectA);

  System.err.println("--->" + subjectA.getProperty("property-case-10"));
View Full Code Here

    }

    @Test
    public void SubstitutionReachingMultipleNodes_tc122() {
  Implementation subjectAimpl = waitForImplByName(null, "subject-a");

  Implementation implementationAlpha = waitForImplByName(null,
    "impl-case-12-child");
  Instance instanceAlpha = implementationAlpha.createInstance(null,
    new HashMap<String, String>() {
        {
      put("property-subject-b", "alpha(child)");
        }
    });

  Implementation implementationBravo = waitForImplByName(null,
    "impl-case-12-child");

  Instance instanceBravo = implementationBravo.createInstance(null,
    new HashMap<String, String>() {
        {
      put("property-subject-b", "bravo(child)");
        }
    });

  Implementation implementationCharlie = waitForImplByName(null,
    "impl-case-12");
  Instance instanceCharlie = implementationCharlie.createInstance(null,
    new HashMap<String, String>() {
        {
      put("property-subject-b", "charlie(parent)");
        }
    });

  Implementation implementationDelta = waitForImplByName(null,
    "impl-case-12");
  Instance instanceDelta = implementationDelta.createInstance(null,
    new HashMap<String, String>() {
        {
      put("property-subject-b", "delta(parent)");
        }
    });
View Full Code Here

    }

    @Test
    public void SubstitutionReachingMultipleNodesWithInstsKeyword_tc123() {

  Implementation implementationCase12Child = waitForImplByName(null,
    "impl-case-12-child");
  Instance instanceAlpha = implementationCase12Child.createInstance(null,
    new HashMap<String, String>() {
        {
      put("property-subject-b", "alpha(child)");
        }
    });
  Instance instanceBravo = implementationCase12Child.createInstance(null,
    new HashMap<String, String>() {
        {
      put("property-subject-b", "bravo(child)");
        }
    });

  Implementation implementationCase12 = waitForImplByName(null,
    "impl-case-12");
  Instance instanceCharlie = implementationCase12.createInstance(null,
    new HashMap<String, String>() {
        {
      put("property-subject-b", "charlie(parent)");
        }
    });
  Instance instanceDelta = implementationCase12.createInstance(null,
    new HashMap<String, String>() {
        {
      put("property-subject-b", "delta(parent)");
        }
    });

  instanceCharlie.getLink("case12child");
  instanceDelta.getLink("case12child");

  // Instance of the subject-a (parent)
  Implementation subjectAimpl = waitForImplByName(null, "subject-a");
  Instance subjectA = subjectAimpl.createInstance(null, null);

  // Force the field to be injected
  S6Impl s6parent = (S6Impl) subjectA.getServiceObject();
  s6parent.getS6();
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);

  auxListProperties("\t", subjectC);

  System.err.println(subjectC.getProperty("property-case-15"));
View Full Code Here

  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(
    subjectEComposite, null);

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

  // Instance of the subject-a (parent)
  Instance subjectE = subjectCimpl.createInstance(null, null);
  S6Impl s6 = (S6Impl) subjectE.getServiceObject();

  // Force injection
  s6.getS6();
View Full Code Here

    }

    @Test
    public void SubstitutionReachingMultipleNodesWithKeywordCompositeType_tc124() {

  Implementation subjectBimpl = waitForImplByName(null, "subject-b");

  CompositeType subjectBCompositeType = (CompositeType) waitForImplByName(
    null, "subject-b-composite");
  Composite subjectBComposite = (Composite) subjectBCompositeType
    .createInstance(null, Collections.<String, String> emptyMap());

  // Instance of the subject-a (parent)
  Instance subjectB = subjectBimpl
    .createInstance(subjectBComposite, null);

  auxListProperties("\t", subjectB);

  System.err.println(subjectB.getProperty("property-case-14"));
View Full Code Here

    }

    @Test
    public void SubstitutionReachingMultipleNodesWithKeywordSpec_tc126() {

  Implementation subjectDimpl = waitForImplByName(null, "subject-d");

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

  // Instance of the subject-a (parent)
  Instance subjectD = subjectDimpl
    .createInstance(subjectDComposite, null);

  auxListProperties("\t", subjectD);

  Assert.assertTrue(
View Full Code Here

     *       native array type
     */
    @Test
    public void InjectionUpdateLinkForArrayType_tc014() {

  Implementation s1Impl = waitForImplByName(null,
    "fr.imag.adele.apam.pax.test.impl.S1Impl-tc014");

  Instance s1Inst = s1Impl.createInstance(null, null);

  apam.waitForIt(Constants.CONST_WAIT_TIME);

  S1Impl s1 = (S1Impl) s1Inst.getServiceObject();

  Eletronic[] eletronicInstancesInArray = s1
    .getEletronicInstancesInArray();
  int initialSize = 0;

  if (eletronicInstancesInArray != null) {
      initialSize = eletronicInstancesInArray.length;
  }

  for (Link wire : s1Inst.getRawLinks()) {
      wire.remove();
  }

  Implementation sansungImpl = waitForImplByName(null, "SamsungSwitch");

  Instance sansungInst = sansungImpl.createInstance(null, null);

  apam.waitForIt(Constants.CONST_WAIT_TIME);

  GenericSwitch samsungSwitch = (GenericSwitch) sansungInst
    .getServiceObject();
View Full Code Here

TOP

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

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.