Java 11 migrate remaining e (#1112)
* Moves eip-aggregator to Java 11 * Moves eip-message-channel to Java 11 * Moves eip-publish-subscribe to Java 11 * Moves eip-splitter to Java 11 * Moves eip-wire-tap to Java 11 * Moves event-aggregator to Java 11 * Moves event-asynchronous to Java 11 * Moves event-driven-architecture to Java 11 * Moves event-queue to Java 11 * Moves event-sourcing to Java 11 * Moves execute-around to Java 11 * Moves extension-objects to Java 11
This commit is contained in:
committed by
Ilkka Seppälä
parent
b09b100614
commit
fb2c026822
@ -32,7 +32,6 @@ public class AppTest {
|
||||
|
||||
@Test
|
||||
public void testMain() throws Exception {
|
||||
String[] args = {};
|
||||
App.main(args);
|
||||
App.main(new String[]{});
|
||||
}
|
||||
}
|
||||
|
@ -23,8 +23,9 @@
|
||||
|
||||
package com.iluwatar.eip.wiretap.routes;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
import org.apache.camel.EndpointInject;
|
||||
import org.apache.camel.Message;
|
||||
import org.apache.camel.ProducerTemplate;
|
||||
import org.apache.camel.component.mock.MockEndpoint;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@ -36,13 +37,11 @@ import org.springframework.test.annotation.DirtiesContext;
|
||||
import org.springframework.test.context.ActiveProfiles;
|
||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
/**
|
||||
* Test class for <i>WireTapRoute</i>.
|
||||
* <p>
|
||||
* In order for it to work we have to mock endpoints we want to read/write to. To mock those we need to substitute
|
||||
* original endpoint names to mocks.
|
||||
* In order for it to work we have to mock endpoints we want to read/write to. To mock those we need
|
||||
* to substitute original endpoint names to mocks.
|
||||
* </p>
|
||||
*/
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ -63,6 +62,7 @@ public class WireTapRouteTest {
|
||||
|
||||
/**
|
||||
* Test if both endpoints receive exactly one message containing the same, unchanged body.
|
||||
*
|
||||
* @throws Exception in case of en exception during the test
|
||||
*/
|
||||
@Test
|
||||
@ -76,8 +76,8 @@ public class WireTapRouteTest {
|
||||
endpoint.assertIsSatisfied();
|
||||
wireTapEndpoint.assertIsSatisfied();
|
||||
|
||||
Message endpointIn = endpoint.getExchanges().get(0).getIn();
|
||||
Message wireTapEndpointIn = wireTapEndpoint.getExchanges().get(0).getIn();
|
||||
var endpointIn = endpoint.getExchanges().get(0).getIn();
|
||||
var wireTapEndpointIn = wireTapEndpoint.getExchanges().get(0).getIn();
|
||||
|
||||
assertEquals("TEST", endpointIn.getBody());
|
||||
assertEquals("TEST", wireTapEndpointIn.getBody());
|
||||
|
Reference in New Issue
Block a user