Package fr.imag.adele.apam

Examples of fr.imag.adele.apam.Implementation


   * Ensures that initial properties are configured in the instance properly
   */
  @Test
  public void PropertyConfiguredWithSetProperty_tc003() {

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

    Map<String, String> initialProperties = new HashMap<String, String>() {
      {
        put("property-01", "configured-01");
        put("property-02", "configured-02");
        put("property-03", "configured-03");
        put("property-04", "configured-04");
        put("property-05", "configured-05");

      }
    };

    Instance samsungInst = samsungImpl.createInstance(null, null);

    samsungInst.setProperty("property-01", "configured-01");
    samsungInst.setProperty("property-02", "configured-02");
    samsungInst.setProperty("property-03", "configured-03");
    samsungInst.setProperty("property-04", "configured-04");
View Full Code Here


  }

  @Test
  public void PropertyDefinitionInjectedBothByDefaultProperty_tct022() {

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

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

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

    String messageTemplace = "for a property whose type injected not specified (should be both by default), the %s";
View Full Code Here

  }

  @Test
  public void PropertyDefinitionInjectedBothProperty_tct021() {

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

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

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

    String messageTemplace = "for a property type injected='both', the %s";
View Full Code Here

  }

  @Test
  public void PropertyDefinitionInjectedExternalProperty_tct023() {

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

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

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

    String messageTemplace = "for a property type injected='external', the %s";
View Full Code Here

  }

  @Test
  public void PropertyDefinitionInjectedInternalProperty_tct024() {

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

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

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

    String messageTemplace = "for a property type injected='internal', the %s";
View Full Code Here

  }

  @Test
  public void PropertyDefinitionInjectedPropertyDefinedInConstructor_tct025() {

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

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

    S1Impl_tct025 s1 = (S1Impl_tct025) s1Inst.getServiceObject();
    String messageTemplace = "for a property defined in constructor, the %s";

    Assert.assertNotNull(String.format(messageTemplace,
View Full Code Here

  }

  @Test
  public void PropertyDefinitionInternalFalseTypeStringProperty_tc004() {

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

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

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

    String messageTemplace = "for a property type injected='external', the %s";
View Full Code Here

  }

  @Test
  public void PropertyDefinitionInternalTrueTypeStringProperty_tc004() {
    Implementation s1Impl = waitForImplByName(null,
        "fr.imag.adele.apam.pax.test.impl.S1Impl");

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

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

    String messageTemplace = "for a property type internal='true', %s";
View Full Code Here

  }

  @Test
  public void PropertyDefinitionIsVisibleWithValPropertySetXML_tc005() {

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

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

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

    Assert.assertTrue(
        "Internal property value should be null, since the xml should be ignore.",
View Full Code Here

  }

  @Test
  public void PropertyEnumTypeSimpleValueNoTrick_tc072() {

    Implementation implementation = waitForImplByName(null,
        "SpecEnumVersusSetTestSwitch");
    Instance inst = implementation.createInstance(null, null);

    String propertyName = "barEnumValuedSimple";
    String propertyValue = inst.getProperty(propertyName);
    String expression = "(barEnumValuedSimple=Linux)";
    boolean result = inst.match(expression);
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.