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

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


  }
 
  @Test
  public void testBeansProjectXMLConfigFileRemovedWithExternalConfigSet() throws Exception {
    IProject secondProject = StsTestUtil.createPredefinedProject("beans-config-tests-2", Activator.PLUGIN_ID);
    BeansProject secondBeansProject = new BeansProject(model, secondProject);
    model.addProject(secondBeansProject);
   
    beansProject.addConfig("basic-bean-config.xml", IBeansConfig.Type.MANUAL);
    secondBeansProject.addConfig("second-bean-config.xml", IBeansConfig.Type.MANUAL);
   
    BeansConfigSet configSet = new BeansConfigSet(beansProject, "test-set", IBeansConfigSet.Type.MANUAL);
    configSet.addConfig("basic-bean-config.xml");
    configSet.addConfig("/beans-config-tests-2/second-bean-config.xml");
    beansProject.addConfigSet(configSet);
View Full Code Here


 
  @Test
  public void testBeansProjectMixedConfigSetRemovedExternalJavaConfig() throws Exception {
    IProject secondProject = StsTestUtil.createPredefinedProject("beans-config-tests-2", Activator.PLUGIN_ID);
    IJavaProject secondJavaProject = JdtUtils.getJavaProject(secondProject);
    BeansProject secondBeansProject = new BeansProject(model, secondProject);
    model.addProject(secondBeansProject);
   
    beansProject.addConfig("basic-bean-config.xml", IBeansConfig.Type.MANUAL);
    beansProject.addConfig("java:org.test.spring.SimpleConfigurationClass", IBeansConfig.Type.MANUAL);
    secondBeansProject.addConfig("second-bean-config.xml", IBeansConfig.Type.MANUAL);
    secondBeansProject.addConfig("java:org.test.spring.ExternalConfigurationClass", IBeansConfig.Type.MANUAL);
   
    BeansConfigSet configSet = new BeansConfigSet(beansProject, "test-set", IBeansConfigSet.Type.MANUAL);
    configSet.addConfig("basic-bean-config.xml");
    configSet.addConfig("java:org.test.spring.ExternalConfigurationClass");
    beansProject.addConfigSet(configSet);
View Full Code Here

  }
 
  @Test
  public void testGetBeanConfigsWithExternalFile() throws Exception {
    IProject secondProject = StsTestUtil.createPredefinedProject("beans-config-tests-2", Activator.PLUGIN_ID);
    BeansProject secondBeansProject = new BeansProject(model, secondProject);
    model.addProject(secondBeansProject);
   
    beansProject.addConfig("basic-bean-config.xml", IBeansConfig.Type.MANUAL);
    secondBeansProject.addConfig("second-bean-config.xml", IBeansConfig.Type.MANUAL);
   
    IFile xmlFile = (IFile) secondProject.findMember("second-bean-config.xml");
    Set<IBeansConfig> configs = beansProject.getConfigs(xmlFile, false);
    assertEquals(1, configs.size());
    IBeansConfig config = configs.iterator().next();
View Full Code Here

TOP

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

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.