Fixed most reported issues by SonarCloud.
This commit is contained in:
		| @@ -61,10 +61,12 @@ public class Character implements Prototype { | ||||
|  | ||||
|       @Override | ||||
|       public void set(Stats stat, Integer val) { | ||||
|         // Does Nothing | ||||
|       } | ||||
|  | ||||
|       @Override | ||||
|       public void remove(Stats stat) { | ||||
|         // Does Nothing. | ||||
|       } | ||||
|     }; | ||||
|   } | ||||
|   | ||||
| @@ -25,13 +25,15 @@ package com.iluwatar.property; | ||||
|  | ||||
| import org.junit.jupiter.api.Test; | ||||
|  | ||||
| import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; | ||||
|  | ||||
| /** | ||||
|  * Application test | ||||
|  */ | ||||
| public class AppTest { | ||||
| class AppTest { | ||||
|  | ||||
|   @Test | ||||
|   public void test() { | ||||
|     App.main(new String[]{}); | ||||
|   void shouldExecuteWithoutException() { | ||||
|     assertDoesNotThrow(() -> App.main(new String[]{})); | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user