Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
urgi-is
FAIDARE
Commits
6ffaa014
Commit
6ffaa014
authored
Apr 07, 2021
by
Cyril Pommier
Committed by
Célia Michotey
Aug 20, 2021
Browse files
remove deprecated tests elements. Build ok, test fails
parent
f587f6a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
backend/src/test/java/fr/inra/urgi/faidare/api/brapi/v1/GermplasmControllerTest.java
View file @
6ffaa014
...
...
@@ -108,7 +108,6 @@ class GermplasmControllerTest {
GermplasmVO
germplasm
=
new
GermplasmVO
();
germplasm
.
setGroupId
(
0L
);
germplasm
.
setSpeciesGroup
(
Collections
.
singletonList
(
1L
));
germplasm
.
setGermplasmDbId
(
"germplasmDbId"
);
germplasm
.
setDefaultDisplayName
(
"defaultDisplayName"
);
...
...
@@ -119,7 +118,6 @@ class GermplasmControllerTest {
DonorVO
donor
=
new
DonorVO
();
donor
.
setDonorGermplasmPUI
(
"pui"
);
donor
.
setDonationDate
(
1
);
germplasm
.
setDonors
(
Collections
.
singletonList
(
donor
));
when
(
service
.
getById
(
anyString
())).
thenReturn
(
germplasm
);
...
...
backend/src/test/java/fr/inra/urgi/faidare/api/faidare/v1/GnpISGermplasmControllerTest.java
View file @
6ffaa014
...
...
@@ -95,7 +95,6 @@ class GnpISGermplasmControllerTest {
GermplasmVO
germplasm
=
new
GermplasmVO
();
germplasm
.
setGroupId
(
0L
);
germplasm
.
setSpeciesGroup
(
Collections
.
singletonList
(
1L
));
germplasm
.
setGermplasmDbId
(
"germplasmDbId"
);
germplasm
.
setDefaultDisplayName
(
"defaultDisplayName"
);
...
...
@@ -107,7 +106,6 @@ class GnpISGermplasmControllerTest {
DonorVO
donor
=
new
DonorVO
();
donor
.
setDonorGermplasmPUI
(
"pui"
);
donor
.
setDonationDate
(
1
);
germplasm
.
setDonors
(
Collections
.
singletonList
(
donor
));
PaginatedList
<
GermplasmVO
>
germplasmPage
=
new
PaginatedList
<>(
null
,
Collections
.
singletonList
(
germplasm
));
...
...
@@ -127,7 +125,7 @@ class GnpISGermplasmControllerTest {
.
andExpect
(
jsonPath
(
"$.donors[0].donorGermplasmPUI"
,
is
(
donor
.
getDonorGermplasmPUI
())))
// GnpIS specific fields should appear
.
andExpect
(
jsonPath
(
"$.donors[0].donationDate"
,
is
(
donor
.
getDonationDate
())))
//
.andExpect(jsonPath("$.donors[0].donationDate", is(donor.getDonationDate())))
.
andExpect
(
jsonPath
(
"$.collection[0].name"
,
is
(
collection
.
getName
())));
}
...
...
backend/src/test/java/fr/inra/urgi/faidare/repository/es/GermplasmRepositoryTest.java
View file @
6ffaa014
...
...
@@ -78,7 +78,7 @@ class GermplasmRepositoryTest {
@Test
void
should_Get_By_Id_Mcpd
()
{
String
germplasmDbId
=
"13705"
;
GermplasmMcpdVO
germplasm
=
repository
.
getMcpdById
(
germplasmDbId
);
GermplasmMcpdVO
germplasm
=
repository
.
get
As
McpdById
(
germplasmDbId
);
assertThat
(
germplasm
).
isNotNull
();
assertThat
(
germplasm
.
getGermplasmDbId
()).
isEqualTo
(
germplasmDbId
);
}
...
...
@@ -87,7 +87,7 @@ class GermplasmRepositoryTest {
@Test
void
should_Not_Get_Mcpd_With_Wrong_Id
()
{
String
germplasmDbId
=
"489485184"
;
GermplasmMcpdVO
germplasm
=
repository
.
getMcpdById
(
germplasmDbId
);
GermplasmMcpdVO
germplasm
=
repository
.
get
As
McpdById
(
germplasmDbId
);
assertThat
(
germplasm
).
isNull
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment