refactor: #1012 - Resolve Sonar report: missing assertions in several AppTest classes (#1784)

Co-authored-by: Subhrodip Mohanta <hello@subho.xyz>
This commit is contained in:
Samuel SouzaandSubhrodip Mohanta authored and GitHub committed 2021-06-07 22:30:44 +05:30
1 parent f6d43975fa
commit 43e7ca515a
7 files changed
+34 -21

No files matched your search

@@ -23,16 +23,19 @@
package com.iluwatar.monad;
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
import org.junit.jupiter.api.Test;
/**
* Application Test
*/
public class AppTest {
class AppTest {
@Test
void testMain() {
App.main(new String[]{});
void shouldExecuteApplicationWithoutException() {
assertDoesNotThrow(() -> App.main(new String[]{}));
}
}