1
0
mirror of https://github.com/pcvolkmer/onkostar-plugin-dnpm.git synced 2025-07-04 10:02:55 +00:00

Issue #4: Ermittle Studien mit Namen der Kategorie

This commit is contained in:
2023-03-14 15:11:50 +01:00
parent fcb7e6c14d
commit 599b8687b1
3 changed files with 33 additions and 20 deletions

View File

@ -9,11 +9,12 @@ public class StudieTest {
@Test
void shouldDetectStudieWithNctNumber() {
var studie = new Studie(
"teststudie1",
"Kat 1",
1,
null,
"Nct-12345678",
"Teststudie 1",
"Teststudie 1",
1
"Teststudie 1"
);
assertThat(studie.getType()).isEqualTo(Studie.Type.NCT);
@ -22,11 +23,12 @@ public class StudieTest {
@Test
void shouldDetectStudieWithEudraCtNumber() {
var studie = new Studie(
"teststudie1",
"Kat 1",
1,
null,
"2023-012345-12",
"Teststudie 1",
"Teststudie 1",
1
"Teststudie 1"
);
assertThat(studie.getType()).isEqualTo(Studie.Type.EUDRA_CT);
@ -35,11 +37,12 @@ public class StudieTest {
@Test
void shouldReturnStudieWithUnknownNumberScheme() {
var studie = new Studie(
"Kat 1",
1,
"teststudie1",
null,
"Teststudie 1",
"Teststudie 1",
1
"Teststudie 1"
);
assertThat(studie.getType()).isEqualTo(Studie.Type.UNKNOWN);