File tree Expand file tree Collapse file tree
gitignore-reader/src/test/java/nl/basjes/gitignore Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939import static nl .basjes .gitignore .Utils .findAllNonIgnored ;
4040import static org .junit .jupiter .api .Assertions .assertEquals ;
4141import static org .junit .jupiter .api .Assertions .assertFalse ;
42+ import static org .junit .jupiter .api .Assertions .assertNotNull ;
4243import static org .junit .jupiter .api .Assertions .assertNull ;
4344import static org .junit .jupiter .api .Assertions .assertTrue ;
4445import 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 , "" ));
You can’t perform that action at this time.
0 commit comments