Fixed most reported issues by SonarCloud.
This commit is contained in:
@ -40,6 +40,11 @@
|
||||
<artifactId>junit</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-engine</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
|
@ -25,13 +25,15 @@ package com.iluwatar.saga.choreography;
|
||||
import com.iluwatar.saga.orchestration.SagaApplication;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
|
||||
|
||||
|
||||
/***
|
||||
* empty test
|
||||
*/
|
||||
public class SagaApplicationTest {
|
||||
@Test
|
||||
public void mainTest() {
|
||||
SagaApplication.main(new String[]{});
|
||||
public void shouldExecuteWithoutException() {
|
||||
assertDoesNotThrow(() -> SagaApplication.main(new String[]{}));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user