|
@@ -4,8 +4,8 @@ import nl.altindag.log.LogCaptor;
|
|
|
import org.junit.jupiter.api.AfterEach;
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
|
|
-import static org.assertj.core.api.Assertions.assertThat;
|
|
|
-import static org.junit.jupiter.api.Assertions.*;
|
|
|
+import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
|
+import static org.junit.jupiter.api.Assertions.assertThrows;
|
|
|
|
|
|
public class ConfigTest {
|
|
|
|
|
@@ -27,10 +27,4 @@ public class ConfigTest {
|
|
|
assertThrows(NullPointerException.class, () -> new Config(MOD_ID, new String[]{null}, false) {});
|
|
|
}
|
|
|
|
|
|
- @Test
|
|
|
- public void _logWarningIfEmpty() {
|
|
|
- new Config(MOD_ID, false) {};
|
|
|
- assertThat(logCaptor.getWarnLogs()).containsExactly("Empty config: " + MOD_ID + " []");
|
|
|
- }
|
|
|
-
|
|
|
}
|