Package org.springframework.yarn.integration

Examples of org.springframework.yarn.integration.IntegrationAppmasterServiceFactoryBean


  private ApplicationContext ctx;

  @Test
  public void testDefaults() throws Exception {
    assertTrue(ctx.containsBean("yarnAmservice"));
    IntegrationAppmasterServiceFactoryBean fb =
        (IntegrationAppmasterServiceFactoryBean) ctx.getBean("&yarnAmservice");
    assertNotNull(fb);

    Class<?> clazz = TestUtils.readField("serviceImpl", fb);
    assertThat(clazz.getCanonicalName(), is("org.springframework.yarn.integration.ip.mind.TestService"));
View Full Code Here


  }

  @Test
  public void testWithChannelAndSocketSupport() throws Exception {
    assertTrue(ctx.containsBean("yarnAmservice2"));
    IntegrationAppmasterServiceFactoryBean fb =
        (IntegrationAppmasterServiceFactoryBean) ctx.getBean("&yarnAmservice2");
    assertNotNull(fb);

    Class<?> clazz = TestUtils.readField("serviceImpl", fb);
    assertThat(clazz.getCanonicalName(), is("org.springframework.yarn.integration.ip.mind.TestService"));
View Full Code Here

  }

  @Test
  public void testWithReference() throws Exception {
    assertTrue(ctx.containsBean("yarnAmservice3"));
    IntegrationAppmasterServiceFactoryBean fb =
        (IntegrationAppmasterServiceFactoryBean) ctx.getBean("&yarnAmservice3");
    assertNotNull(fb);

    Class<?> clazz = TestUtils.readField("serviceImpl", fb);
    assertThat(clazz, nullValue());
View Full Code Here

TOP

Related Classes of org.springframework.yarn.integration.IntegrationAppmasterServiceFactoryBean

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.