Examples of Implementation


Examples of fr.imag.adele.apam.Implementation

    }

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

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

  auxListProperties("\t", subjectA);

  Assert.assertTrue(
    "Given two composites A B, was not possible to reach the right value for a property of A through B by substituion (e.g. in B declare a property with the value '$AImpl.$property'): when there is only a definition in the Spec and no property in the Impl",
View Full Code Here

Examples of fr.imag.adele.apam.Implementation

    }

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

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

  auxListProperties("\t", subjectA);

  Assert.assertTrue(
    "Given two composites A B, was not possible to reach the right value for a property of A through B by substituion (e.g. in B declare a property with the value '$AImpl.$property') ",
View Full Code Here

Examples of fr.imag.adele.apam.Implementation

    }

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

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

  auxListProperties("\t", subjectA);

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

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

Examples of fr.imag.adele.apam.Implementation

    }

    @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

Examples of fr.imag.adele.apam.Implementation

    "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

Examples of fr.imag.adele.apam.Implementation

    }

    @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

Examples of fr.imag.adele.apam.Implementation

    }

    @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

Examples of fr.imag.adele.apam.Implementation

    }

    @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

Examples of fr.imag.adele.apam.Implementation

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