Package fr.imag.adele.apam

Examples of fr.imag.adele.apam.CompositeType


  @Test
  public void CompositeTypeRetrieveServiceObject_tc030() {
    waitForApam();
    waitForImplByName(null, "philipsSwitch");

    CompositeType composite = CST.apam.createCompositeType(null,
        "eletronic-device-compotype", null, "philipsSwitch",
        new HashSet<ManagerModel>(), new HashMap<String, String>());

    Assert.assertTrue(
        "Should be possible to create a composite through API using createCompositeType method",
        composite != null);

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

    Assert.assertTrue("Failed to create instance of the compotype",
        instance != null);

    GenericSwitch serviceObject = (GenericSwitch) instance
View Full Code Here


  }

  @Test
  public void FetchImplThatHasComposite_tc029() {

    CompositeType ct1 = (CompositeType) waitForComponentByName(null,
        "S2Impl-composite-1");

    // apam.waitForIt(2000);

    CompositeType ct2 = (CompositeType) waitForImplByName(null,
        "S2Impl-composite-2");

    String general = "From two composites based on the same impl, both should be fetchable/instantiable from apam. %s";

    Assert.assertTrue(
        String.format(general, "The first one failed to be fetched."),
        ct1 != null);
    Assert.assertTrue(
        String.format(general, "The second one failed to be fetched."),
        ct2 != null);

    Instance ip1 = ct1.createInstance(null, new HashMap<String, String>());
    Instance ip2 = ct2.createInstance(null, new HashMap<String, String>());

    Assert.assertTrue(
        String.format(general, "The first one failed to instantiate."),
        ip1 != null);
    Assert.assertTrue(
View Full Code Here

  }

  @Test
  public void compositeWithMainImplem_tct034() {

    CompositeType compo = (CompositeType) waitForComponentByName(null,"compositeWithMainImplem_tct034");
    Component created = null;
   
    if (compo != null) {
      created = compo.createInstance(null, null);
    }
   
    auxListInstances();

    Assert.assertTrue(
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.