This is the codeAbility Sharing Platform! Learn more about the
codeAbility Sharing Platform
.
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
codeAbility Sharing Platform
Manage
Activity
Members
Labels
Plan
Issues
43
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
development
sharing
codeAbility Sharing Platform
Commits
aad50efe
Commit
aad50efe
authored
3 years ago
by
Eduard Frankford
Browse files
Options
Downloads
Patches
Plain Diff
added IT for searchservice
parent
93cf2975
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!62
created achievementService and separated some functionality out of...
,
!45
Achievements
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/at/ac/uibk/gitsearch/service/SearchServiceIT.java
+11
-0
11 additions, 0 deletions
...st/java/at/ac/uibk/gitsearch/service/SearchServiceIT.java
with
11 additions
and
0 deletions
src/test/java/at/ac/uibk/gitsearch/service/SearchServiceIT.java
+
11
−
0
View file @
aad50efe
...
@@ -142,6 +142,17 @@ public class SearchServiceIT {
...
@@ -142,6 +142,17 @@ public class SearchServiceIT {
}
}
@Test
public
void
testEmailSearch
()
throws
IOException
{
searchClient
.
getLowLevelClient
().
getNodes
().
forEach
(
n
->
{
LOGGER
.
info
(
"Using node {}"
,
n
);});
SearchResultsDTO
searchResultPage
=
searchService
.
searchResultForAuthorEmail
(
"stefan.podlipnig@tuwien.ac.at"
,
SearchInputDTO
.
PAGE_SIZE
);
org
.
junit
.
Assert
.
assertNotNull
(
searchResultPage
.
getSearchResult
());
org
.
junit
.
Assert
.
assertTrue
(
"At least one test hit"
,
searchResultPage
.
getHitCount
()
>=
1
);
assertThat
(
searchResultPage
.
getSearchResult
(),
everyItem
(
hasProperty
(
"metadata"
,
hasProperty
(
"creator"
,
hasItemInArray
(
hasProperty
(
"email"
,
containsString
(
"stefan.podlipnig@tuwien.ac.at"
)))))));
}
@Test
@Test
public
void
testKeywordSearch
()
throws
IOException
{
public
void
testKeywordSearch
()
throws
IOException
{
final
SearchInputMetadataDTO
searchMetadata
=
new
SearchInputMetadataDTO
(
null
,
"latex"
,
null
,
null
,
null
);
final
SearchInputMetadataDTO
searchMetadata
=
new
SearchInputMetadataDTO
(
null
,
"latex"
,
null
,
null
,
null
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment