-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
download eform resources directly from data gov and fix some validations
- Loading branch information
1 parent
d8387a3
commit bae61a1
Showing
11 changed files
with
144 additions
and
23 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
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/digital/slovensko/autogram/core/eforms/XDCValidatorTests.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 digital.slovensko.autogram.core.eforms; | ||
|
||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.MethodSource; | ||
|
||
import eu.europa.esig.dss.model.DSSDocument; | ||
|
||
public class XDCValidatorTests { | ||
@ParameterizedTest | ||
@MethodSource({"digital.slovensko.autogram.TestMethodSources#xdcDocumentsProvider", | ||
"digital.slovensko.autogram.TestMethodSources#xdcDocumentsWithXmlMimetypeProvider"}) | ||
void testReturnsTrueForAllXDCsRegerdlessOfMimeType(DSSDocument document) { | ||
Assertions.assertTrue(XDCValidator.isXDCContent(document)); | ||
} | ||
|
||
@ParameterizedTest | ||
@MethodSource({"digital.slovensko.autogram.TestMethodSources#nonXdcXmlDocumentsProvider"}) | ||
void testReturnsFalseForAllNonXDCsRegerdlessOfMimeType(DSSDocument document) { | ||
Assertions.assertFalse(XDCValidator.isXDCContent(document)); | ||
} | ||
} |
Empty file.
Binary file modified
BIN
+4 Bytes
(100%)
src/test/resources/digital/slovensko/autogram/mismatched_xsd_ga_xdc.asice
Binary file not shown.
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
Binary file modified
BIN
+6 Bytes
(100%)
src/test/resources/digital/slovensko/autogram/mismatched_xslt_ga_xdc.asice
Binary file not shown.
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