Package fr.imag.adele.apam

Examples of fr.imag.adele.apam.Implementation.createInstance()


    public void CompositeDependencyFailException_tc045() {

  Implementation group_a = waitForImplByName(null,
    "group-a-fail-exception");

  Instance instance_a = group_a.createInstance(null, null);

  S3GroupAImpl ga1 = (S3GroupAImpl) instance_a.getServiceObject();

  String messageTemplate = "In dependency if we adopt fail='exception' exception='A', the exception A should be throw in case the dependency is not satifiable. %s";
View Full Code Here


          org.osgi.framework.Constants.FRAMEWORK_SYSTEMPACKAGES));

  Implementation group_a = waitForImplByName(null,
    "group-a-fail-exception-native");

  Instance instance_a = group_a.createInstance(null, null);

  S3GroupAImpl ga1 = (S3GroupAImpl) instance_a.getServiceObject();

  String messageTemplate = "In dependency if we adopt fail='exception' exception='A' (With A being an exception that already exists in java JRE), the exception A should be throw in case the dependency is not satifiable. But the exception thrown was not type (A)";
View Full Code Here

    @Test
    public void CompositeDependencyFailWait_tc044() {

  Implementation cta = waitForImplByName(null, "group-a-fail-wait");

  Instance instanceApp1 = cta.createInstance(null, null);

  S3GroupAImpl ga1 = (S3GroupAImpl) instanceApp1.getServiceObject();

  ThreadWrapper wrapper = new ThreadWrapper(ga1);
  wrapper.setDaemon(true);
View Full Code Here

        {
      put("criteria", "ignore-this");
        }
    });

  Instance instanceTarget = implementationTarget.createInstance(null,
    null);

  S07ImplementationImporter15 implem = (S07ImplementationImporter15) instanceTarget
    .getServiceObject();
View Full Code Here

    @Test
    public void RelationLinkCreationManual_tct004() {
  Implementation implementation = waitForImplByName(null,
    "S07-implementation-16");

  Instance instance = implementation.createInstance(null,
    Collections.<String, String> emptyMap());

  Implementation implementationdep = waitForImplByName(null,
    "S07-DependencyImpl-02");
  Instance instancedep = implementationdep.createInstance(null,
View Full Code Here

  Instance instance = implementation.createInstance(null,
    Collections.<String, String> emptyMap());

  Implementation implementationdep = waitForImplByName(null,
    "S07-DependencyImpl-02");
  Instance instancedep = implementationdep.createInstance(null,
    Collections.<String, String> emptyMap());

  org.junit.Assert
    .assertTrue(
      "An exception should be raised as the dependency cannot be resolved automatically (creation=manual)",
View Full Code Here

    public void RelationLinkResolveExist_tct001() {

  Implementation implementation = waitForImplByName(null,
    "S07-implementation-14");

  Instance instance = implementation.createInstance(null,
    Collections.<String, String> emptyMap());

  org.junit.Assert
    .assertTrue(
      "An exception should be raised as the dependency cannot be resolved as no instance running",
View Full Code Here

    0, instance.getRawLinks().size());

  Implementation implementationdep = waitForImplByName(null,
    "S07-DependencyImpl-02");

  Instance instancedep = implementationdep.createInstance(null,
    Collections.<String, String> emptyMap());
  auxListInstances();

  org.junit.Assert
    .assertFalse(
View Full Code Here

    @Test
    public void RelationLinkResolveInternal_tct002() {
  Implementation implementation = waitForImplByName(null,
    "S07-implementation-14bis");

  Instance instance = implementation.createInstance(null,
    Collections.<String, String> emptyMap());

  org.junit.Assert
    .assertFalse(
      "No exception should be raised as the dependency should be instanciated",
View Full Code Here

      "No exception should be raised as the dependency should be instanciated",
      testResolutionExceptionCase14(instance, 2));
  Assert.assertEquals("One relation should have been created", 1,
    instance.getRawLinks().size());

  Instance instance2 = implementation.createInstance(null,
    Collections.<String, String> emptyMap());

  Implementation implementationdep = waitForImplByName(null,
    "S07-DependencyImpl-02");
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.