Examples of properties()


Examples of org.jtester.annotations.Inject.properties()

    for (Field injectField : injects) {
      Class injectedClazz = injectField.getType();
      Inject inject = injectField.getAnnotation(Inject.class);

      Object injectedObject = JTesterProxy.proxy(testedObject.getClass(), injectField);
      injectedInto(testedObject, injectedObject, injectedClazz, inject.targets(), inject.properties());
    }
  }

  /**
   * 把对象injectedObject注入到testedObject对应的变量targets的属性中
 
View Full Code Here

Examples of org.jtester.annotations.SpringBeanByName.properties()

    if (StringHelper.isBlankOrNull(byName.value()) == false) {
      beanMeta.beanName = byName.value();
    }
    beanMeta.initMethod = byName.init();
    beanMeta.beanClaz = byName.claz();
    beanMeta.properties = byName.properties();
  }
}
View Full Code Here

Examples of org.jtester.annotations.SpringBeanByType.properties()

    SpringBeanByType byType = field.getAnnotation(SpringBeanByType.class);

    beanMeta.beanClaz = byType.value();
    beanMeta.initMethod = byType.init();
    beanMeta.beanName = field.getName();
    beanMeta.properties = byType.properties();
  }
}
View Full Code Here

Examples of org.metagrid.gatekeeper.node.Node.properties()

            );
        //
        // Check the OrangeNode weight.
        assertEquals(
            "0",
            node.properties().get(
                OrangeNode.WEIGHT_PROPERTY_URI
                ).value()
            );

        //
View Full Code Here

Examples of org.metagrid.gatekeeper.node.SimpleNode.properties()

        //
        // Check we can set the secret property.
        assertEquals(
            "egertvsg",
            inner.properties().set(
                new URI("urn:test.secret"),
                "egertvsg"
                ).value()
            );
View Full Code Here

Examples of org.qi4j.api.association.AssociationStateHolder.properties()

    {
        ValueComposite composite = (ValueComposite) object;
        writer.writeXsiType( NamespaceUtil.convertJavaTypeToQName(
            first( Qi4j.FUNCTION_DESCRIPTOR_FOR.map( composite ).types() ) ) );
        AssociationStateHolder state = spi.stateOf( composite );
        for( Property<?> property : state.properties() )
        {
            Object value = property.get();
            AegisType type = null;
            if( value instanceof ValueComposite )
            {
View Full Code Here

Examples of org.sonar.batch.bootstrap.BootstrapProperties.properties()

  public static TemporaryFolder temp = new TemporaryFolder();

  public static Caches createCacheOnTemp(TemporaryFolder temp) {
    BootstrapProperties bootstrapSettings = new BootstrapProperties(Collections.<String, String>emptyMap());
    try {
      bootstrapSettings.properties().put(CoreProperties.WORKING_DIRECTORY, temp.newFolder().getAbsolutePath());
    } catch (IOException e) {
      throw new RuntimeException(e);
    }
    return new Caches(new TempFolderProvider().provide(bootstrapSettings));
  }
View Full Code Here

Examples of org.sonar.runner.api.Runner.properties()

  public void should_create_embedded_runner_by_default() {
    props.setProperty("foo", "bar");
    Runner runner = new RunnerFactory().create(props);

    assertThat(runner).isInstanceOf(EmbeddedRunner.class);
    assertThat(runner.properties().get("foo")).isEqualTo("bar");
  }

  @Test
  public void should_create_forked_runner() {
    props.setProperty("foo", "bar");
View Full Code Here

Examples of org.sonatype.nexus.testsuite.capabilities.client.CapabilityA.properties()

    final CapabilityA read = capabilities().get(CapabilityA.class, created.id());

    assertThat(read.id(), is(created.id()));
    assertThat(read.notes(), is(created.notes()));
    assertThat(read.type(), is(created.type()));
    assertThat(read.properties(), is(created.properties()));
    assertThat(read.propertyA1(), is(created.propertyA1()));

    // update
    read.withNotes("Some other notes").save();
View Full Code Here

Examples of org.sonatype.nexus.testsuite.capabilities.client.CapabilityB.properties()

    final CapabilityB read = capabilities().get(CapabilityB.class, created.id());

    assertThat(read.id(), is(created.id()));
    assertThat(read.notes(), is(created.notes()));
    assertThat(read.type(), is(created.type()));
    assertThat(read.properties(), is(created.properties()));
    assertThat(read.propertyB1(), is(created.propertyB1()));

    // update
    read.withNotes("Some other notes").save();
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.