mirror of
https://github.com/pcvolkmer/onkostar-plugin-dnpm.git
synced 2025-07-03 17:52:53 +00:00
Issue #19: Integration des ATC-Codes-Plugins in dieses Plugin
closes #19
This commit is contained in:
@ -1,28 +0,0 @@
|
||||
package ATCCodes;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
class AtcCodeTest {
|
||||
|
||||
@Test
|
||||
void testShouldDetectAtcCodeScheme() {
|
||||
assertTrue(AtcCode.isAtcCode("L01"));
|
||||
assertTrue(AtcCode.isAtcCode("L01A"));
|
||||
assertTrue(AtcCode.isAtcCode("L01AA"));
|
||||
assertTrue(AtcCode.isAtcCode("L01AA01"));
|
||||
}
|
||||
|
||||
@Test
|
||||
void testShouldDetectInvalidAtcCodeScheme() {
|
||||
assertFalse(AtcCode.isAtcCode(null));
|
||||
assertFalse(AtcCode.isAtcCode(" "));
|
||||
assertFalse(AtcCode.isAtcCode("irgendwas"));
|
||||
assertFalse(AtcCode.isAtcCode("L00AA"));
|
||||
assertFalse(AtcCode.isAtcCode("Z01AA"));
|
||||
assertFalse(AtcCode.isAtcCode("L01AA0"));
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user