📍Use lombok, reformat, and optimize the code (#1560)

* Use lombok, reformat, and optimize the code

* Fix merge conflicts and some sonar issues

Co-authored-by: va1m <va1m@email.com>
This commit is contained in:
va1m
2021-03-13 13:19:21 +01:00
committed by GitHub
parent 0e26a6adb5
commit 5cf2fe009b
681 changed files with 2472 additions and 4966 deletions

View File

@ -61,11 +61,6 @@
</dependency>
<!-- Testing -->
<dependency>
<groupId>com.github.sbrannen</groupId>
<artifactId>spring-test-junit5</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>

View File

@ -49,7 +49,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
@ActiveProfiles("test")
@EnableAutoConfiguration
@ComponentScan
public class AggregatorRouteTest {
class AggregatorRouteTest {
@EndpointInject(uri = "{{entry}}")
private ProducerTemplate entry;
@ -64,7 +64,7 @@ public class AggregatorRouteTest {
*/
@Test
@DirtiesContext
public void testSplitter() throws Exception {
void testSplitter() throws Exception {
// Three items in one entry message
entry.sendBody("TEST1");

View File

@ -32,10 +32,10 @@ import org.junit.jupiter.api.Test;
/**
* Tests MessageAggregationStrategy
*/
public class MessageAggregationStrategyTest {
class MessageAggregationStrategyTest {
@Test
public void testAggregate() {
void testAggregate() {
var mas = new MessageAggregationStrategy();
var oldExchange = new DefaultExchange((CamelContext) null);
oldExchange.getIn().setBody("TEST1");
@ -49,7 +49,7 @@ public class MessageAggregationStrategyTest {
}
@Test
public void testAggregateOldNull() {
void testAggregateOldNull() {
var mas = new MessageAggregationStrategy();
var newExchange = new DefaultExchange((CamelContext) null);