Package org.springframework.data.hadoop.config.common.annotation.complex

Examples of org.springframework.data.hadoop.config.common.annotation.complex.ComplexTestConfig


  @Test
  public void testSimpleConfig() throws Exception {
    assertNotNull(ctx);
    assertTrue(ctx.containsBean("complexConfig"));
    ComplexTestConfig config = ctx.getBean("complexConfig", ComplexTestConfig.class);
    assertThat(config.complexData, notNullValue());
    assertThat(config.complexData, is("complexData"));

    assertThat(config.complexProperties, notNullValue());
    assertThat(config.complexProperties.getProperty("complexKey1"), notNullValue());
View Full Code Here


    assertThat(simpleConfig.simpleProperties, notNullValue());
    assertThat(simpleConfig.simpleProperties.getProperty("simpleKey1"), notNullValue());
    assertThat(simpleConfig.simpleProperties.getProperty("simpleKey1"), is("simpleValue1"));

    assertTrue(ctx.containsBean("complexConfig"));
    ComplexTestConfig complexConfig = ctx.getBean("complexConfig", ComplexTestConfig.class);
    assertThat(complexConfig.complexData, notNullValue());
    assertThat(complexConfig.complexData, is("complexData"));

    assertThat(complexConfig.complexProperties, notNullValue());
    assertThat(complexConfig.complexProperties.getProperty("complexKey1"), notNullValue());
View Full Code Here

    assertThat(simpleConfig.simpleProperties, notNullValue());
    assertThat(simpleConfig.simpleProperties.getProperty("simpleKey1"), notNullValue());
    assertThat(simpleConfig.simpleProperties.getProperty("simpleKey1"), is("simpleValue1"));

    assertTrue(ctx.containsBean("complexConfig"));
    ComplexTestConfig complexConfig = ctx.getBean("complexConfig", ComplexTestConfig.class);
    assertThat(complexConfig.complexData, notNullValue());
    assertThat(complexConfig.complexData, is("complexData"));
    assertThat(complexConfig.complexProperties, notNullValue());
    assertThat(complexConfig.complexProperties.getProperty("complexKey1"), notNullValue());
    assertThat(complexConfig.complexProperties.getProperty("complexKey1"), is("complexValue1"));
View Full Code Here

TOP

Related Classes of org.springframework.data.hadoop.config.common.annotation.complex.ComplexTestConfig

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.