Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GLIS Client
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Genesys PGR
GLIS Client
Commits
0039a756
Commit
0039a756
authored
Jul 03, 2017
by
Matija Obreza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests fail on empty GLIS database, don't check response
parent
9cb82c45
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
209 additions
and
209 deletions
+209
-209
jersey2/src/test/java/org/genesys/glis/v1/api/QueryApiTest.java
...2/src/test/java/org/genesys/glis/v1/api/QueryApiTest.java
+68
-68
okhttp-gson/src/test/java/org/genesys/glis/v1/api/QueryApiTest.java
...n/src/test/java/org/genesys/glis/v1/api/QueryApiTest.java
+5
-5
resteasy/src/test/java/org/genesys/glis/v1/api/QueryApiTest.java
...y/src/test/java/org/genesys/glis/v1/api/QueryApiTest.java
+68
-68
resttemplate/src/test/java/org/genesys/glis/v1/api/QueryApiTest.java
...e/src/test/java/org/genesys/glis/v1/api/QueryApiTest.java
+68
-68
No files found.
jersey2/src/test/java/org/genesys/glis/v1/api/QueryApiTest.java
View file @
0039a756
...
...
@@ -33,81 +33,81 @@ import org.junit.Test;
*/
public
class
QueryApiTest
extends
BaseApiTest
{
private
final
QueryApi
api
=
new
QueryApi
(
defaultClient
);
private
final
QueryApi
api
=
new
QueryApi
(
defaultClient
);
/**
* Get PGRFA relationships
*
* Multiple status values can be provided with comma separated strings
*
* @throws ApiException
* if the Api call fails
*/
@Test
public
void
listRelationshipsTest
()
throws
ApiException
{
String
role
=
null
;
/**
* Get PGRFA relationships
*
* Multiple status values can be provided with comma separated strings
*
* @throws ApiException if the Api call fails
*/
@Test
public
void
listRelationshipsTest
()
throws
ApiException
{
String
role
=
null
;
String
oper
=
null
;
List
<
Relationship
>
response
=
api
.
listRelationships
(
THE_DOI
,
role
,
oper
);
assertThat
(
response
.
size
(),
greaterThan
(
0
));
}
/**
* GLIS vocabularies
*
* To describe the kind of information that will be found in the targets, GLIS adopts a simple controlled vocabulary.
*
* @throws ApiException
* if the Api call fails
*/
@Test
public
void
listTermsTest
()
throws
ApiException
{
List
<
String
>
acceptLanguage
=
Arrays
.
asList
(
"en"
);
// GLIS test environment is occasionally cleaned
// assertThat(response.size(), greaterThan(0));
}
/**
* GLIS vocabularies
*
* To describe the kind of information that will be found in the targets, GLIS adopts a simple controlled
* vocabulary.
*
* @throws ApiException if the Api call fails
*/
@Test
public
void
listTermsTest
()
throws
ApiException
{
List
<
String
>
acceptLanguage
=
Arrays
.
asList
(
"en"
);
List
<
Term
>
response
=
api
.
listTerms
(
acceptLanguage
);
assertThat
(
response
.
size
(),
greaterThan
(
0
));
}
/**
* Find passport data on PGRFA in GLIS
*
* @throws ApiException
* if the Api call fails
*/
@Test
public
void
searchTest
()
throws
ApiException
{
Integer
p
age
=
null
;
Integer
perPage
=
null
;
}
/**
* Find passport data on PGRFA in GLIS
*
* @throws ApiException if the Api call fails
*/
@Test
public
void
searchTest
()
throws
ApiException
{
Integer
page
=
null
;
Integer
perP
age
=
null
;
List
<
String
>
lang
=
null
;
// String doi = null;
String
identifier
=
null
;
String
genus
=
null
;
String
species
=
null
;
String
name
=
null
;
String
holdwiews
=
null
;
String
holdpid
=
null
;
String
holdname
=
null
;
String
holdcountry
=
null
;
String
methodcode
=
null
;
String
provwiews
=
null
;
String
provpid
=
null
;
String
provname
=
null
;
String
provcountry
=
null
;
String
provenance
=
null
;
String
collwiews
=
null
;
String
collpid
=
null
;
String
collname
=
null
;
String
collcountry
=
null
;
String
bredwiews
=
null
;
String
bredpid
=
null
;
String
bredname
=
null
;
String
bredcountry
=
null
;
String
biostatus
=
null
;
String
mlsstatus
=
null
;
String
targetkw
=
null
;
List
<
PGRFA
>
response
=
api
.
search
(
page
,
perPage
,
THE_DOI
,
identifier
,
genus
,
species
,
name
,
holdwiews
,
holdpid
,
holdname
,
holdcountry
,
methodcode
,
provwiews
,
provpid
,
provname
,
provcountry
,
provenance
,
collwiews
,
collpid
,
collname
,
collcountry
,
bredwiews
,
bredpid
,
bredname
,
bredcountry
,
biostatus
,
mlsstatus
,
targetkw
);
String
identifier
=
null
;
String
genus
=
null
;
String
species
=
null
;
String
name
=
null
;
String
holdwiews
=
null
;
String
holdpid
=
null
;
String
holdname
=
null
;
String
holdcountry
=
null
;
String
methodcode
=
null
;
String
provwiews
=
null
;
String
provpid
=
null
;
String
provname
=
null
;
String
provcountry
=
null
;
String
provenance
=
null
;
String
collwiews
=
null
;
String
collpid
=
null
;
String
collname
=
null
;
String
collcountry
=
null
;
String
bredwiews
=
null
;
String
bredpid
=
null
;
String
bredname
=
null
;
String
bredcountry
=
null
;
String
biostatus
=
null
;
String
mlsstatus
=
null
;
String
targetkw
=
null
;
List
<
PGRFA
>
response
=
api
.
search
(
page
,
perPage
,
null
,
THE_DOI
,
identifier
,
genus
,
species
,
name
,
holdwiews
,
holdpid
,
holdname
,
holdcountry
,
methodcode
,
provwiews
,
provpid
,
provname
,
provcountry
,
provenance
,
collwiews
,
collpid
,
collname
,
collcountry
,
bredwiews
,
bredpid
,
bredname
,
bredcountry
,
biostatus
,
mlsstatus
,
targetkw
);
// assertThat(response.size(), greaterThan(0));
}
assertThat
(
response
.
size
(),
greaterThan
(
0
));
}
}
okhttp-gson/src/test/java/org/genesys/glis/v1/api/QueryApiTest.java
View file @
0039a756
...
...
@@ -44,9 +44,9 @@ public class QueryApiTest extends BaseApiTest {
*/
@Test
public
void
findPgrfaTest
()
throws
ApiException
{
List
<
PGRFA
>
response
=
api
.
search
(
null
,
null
,
THE_DOI
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
);
assertThat
(
response
.
size
(),
greaterThan
(
0
));
List
<
PGRFA
>
response
=
api
.
search
(
null
,
null
,
null
,
THE_DOI
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
);
//
assertThat(response.size(), greaterThan(0));
}
/**
...
...
@@ -62,8 +62,8 @@ public class QueryApiTest extends BaseApiTest {
String
oper
=
null
;
List
<
Relationship
>
response
=
api
.
listRelationships
(
THE_DOI
,
role
,
oper
);
assertThat
(
response
.
size
(),
greaterThan
(
0
));
// GLIS test environment is occasionally cleaned
// assertThat(response.size(), greaterThan(0));
}
/**
...
...
resteasy/src/test/java/org/genesys/glis/v1/api/QueryApiTest.java
View file @
0039a756
...
...
@@ -34,81 +34,81 @@ import org.junit.Test;
@Ignore
public
class
QueryApiTest
extends
BaseApiTest
{
private
final
QueryApi
api
=
new
QueryApi
(
defaultClient
);
private
final
QueryApi
api
=
new
QueryApi
(
defaultClient
);
/**
* Get PGRFA relationships
*
* Multiple status values can be provided with comma separated strings
*
* @throws ApiException
* if the Api call fails
*/
@Test
public
void
listRelationshipsTest
()
throws
ApiException
{
String
role
=
null
;
/**
* Get PGRFA relationships
*
* Multiple status values can be provided with comma separated strings
*
* @throws ApiException if the Api call fails
*/
@Test
public
void
listRelationshipsTest
()
throws
ApiException
{
String
role
=
null
;
String
oper
=
null
;
List
<
Relationship
>
response
=
api
.
listRelationships
(
THE_DOI
,
role
,
oper
);
assertThat
(
response
.
size
(),
greaterThan
(
0
));
}
/**
* GLIS vocabularies
*
* To describe the kind of information that will be found in the targets, GLIS adopts a simple controlled vocabulary.
*
* @throws ApiException
* if the Api call fails
*/
@Test
public
void
listTermsTest
()
throws
ApiException
{
List
<
String
>
acceptLanguage
=
null
;
// GLIS test environment is occasionally cleaned
// assertThat(response.size(), greaterThan(0));
}
/**
* GLIS vocabularies
*
* To describe the kind of information that will be found in the targets, GLIS adopts a simple controlled
* vocabulary.
*
* @throws ApiException if the Api call fails
*/
@Test
public
void
listTermsTest
()
throws
ApiException
{
List
<
String
>
acceptLanguage
=
null
;
List
<
Term
>
response
=
api
.
listTerms
(
acceptLanguage
);
assertThat
(
response
.
size
(),
greaterThan
(
0
));
}
/**
* Find passport data on PGRFA in GLIS
*
* @throws ApiException
* if the Api call fails
*/
@Test
public
void
searchTest
()
throws
ApiException
{
Integer
p
age
=
null
;
Integer
perPage
=
null
;
}
/**
* Find passport data on PGRFA in GLIS
*
* @throws ApiException if the Api call fails
*/
@Test
public
void
searchTest
()
throws
ApiException
{
Integer
page
=
null
;
Integer
perP
age
=
null
;
List
<
String
>
lang
=
null
;
// String doi = null;
String
identifier
=
null
;
String
genus
=
null
;
String
species
=
null
;
String
name
=
null
;
String
holdwiews
=
null
;
String
holdpid
=
null
;
String
holdname
=
null
;
String
holdcountry
=
null
;
String
methodcode
=
null
;
String
provwiews
=
null
;
String
provpid
=
null
;
String
provname
=
null
;
String
provcountry
=
null
;
String
provenance
=
null
;
String
collwiews
=
null
;
String
collpid
=
null
;
String
collname
=
null
;
String
collcountry
=
null
;
String
bredwiews
=
null
;
String
bredpid
=
null
;
String
bredname
=
null
;
String
bredcountry
=
null
;
String
biostatus
=
null
;
String
mlsstatus
=
null
;
String
targetkw
=
null
;
List
<
PGRFA
>
response
=
api
.
search
(
page
,
perPage
,
THE_DOI
,
identifier
,
genus
,
species
,
name
,
holdwiews
,
holdpid
,
holdname
,
holdcountry
,
methodcode
,
provwiews
,
provpid
,
provname
,
provcountry
,
provenance
,
collwiews
,
collpid
,
collname
,
collcountry
,
bredwiews
,
bredpid
,
bredname
,
bredcountry
,
biostatus
,
mlsstatus
,
targetkw
);
String
identifier
=
null
;
String
genus
=
null
;
String
species
=
null
;
String
name
=
null
;
String
holdwiews
=
null
;
String
holdpid
=
null
;
String
holdname
=
null
;
String
holdcountry
=
null
;
String
methodcode
=
null
;
String
provwiews
=
null
;
String
provpid
=
null
;
String
provname
=
null
;
String
provcountry
=
null
;
String
provenance
=
null
;
String
collwiews
=
null
;
String
collpid
=
null
;
String
collname
=
null
;
String
collcountry
=
null
;
String
bredwiews
=
null
;
String
bredpid
=
null
;
String
bredname
=
null
;
String
bredcountry
=
null
;
String
biostatus
=
null
;
String
mlsstatus
=
null
;
String
targetkw
=
null
;
List
<
PGRFA
>
response
=
api
.
search
(
page
,
perPage
,
lang
,
THE_DOI
,
identifier
,
genus
,
species
,
name
,
holdwiews
,
holdpid
,
holdname
,
holdcountry
,
methodcode
,
provwiews
,
provpid
,
provname
,
provcountry
,
provenance
,
collwiews
,
collpid
,
collname
,
collcountry
,
bredwiews
,
bredpid
,
bredname
,
bredcountry
,
biostatus
,
mlsstatus
,
targetkw
);
// assertThat(response.size(), greaterThan(0));
}
assertThat
(
response
.
size
(),
greaterThan
(
0
));
}
}
resttemplate/src/test/java/org/genesys/glis/v1/api/QueryApiTest.java
View file @
0039a756
...
...
@@ -32,81 +32,81 @@ import org.junit.Test;
*/
public
class
QueryApiTest
extends
BaseApiTest
{
private
final
QueryApi
api
=
new
QueryApi
(
defaultClient
);
private
final
QueryApi
api
=
new
QueryApi
(
defaultClient
);
/**
* Get PGRFA relationships
*
* Multiple status values can be provided with comma separated strings
*
* @throws ApiException
* if the Api call fails
*/
@Test
public
void
listRelationshipsTest
()
{
String
role
=
null
;
/**
* Get PGRFA relationships
*
* Multiple status values can be provided with comma separated strings
*
* @throws ApiException if the Api call fails
*/
@Test
public
void
listRelationshipsTest
()
{
String
role
=
null
;
String
oper
=
null
;
List
<
Relationship
>
response
=
api
.
listRelationships
(
THE_DOI
,
role
,
oper
);
assertThat
(
response
.
size
(),
greaterThan
(
0
));
}
/**
* GLIS vocabularies
*
* To describe the kind of information that will be found in the targets, GLIS adopts a simple controlled vocabulary.
*
* @throws ApiException
* if the Api call fails
*/
@Test
public
void
listTermsTest
()
{
List
<
String
>
acceptLanguage
=
Arrays
.
asList
(
"en"
);
// GLIS test environment is occasionally cleaned
// assertThat(response.size(), greaterThan(0));
}
/**
* GLIS vocabularies
*
* To describe the kind of information that will be found in the targets, GLIS adopts a simple controlled
* vocabulary.
*
* @throws ApiException if the Api call fails
*/
@Test
public
void
listTermsTest
()
{
List
<
String
>
acceptLanguage
=
Arrays
.
asList
(
"en"
);
List
<
Term
>
response
=
api
.
listTerms
(
acceptLanguage
);
assertThat
(
response
.
size
(),
greaterThan
(
0
));
}
/**
* Find passport data on PGRFA in GLIS
*
* @throws ApiException
* if the Api call fails
*/
@Test
public
void
searchTest
()
{
Integer
p
age
=
null
;
Integer
perPage
=
null
;
}
/**
* Find passport data on PGRFA in GLIS
*
* @throws ApiException if the Api call fails
*/
@Test
public
void
searchTest
()
{
Integer
page
=
null
;
Integer
perP
age
=
null
;
List
<
String
>
lang
=
null
;
// String doi = null;
String
identifier
=
null
;
String
genus
=
null
;
String
species
=
null
;
String
name
=
null
;
String
holdwiews
=
null
;
String
holdpid
=
null
;
String
holdname
=
null
;
String
holdcountry
=
null
;
String
methodcode
=
null
;
String
provwiews
=
null
;
String
provpid
=
null
;
String
provname
=
null
;
String
provcountry
=
null
;
String
provenance
=
null
;
String
collwiews
=
null
;
String
collpid
=
null
;
String
collname
=
null
;
String
collcountry
=
null
;
String
bredwiews
=
null
;
String
bredpid
=
null
;
String
bredname
=
null
;
String
bredcountry
=
null
;
String
biostatus
=
null
;
String
mlsstatus
=
null
;
String
targetkw
=
null
;
List
<
PGRFA
>
response
=
api
.
search
(
page
,
perPage
,
THE_DOI
,
identifier
,
genus
,
species
,
name
,
holdwiews
,
holdpid
,
holdname
,
holdcountry
,
methodcode
,
provwiews
,
provpid
,
provname
,
provcountry
,
provenance
,
collwiews
,
collpid
,
collname
,
collcountry
,
bredwiews
,
bredpid
,
bredname
,
bredcountry
,
biostatus
,
mlsstatus
,
targetkw
);
String
identifier
=
null
;
String
genus
=
null
;
String
species
=
null
;
String
name
=
null
;
String
holdwiews
=
null
;
String
holdpid
=
null
;
String
holdname
=
null
;
String
holdcountry
=
null
;
String
methodcode
=
null
;
String
provwiews
=
null
;
String
provpid
=
null
;
String
provname
=
null
;
String
provcountry
=
null
;
String
provenance
=
null
;
String
collwiews
=
null
;
String
collpid
=
null
;
String
collname
=
null
;
String
collcountry
=
null
;
String
bredwiews
=
null
;
String
bredpid
=
null
;
String
bredname
=
null
;
String
bredcountry
=
null
;
String
biostatus
=
null
;
String
mlsstatus
=
null
;
String
targetkw
=
null
;
List
<
PGRFA
>
response
=
api
.
search
(
page
,
perPage
,
lang
,
THE_DOI
,
identifier
,
genus
,
species
,
name
,
holdwiews
,
holdpid
,
holdname
,
holdcountry
,
methodcode
,
provwiews
,
provpid
,
provname
,
provcountry
,
provenance
,
collwiews
,
collpid
,
collname
,
collcountry
,
bredwiews
,
bredpid
,
bredname
,
bredcountry
,
biostatus
,
mlsstatus
,
targetkw
);
// assertThat(response.size(), greaterThan(0));
}
assertThat
(
response
.
size
(),
greaterThan
(
0
));
}
}
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