Package fr.imag.adele.apam.pax.test.implS6

Examples of fr.imag.adele.apam.pax.test.implS6.S6Impl


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

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

  S6Impl s6 = (S6Impl) subjectA.getServiceObject();

  auxListProperties("\t", subjectA);

  String template = "after fetching a property value (pointing to a function) the returned value do not correspond to the returned function. Value '%s' was returned instead of '%s'";
  String message = String
    .format(template, subjectA.getProperty("function-case-01"),
      s6.functionCall(null));

  Assert.assertTrue(message, subjectA.getProperty("function-case-01")
    .equals(s6.functionCall(null)));
    }
View Full Code Here


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

  // Force the field to be injected
  S6Impl s6parent = (S6Impl) subjectA.getServiceObject();
  s6parent.getS6();

  // Force the field to be injected
  Instance middleInstance = auxListInstanceReferencedBy(s6parent.getS6());
  S6Impl s6middle = (S6Impl) middleInstance.getServiceObject();
  s6middle.getS6();

  // Force the field to be injected
  Instance childInstance = auxListInstanceReferencedBy(s6middle.getS6());
  S6Impl s6child = (S6Impl) childInstance.getServiceObject();
  s6child.getS6();

  auxListProperties("\t", subjectA);

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

  // 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();

  // Force the field to be injected
  Instance middleInstance = auxListInstanceReferencedBy(s6parent.getS6());
  S6Impl s6middle = (S6Impl) middleInstance.getServiceObject();
  s6middle.getS6();

  // Force the field to be injected
  Instance childInstance = auxListInstanceReferencedBy(s6middle.getS6());
  S6Impl s6child = (S6Impl) childInstance.getServiceObject();
  s6child.getS6();

  auxListProperties("\t", subjectA);

  System.err.println(subjectA.getProperty("property-case-13"));
  Set<String> properties = (Set<String>) subjectA
View Full Code Here

  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();

  auxListProperties("\t", subjectE);

  String parentProperty = subjectE
    .getProperty("property-case-17-parent-composite");
View Full Code Here

TOP

Related Classes of fr.imag.adele.apam.pax.test.implS6.S6Impl

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.