Fixed most reported issues by SonarCloud.
This commit is contained in:
		| @@ -39,6 +39,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> | ||||
|   | ||||
| @@ -24,10 +24,12 @@ package com.iluwatar.roleobject; | ||||
|  | ||||
| import org.junit.Test; | ||||
|  | ||||
| import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; | ||||
|  | ||||
| public class ApplicationRoleObjectTest { | ||||
|  | ||||
|   @Test | ||||
|   public void mainTest() { | ||||
|     ApplicationRoleObject.main(new String[]{}); | ||||
|   public void shouldExecuteApplicationWithoutException() { | ||||
|     assertDoesNotThrow(() -> ApplicationRoleObject.main(new String[]{})); | ||||
|   } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user