📍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:
		| @@ -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> | ||||
|   | ||||
| @@ -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"); | ||||
|   | ||||
| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user