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

Examples of org.springframework.ide.eclipse.beans.core.internal.model.BeansModel.ResourceChangeEventHandler


  public void testSimpleJavaConfigAddedHandler() throws Exception {
    IType configClass = javaProject.findType("org.test.spring.SimpleConfigurationClass");
    beansProject.addConfig(BeansConfigFactory.JAVA_CONFIG_TYPE + "org.test.spring.SimpleConfigurationClass", IBeansConfig.Type.MANUAL);
    IBeansConfig config = beansProject.getConfig(BeansConfigFactory.JAVA_CONFIG_TYPE + "org.test.spring.SimpleConfigurationClass");
   
    ResourceChangeEventHandler handler = this.model.new ResourceChangeEventHandler();
    IResource resource = configClass.getResource();
    handler.configAdded((IFile)resource, IResourceChangeEvent.POST_BUILD, IBeansConfig.Type.MANUAL);
   
    Set<IBeansConfig> configs = beansProject.getConfigs();
    assertEquals(1, configs.size());
    assertEquals(config, configs.iterator().next());
View Full Code Here


  public void testInnerClassJavaConfigAddedHandler() throws Exception {
    IType configClass = javaProject.findType("org.test.spring.OuterConfigurationClass$InnerConfigurationClass");
    beansProject.addConfig(BeansConfigFactory.JAVA_CONFIG_TYPE + "org.test.spring.OuterConfigurationClass$InnerConfigurationClass", IBeansConfig.Type.MANUAL);
    IBeansConfig config = beansProject.getConfig(BeansConfigFactory.JAVA_CONFIG_TYPE + "org.test.spring.OuterConfigurationClass$InnerConfigurationClass");
   
    ResourceChangeEventHandler handler = this.model.new ResourceChangeEventHandler();
    IResource resource = configClass.getResource();
    handler.configAdded((IFile)resource, IResourceChangeEvent.POST_BUILD, IBeansConfig.Type.MANUAL);
   
    Set<IBeansConfig> configs = beansProject.getConfigs();
    assertEquals(1, configs.size());
    assertEquals(config, configs.iterator().next());
View Full Code Here

  public void testSimpleJavaConfigAddedHandler() throws Exception {
    IType configClass = javaProject.findType("org.test.spring.SimpleConfigurationClass");
    beansProject.addConfig(BeansConfigFactory.JAVA_CONFIG_TYPE + "org.test.spring.SimpleConfigurationClass", IBeansConfig.Type.MANUAL);
    IBeansConfig config = beansProject.getConfig(BeansConfigFactory.JAVA_CONFIG_TYPE + "org.test.spring.SimpleConfigurationClass");
   
    ResourceChangeEventHandler handler = this.model.new ResourceChangeEventHandler();
    IResource resource = configClass.getResource();
    handler.configAdded((IFile)resource, IResourceChangeEvent.POST_BUILD, IBeansConfig.Type.MANUAL);
   
    Set<IBeansConfig> configs = beansProject.getConfigs();
    assertEquals(1, configs.size());
    assertEquals(config, configs.iterator().next());
View Full Code Here

  public void testInnerClassJavaConfigAddedHandler() throws Exception {
    IType configClass = javaProject.findType("org.test.spring.OuterConfigurationClass$InnerConfigurationClass");
    beansProject.addConfig(BeansConfigFactory.JAVA_CONFIG_TYPE + "org.test.spring.OuterConfigurationClass$InnerConfigurationClass", IBeansConfig.Type.MANUAL);
    IBeansConfig config = beansProject.getConfig(BeansConfigFactory.JAVA_CONFIG_TYPE + "org.test.spring.OuterConfigurationClass$InnerConfigurationClass");
   
    ResourceChangeEventHandler handler = this.model.new ResourceChangeEventHandler();
    IResource resource = configClass.getResource();
    handler.configAdded((IFile)resource, IResourceChangeEvent.POST_BUILD, IBeansConfig.Type.MANUAL);
   
    Set<IBeansConfig> configs = beansProject.getConfigs();
    assertEquals(1, configs.size());
    assertEquals(config, configs.iterator().next());
View Full Code Here

TOP

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

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.