Package org.springframework.ide.eclipse.beans.core.internal.model

Examples of org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig


  }

  @Test
  public void testCustomAnnotationRequiredMethodResourceInjectionFailsWhenMultipleDependenciesFound()
      throws Exception {
    BeansConfig config = new BeansConfig(beansProject, "src/org/springframework/beans/factory/annotation/testCustomAnnotationRequiredMethodResourceInjectionFailsWhenMultipleDependenciesFound-context.xml", IBeansConfig.Type.MANUAL);

    AutowireDependencyProvider provider = new AutowireDependencyProvider(config, config);
    Map<IBean, Set<IBeanReference>> references = provider.resolveAutowiredDependencies();
    assertEquals(0, references.size());
View Full Code Here


    assertEquals(1, provider.getValidationProblems().size());
  }

  @Test
  public void testCustomAnnotationOptionalFieldResourceInjection() throws Exception {
    BeansConfig config = new BeansConfig(beansProject, "src/org/springframework/beans/factory/annotation/testCustomAnnotationOptionalFieldResourceInjection-context.xml", IBeansConfig.Type.MANUAL);

    AutowireDependencyProvider provider = new AutowireDependencyProvider(config, config);
    Map<IBean, Set<IBeanReference>> references = provider.resolveAutowiredDependencies();
    assertEquals(0, references.size());
  }
View Full Code Here

    assertEquals(0, references.size());
  }

  @Test
  public void testCustomAnnotationOptionalFieldResourceInjectionWhenNoDependencyFound() throws Exception {
    BeansConfig config = new BeansConfig(beansProject, "src/org/springframework/beans/factory/annotation/testCustomAnnotationOptionalFieldResourceInjectionWhenNoDependencyFound-context.xml", IBeansConfig.Type.MANUAL);

    AutowireDependencyProvider provider = new AutowireDependencyProvider(config, config);
    Map<IBean, Set<IBeanReference>> references = provider.resolveAutowiredDependencies();
    assertEquals(0, references.size());
View Full Code Here

    assertEquals(1, provider.getValidationProblems().size());
  }

  @Test
  public void testCustomAnnotationOptionalMethodResourceInjection() throws Exception {
    BeansConfig config = new BeansConfig(beansProject, "src/org/springframework/beans/factory/annotation/testCustomAnnotationOptionalMethodResourceInjection-context.xml", IBeansConfig.Type.MANUAL);

    Map<String, Integer[]> allowedRefs = new HashMap<String, Integer[]>();
    allowedRefs.put("testBean", new Integer[] { 504 });

    AutowireDependencyProvider provider = new AutowireDependencyProvider(config, config);
View Full Code Here

    }
  }

  @Test
  public void testCustomAnnotationOptionalMethodResourceInjectionWhenNoDependencyFound() throws Exception {
    BeansConfig config = new BeansConfig(beansProject, "src/org/springframework/beans/factory/annotation/testCustomAnnotationOptionalMethodResourceInjectionWhenNoDependencyFound-context.xml", IBeansConfig.Type.MANUAL);

    AutowireDependencyProvider provider = new AutowireDependencyProvider(config, config);
    Map<IBean, Set<IBeanReference>> references = provider.resolveAutowiredDependencies();
    assertEquals(0, references.size());
View Full Code Here

    assertEquals(0, provider.getValidationProblems().size());
  }

  @Test
  public void testCustomAnnotationOptionalMethodResourceInjectionWhenMultipleDependenciesFound() throws Exception {
    BeansConfig config = new BeansConfig(beansProject, "src/org/springframework/beans/factory/annotation/testCustomAnnotationOptionalMethodResourceInjectionWhenMultipleDependenciesFound-context.xml", IBeansConfig.Type.MANUAL);

    AutowireDependencyProvider provider = new AutowireDependencyProvider(config, config);
    Map<IBean, Set<IBeanReference>> references = provider.resolveAutowiredDependencies();
    assertEquals(0, references.size());
View Full Code Here

    assertEquals(1, provider.getValidationProblems().size());
  }

  @Test
  public void testStringFactoryInjection() throws Exception {
    BeansConfig config = new BeansConfig(beansProject, "src/org/springframework/beans/factory/annotation/testStringTypeFactoryBean-context.xml", IBeansConfig.Type.MANUAL);
   
    Map<String, Integer[]> allowedRefs = new HashMap<String, Integer[]>();
    allowedRefs.put("testBean", new Integer[] { 554 });

    AutowireDependencyProvider provider = new AutowireDependencyProvider(config, config);
View Full Code Here

    }
  }

  @Test
  public void testUnknownFactoryInjectionWithoutSpecificExtension() throws Exception {
    BeansConfig config = new BeansConfig(beansProject, "src/org/springframework/beans/factory/annotation/testUnknownTypeFactoryBean-context.xml", IBeansConfig.Type.MANUAL);
   
    Map<String, Integer[]> allowedRefs = new HashMap<String, Integer[]>();
    allowedRefs.put("unknownFactoryBean", new Integer[] { 580 });

    AutowireDependencyProvider provider = new AutowireDependencyProvider(config, config);
View Full Code Here

    assertEquals(0, references.size());
  }

  @Test
  public void testUnknownFactoryInjectionWithSpecificExtension() throws Exception {
    BeansConfig config = new BeansConfig(beansProject, "src/org/springframework/beans/factory/annotation/testUnknownTypeFactoryBean-context.xml", IBeansConfig.Type.MANUAL);
   
    Map<String, Integer[]> allowedRefs = new HashMap<String, Integer[]>();
    allowedRefs.put("unknownFactoryBean", new Integer[] { 580 });

    AutowireDependencyProvider provider = new AutowireDependencyProvider(config, config);
View Full Code Here

    }
  }
 
  @Test
  public void testEnvironmentInjection() throws Exception {
    BeansConfig config = new BeansConfig(beansProject, "src/org/springframework/beans/factory/annotation/testEnvironmentInjection-context.xml", IBeansConfig.Type.MANUAL);
   
    Map<String, Integer[]> allowedRefs = new HashMap<String, Integer[]>();
    allowedRefs.put("environment", new Integer[] { 591 });

    AutowireDependencyProvider provider = new AutowireDependencyProvider(config, config);
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig

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.