Examples of BeansConfig


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

    }
  }

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

    Map<String, Integer[]> allowedRefs = new HashMap<String, Integer[]>();
    allowedRefs.put("testBean", new Integer[] { 70 });
    allowedRefs.put("testBean2", new Integer[] { 143 });
    allowedRefs.put("testBean3", new Integer[] { 148 });
View Full Code Here

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

    }
  }

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

    Map<String, Integer[]> allowedRefs = new HashMap<String, Integer[]>();
    allowedRefs.put("testBean", new Integer[] { 70 });
    allowedRefs.put("testBean3", new Integer[] { 148 });
    allowedRefs.put("testBean4", new Integer[] { 130 });
View Full Code Here

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

    }
  }

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

    Map<String, Integer[]> allowedRefs = new HashMap<String, Integer[]>();
    allowedRefs.put("testBean", new Integer[] { 70 });
    allowedRefs.put("testBean2", new Integer[] { 196 });
    allowedRefs.put("testBean3", new Integer[] { 201 });
View Full Code Here

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

    BeansCorePlugin.setModel(modelBackup);
  }

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

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

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

    }
  }

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

    Map<String, Integer[]> allowedRefs = new HashMap<String, Integer[]>();
    allowedRefs.put("testBean", new Integer[] { 42, 68, 82, 87, 93 });
    allowedRefs.put("nestedTestBean", new Integer[] { 87 });
    allowedRefs.put("beanFactory", new Integer[] { 98 });
View Full Code Here

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

    }
  }

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

    Map<String, Integer[]> allowedRefs = new HashMap<String, Integer[]>();
    allowedRefs.put("testBean", new Integer[] { 42, 68, 87, 93 });
    allowedRefs.put("nestedTestBean", new Integer[] { 87 });
    allowedRefs.put("beanFactory", new Integer[] { 98 });
View Full Code Here

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

    }
  }

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

    Map<String, Integer[]> allowedRefs = new HashMap<String, Integer[]>();
    allowedRefs.put("testBean", new Integer[] { 42, 68, 87, 93, 140 });
    allowedRefs.put("nestedTestBean", new Integer[] { 87 });
View Full Code Here

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

    }
  }

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

    Map<String, Integer[]> allowedRefs = new HashMap<String, Integer[]>();
    allowedRefs.put("testBean", new Integer[] { 42, 149, 161, 166 });
    allowedRefs.put("nestedTestBean1", new Integer[] { 156, 166 });
    allowedRefs.put("nestedTestBean2", new Integer[] { 156, 166 });
View Full Code Here

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

  }

  @Test
  public void testOptionalResourceInjectionWithNoDependencies() throws Exception {
    BeansConfig config = new BeansConfig(beansProject, "src/org/springframework/beans/factory/annotation/testOptionalResourceInjectionWithNoDependencies-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 testConstructorResourceInjection() throws Exception {
    BeansConfig config = new BeansConfig(beansProject, "src/org/springframework/beans/factory/annotation/testConstructorResourceInjection-context.xml", IBeansConfig.Type.MANUAL);

    Map<String, Integer[]> allowedRefs = new HashMap<String, Integer[]>();
    allowedRefs.put("testBean", new Integer[] { 42, 244, 262, 278 });
    allowedRefs.put("nestedTestBean", new Integer[] { 262 });
    allowedRefs.put("beanFactory", new Integer[] { 262 });
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.