Examples of DummyComponent


Examples of br.com.caelum.vraptor.ioc.spring.components.DummyComponent

    assertNotNull(instance2);
  }

  @Test
  public void shouldScanAndRegisterAnnotatedBeans() {
    DummyComponent component = container.instanceFor(DummyComponent.class);
    assertNotNull("can instantiate", component);
    assertTrue("is the right implementation", component instanceof DummyImplementation);
  }
View Full Code Here

Examples of io.fabric8.api.scr.support.DummyComponent

            "propDoubleObjectDefault"
    };

    @Test
    public void testProperty() throws Exception {
        DummyComponent component = new DummyComponent();
        Map<String, String> config = new HashMap<String, String>();

        for (String fieldName : fieldNames) {
            Object value = getFieldValue(this, fieldName);
            addConfigurationValue(config, fieldName, value);
        }

        for (String fieldName : defaultPropertyNames) {
            Object value = getFieldValue(this, fieldName);
            addConfigurationValue(config, fieldName, value);
        }

        LOG.info("Properties: " + config);

        component.activate(config);

        LOG.info("Have injected: " + component);

        assertFieldValues(fieldNames, this, component);
        assertFieldValues(defaultPropertyNames, this, component);
View Full Code Here

Examples of org.geomajas.plugin.printing.component.DummyComponent

  ApplicationContext context;

  @Test
  public void testPrototypeScope() throws PrintingException {
    DummyComponentInfo info = new DummyComponentInfo();
    DummyComponent comp1 = (DummyComponent) service.toInternal(info);
    DummyComponent comp2 = (DummyComponent) service.toInternal(info);
    Assert.assertTrue(comp1 != comp2);
  }
View Full Code Here

Examples of org.geomajas.plugin.printing.component.DummyComponent

  }
 
  @Test
  public void testRuntimeInjection() throws PrintingException {
    DummyComponentInfo info = new DummyComponentInfo();
    DummyComponent comp = (DummyComponent) service.toInternal(info);
    Assert.assertTrue(comp.isInjected());
  }
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.