Examples of BeansConfig


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

    }
  }

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

    Map<String, Integer[]> allowedRefs = new HashMap<String, Integer[]>();
    allowedRefs.put("testBean", new Integer[] { 312, 317 });
    allowedRefs.put("nestedTestBean1", new Integer[] { 317 });
    allowedRefs.put("nestedTestBean2", new Integer[] { 317 });
View Full Code Here

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

    }
  }

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

    Map<String, Integer[]> allowedRefs = new HashMap<String, Integer[]>();
    allowedRefs.put("testBean", new Integer[] { 356, 361 });
    allowedRefs.put("nestedTestBean1", new Integer[] { 361 });
    allowedRefs.put("nestedTestBean2", new Integer[] { 361 });
View Full Code Here

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

    }
  }

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

    Map<String, Integer[]> allowedRefs = new HashMap<String, Integer[]>();
    allowedRefs.put("testBean1", new Integer[] { 394 });
    allowedRefs.put("testBean2", new Integer[] { 394 });
View Full Code Here

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

    }
  }

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

    Map<String, Integer[]> allowedRefs = new HashMap<String, Integer[]>();
    allowedRefs.put("testBean1", new Integer[] { 407 });
    allowedRefs.put("testBean2", new Integer[] { 407 });
View Full Code Here

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

    }
  }

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

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

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

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

    }
  }

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

    Map<String, Integer[]> allowedRefs = new HashMap<String, Integer[]>();
    allowedRefs.put("testBean1", new Integer[] { 423 });
    allowedRefs.put("testBean2", new Integer[] { 423 });
View Full Code Here

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

    assertTrue(provider.getValidationProblems().size() == 1);
  }

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

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

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

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

    }
  }

  @Test
  public void testMethodInjectionWithMapAndNoMatches() throws Exception {
    BeansConfig config = new BeansConfig(beansProject, "src/org/springframework/beans/factory/annotation/testMethodInjectionWithMapAndNoMatches-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

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

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

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

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

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

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

    }
  }

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

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

    AutowireDependencyProvider provider = new AutowireDependencyProvider(config, config);
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.