Package org.springframework.xd.dirt.module

Examples of org.springframework.xd.dirt.module.ModuleRegistry


    return new EmbeddedZooKeeper();
  }

  @Bean
  public ModuleRegistry moduleRegistry() {
    ModuleRegistry registry = mock(ModuleRegistry.class);
    setupMockFindsForSource(registry);
    setupMockFindsForSink(registry);
    setupMockFindsForProcessor(registry);
    setupMockFindsForJobs(registry);

    when(registry.findDefinition("bart", ModuleType.source)).thenReturn(ModuleDefinitions.dummy("bart",
        ModuleType.source));
    when(registry.findDefinition("foo", ModuleType.source)).thenReturn(ModuleDefinitions.dummy("foo",
        ModuleType.source));
    when(registry.findDefinition("boo", ModuleType.source)).thenReturn(ModuleDefinitions.dummy("boo",
        ModuleType.source));
    when(registry.findDefinition("http", ModuleType.source)).thenReturn(ModuleDefinitions.dummy("http",
        ModuleType.source));

    when(registry.findDefinition("boot", ModuleType.sink)).thenReturn(ModuleDefinitions.dummy("boot",
        ModuleType.sink));
    when(registry.findDefinition("bar", ModuleType.sink)).thenReturn(ModuleDefinitions.dummy("bar",
        ModuleType.sink));
    when(registry.findDefinition("badLog", ModuleType.sink)).thenReturn(ModuleDefinitions.dummy("badLog",
        ModuleType.sink));
    when(registry.findDefinition("file", ModuleType.sink)).thenReturn(ModuleDefinitions.dummy("file",
        ModuleType.sink));

    when(registry.findDefinition("job", ModuleType.job)).thenReturn(ModuleDefinitions.dummy("job",
        ModuleType.job));

    when(registry.findDefinition("aaak", ModuleType.processor)).thenReturn(ModuleDefinitions.dummy("aaak",
        ModuleType.processor));
    when(registry.findDefinition("goo", ModuleType.processor)).thenReturn(ModuleDefinitions.dummy("goo",
        ModuleType.processor));
    when(registry.findDefinition("blah", ModuleType.processor)).thenReturn(ModuleDefinitions.dummy("blah",
        ModuleType.processor));
    when(registry.findDefinition("filter", ModuleType.processor)).thenReturn(ModuleDefinitions.dummy("filter",
        ModuleType.processor));

    return registry;
  }
View Full Code Here

TOP

Related Classes of org.springframework.xd.dirt.module.ModuleRegistry

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.