This repository has been archived by the owner on Nov 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ImgPriority change for Transkribus/TranskribusSwtGui#263
- Loading branch information
kahlep
committed
Jan 24, 2019
1 parent
120f46a
commit da7eb1a
Showing
5 changed files
with
52 additions
and
4 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
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
22 changes: 22 additions & 0 deletions
22
src/test/java/eu/transkribus/core/io/util/ImgPriorityTest.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,22 @@ | ||
package eu.transkribus.core.io.util; | ||
|
||
import java.util.List; | ||
import java.util.stream.Collectors; | ||
|
||
import org.junit.Assert; | ||
import org.junit.Test; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
public class ImgPriorityTest { | ||
private static final Logger logger = LoggerFactory.getLogger(ImgPriorityTest.class); | ||
|
||
@Test | ||
public void testGetAllowedFilenameExtensions() { | ||
List<String> exts = ImgPriority.getAllowedFilenameExtensions(); | ||
Assert.assertNotNull(exts); | ||
logger.debug("Collected allowed file extensions: " + exts.stream().collect(Collectors.joining(", "))); | ||
Assert.assertFalse(exts.isEmpty()); | ||
} | ||
|
||
} |