Fixed most reported issues by SonarCloud.

This commit is contained in:
Toxic Dreamz
2020-08-15 21:47:39 +04:00
parent e7e3ace01f
commit 31471acb69
190 changed files with 1426 additions and 661 deletions

View File

@ -21,10 +21,13 @@
* THE SOFTWARE.
*/
package com.iluwatar.leaderfollowers;
package com;
import com.iluwatar.leaderfollowers.App;
import org.junit.Test;
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
/**
*
* Application test
@ -33,9 +36,8 @@ import org.junit.Test;
public class AppTest {
@Test
public void test() throws InterruptedException {
String[] args = {};
App.main(args);
public void shouldExecuteApplicationWithoutException() {
assertDoesNotThrow(() -> App.main(new String[]{}));
}
}

View File

@ -21,8 +21,10 @@
* THE SOFTWARE.
*/
package com.iluwatar.leaderfollowers;
package com;
import com.iluwatar.leaderfollowers.Task;
import com.iluwatar.leaderfollowers.TaskHandler;
import org.junit.Assert;
import org.junit.Test;

View File

@ -21,8 +21,10 @@
* THE SOFTWARE.
*/
package com.iluwatar.leaderfollowers;
package com;
import com.iluwatar.leaderfollowers.Task;
import com.iluwatar.leaderfollowers.TaskSet;
import org.junit.Assert;
import org.junit.Test;

View File

@ -21,8 +21,11 @@
* THE SOFTWARE.
*/
package com.iluwatar.leaderfollowers;
package com;
import com.iluwatar.leaderfollowers.TaskHandler;
import com.iluwatar.leaderfollowers.TaskSet;
import com.iluwatar.leaderfollowers.WorkCenter;
import org.junit.Assert;
import org.junit.Test;