Examples of TestingNodeModule


Examples of com.proofpoint.node.testing.TestingNodeModule

    {
        Injector injector = Guice.createInjector(
                new ApplicationNameModule("test-application"),
                new ConfigurationModule(new ConfigurationFactory(ImmutableMap.of("testing.discovery.uri", "fake://server"))),
                new JsonModule(),
                new TestingNodeModule(),
                new TestingMBeanModule(),
                new ReportingModule(),
                new DiscoveryModule()
        );
View Full Code Here

Examples of com.proofpoint.node.testing.TestingNodeModule

    {
        Bootstrap app = bootstrapApplication("test-application")
                .doNotInitializeLogging()
                .withModules(
                        new JsonModule(),
                        new TestingNodeModule(),
                        new DiscoveryModule(),
                        new ReportingModule(),
                        new TestingMBeanModule()
                );
View Full Code Here

Examples of com.proofpoint.node.testing.TestingNodeModule

    @Test
    public void testReportingModule()
    {
        Guice.createInjector(
                new ApplicationNameModule("test-application"),
                new TestingNodeModule(),
                new TestingDiscoveryModule(),
                new TestingMBeanModule(),
                new ConfigurationModule(new ConfigurationFactory(ImmutableMap.<String, String>of())),
                new JsonModule(),
                new ReportingModule(),
View Full Code Here

Examples of com.proofpoint.node.testing.TestingNodeModule

        Map<String, String> properties = ImmutableMap.of();
        ConfigurationFactory configFactory = new ConfigurationFactory(properties);
        Injector injector = Guice.createInjector(Stage.PRODUCTION,
                new JmxModule(),
                new ApplicationNameModule("test-application"),
                new TestingNodeModule(),
                new MBeanModule(),
                new ConfigurationModule(configFactory));
        injector.getInstance(JmxAgent.class);
    }
View Full Code Here

Examples of com.proofpoint.node.testing.TestingNodeModule

            throws Exception
    {
        injector = Guice.createInjector(
                new ApplicationNameModule("test-application"),
                new ConfigurationModule(new ConfigurationFactory(ImmutableMap.<String, String>of())),
                new TestingNodeModule(),
                new TestingDiscoveryModule(),
                new TestingMBeanModule(),
                new ReportingModule(),
                new Module()
                {
View Full Code Here

Examples of com.proofpoint.node.testing.TestingNodeModule

    public void testHttpSelectorAnnotation()
    {
        injector = Guice.createInjector(
                new ApplicationNameModule("test-application"),
                new ConfigurationModule(new ConfigurationFactory(ImmutableMap.<String, String>of())),
                new TestingNodeModule(),
                new TestingDiscoveryModule(),
                new TestingMBeanModule(),
                new ReportingModule(),
                new Module()
                {
View Full Code Here

Examples of com.proofpoint.node.testing.TestingNodeModule

    private static TestingHttpServer createServer(final TestResource resource)
    {
        return Guice.createInjector(
                new ApplicationNameModule("test-application"),
                new TestingNodeModule(),
                explicitJaxrsModule(),
                new JsonModule(),
                new ReportingModule(),
                new Module()
                {
View Full Code Here

Examples of com.proofpoint.node.testing.TestingNodeModule

            throws Exception
    {
        return Bootstrap.bootstrapApplication("test-application")
                .doNotInitializeLogging()
                .withModules(
                        new TestingNodeModule(),
                        new TestingDiscoveryModule(),
                        new TestingMBeanModule(),
                        new ReportingModule(),
                        module
                )
View Full Code Here

Examples of com.proofpoint.node.testing.TestingNodeModule

            throws Exception
    {
        Bootstrap app = bootstrapApplication("test-application")
                .doNotInitializeLogging()
                .withModules(
                        new TestingNodeModule(),
                        new TestingHttpServerModule(),
                        new JsonModule(),
                        explicitJaxrsModule(),
                        new JmxHttpModule(),
                        new ReportingModule(),
View Full Code Here

Examples of com.proofpoint.node.testing.TestingNodeModule

        final DummyServlet servlet = new DummyServlet();

        Bootstrap app = bootstrapApplication("test-application")
                .doNotInitializeLogging()
                .withModules(
                        new TestingNodeModule(),
                        new TestingHttpServerModule(),
                        new Module()
                        {
                            @Override
                            public void configure(Binder binder)
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.