-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#38 Testing Framework - ignorableFileAnalyser simple test.
- Loading branch information
1 parent
0faf6d0
commit 2bd5ac8
Showing
3 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...s/image-importer/src/test/java/gallerymine/backend/analyzer/IgnorableFileAnayserTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package gallerymine.backend.analyzer; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
public class IgnorableFileAnayserTest { | ||
|
||
IgnorableFileAnayser analyser = new IgnorableFileAnayser(); | ||
|
||
@org.junit.Test | ||
public void accepts() { | ||
assertTrue("System file was not ignored", analyser.accepts(".git")); | ||
assertTrue("Mac thumb file was not ignored", analyser.accepts(".DS_Store")); | ||
assertTrue("Text read.me file was not ignored", analyser.accepts("read.me")); | ||
assertTrue("Git readme.md file was not ignored", analyser.accepts("README.md")); | ||
assertTrue("Text file was not ignored", analyser.accepts("sample.txt")); | ||
assertFalse("JPEG file was ignored", analyser.accepts("sample.jpg")); | ||
} | ||
} |