Yes, I do it. Just make sure that the test config yml files have different ports in them for the server.
Michael Corum VP, Technical Architecture Solutions RGA Reinsurance Company 16600 Swingley Ridge Road Chesterfield, Missouri 6301701706 T 636.736.7066 www.rgare.com From: "[email protected]" <[email protected]> on behalf of Kristofer Kjellgren <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Thursday, October 18, 2018 at 10:17 AM To: "[email protected]" <[email protected]> Subject: Running multiple dropwizard application rule for testing question External e-mail. Use caution! / Courriel externe. Faites attention! ________________________________ Hi, I have a parent maven project for testing only and two child applications (maven modules in pom). When I run my integration tests I have to start both my child applications. Is this supported by dropwizard? // Define resource test rules to load config and service @ClassRule public static final DropwizardAppRule<ServiceConfiguration1> RULE1 = new DropwizardAppRule<ServiceConfiguration1>( ServiceApplication1.class, ResourceHelpers.resourceFilePath("test_config1.yml"));; // Define resource test rules to load config and service @ClassRule public static final DropwizardAppRule<ServiceConfiguration2> RULE2 = new DropwizardAppRule<ServiceConfiguration2>( ServiceApplication2.class, ResourceHelpers.resourceFilePath("test_config2.yml"));; /** * Initialize Jersey client */ public static void initialize() { logger.info("ResourcesIntegrationTests -> setup"); client1 = new JerseyClientBuilder(RULE1.getEnvironment()).build("API Test Client in Memory"); client2 = new JerseyClientBuilder(RULE2.getEnvironment()).build("API Test Client in Memory"); } -- You received this message because you are subscribed to the Google Groups "dropwizard-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/d/optout<https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_optout&d=DwMFaQ&c=5uPv0lijNz76uSeaN5P0Zw&r=rh3Qrw7azSI9xkZZ-a8EEw&m=imb9D7PH-803ozPgLAgOIC3YD6tasOoPcuPjoGRst0c&s=ycwl2STbOKgX1VTNrCGCzd6PfUCkVVimmH8p4-N8clI&e=>. -- You received this message because you are subscribed to the Google Groups "dropwizard-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
