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 Souza
2021-06-07 14:00:44 -03:00
committed by GitHub
parent f6d43975fa
commit 43e7ca515a
7 changed files with 34 additions and 21 deletions

View File

@ -23,19 +23,16 @@
package com.iluwatar.parameter.object;
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Application test
*/
class AppTest {
private static final Logger LOGGER = LoggerFactory.getLogger(AppTest.class);
@Test
void shouldExecuteApplicationWithoutException() {
App.main(new String[]{});
LOGGER.info("Executed successfully without exception.");
assertDoesNotThrow(() -> App.main(new String[]{}));
}
}