Skip to content

Commit 841a318

Browse files
committed
test: Fix nullability warnings
1 parent a751ffa commit 841a318

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

gitignore-reader/src/test/java/nl/basjes/gitignore/TestGitIgnoreFiles.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import static nl.basjes.gitignore.Utils.findAllNonIgnored;
4040
import static org.junit.jupiter.api.Assertions.assertEquals;
4141
import static org.junit.jupiter.api.Assertions.assertFalse;
42+
import static org.junit.jupiter.api.Assertions.assertNotNull;
4243
import static org.junit.jupiter.api.Assertions.assertNull;
4344
import static org.junit.jupiter.api.Assertions.assertTrue;
4445
import static org.junit.jupiter.api.condition.OS.WINDOWS;
@@ -151,10 +152,13 @@ void testGetGlobalGitIgnore() throws Exception {
151152
URL dirWithGitIgnoreURL = this.getClass()
152153
.getClassLoader()
153154
.getResource("xdg_config_home");
155+
assertNotNull(dirWithGitIgnoreURL);
154156
String dirWithGitIgnore = dirWithGitIgnoreURL.getFile();
157+
155158
URL dirWithConfigGitIgnoreURL = this.getClass()
156159
.getClassLoader()
157160
.getResource("home");
161+
assertNotNull(dirWithConfigGitIgnoreURL);
158162
String dirWithConfigGitIgnore = dirWithConfigGitIgnoreURL.getFile();
159163

160164
assertNull(GitIgnoreFileSet.getGlobalGitIgnore(dirWithConfigGitIgnore, ""));

0 commit comments

Comments
 (0)