Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
48f4a169
Commit
48f4a169
authored
Jun 29, 2020
by
Piotr Gawron
Browse files
allow for both http and https urls
parent
27f759d8
Pipeline
#29081
passed with stage
in 11 minutes and 19 seconds
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
48f4a169
minerva
(
15.0.2
)
stable
;
urgency
=
medium
*
Bug
fix
:
annotations
using
identifiers
.
org
urls
sometimes
required
http
and
sometimes
required
https
url
(#
1297
)
--
Piotr
Gawron
<
piotr
.
gawron
@
uni
.
lu
>
Mon
,
29
Jun
2020
11
:
00
:
00
+
0200
minerva
(
15.0.1
)
stable
;
urgency
=
medium
*
Bug
fix
:
when
there
was
problem
with
DAPI
minerva
threw
unexpected
error
(#
1316
)
...
...
model/src/main/java/lcsb/mapviewer/model/map/MiriamType.java
View file @
48f4a169
This diff is collapsed.
Click to expand it.
model/src/test/java/lcsb/mapviewer/model/map/MiriamTypeGenericTest.java
View file @
48f4a169
...
...
@@ -91,6 +91,24 @@ public class MiriamTypeGenericTest extends ModelTestFunctions {
}
}
@Test
public
void
httpAndHttpsForIdentifiersOrg
()
{
if
(!
deprecated
)
{
boolean
httpIdentifiersOrgUriExists
=
false
;
boolean
httpsIdentifiersOrgUriExists
=
false
;
for
(
String
uri
:
miriamType
.
getUris
())
{
if
(
uri
.
toLowerCase
().
startsWith
(
"http://identifiers.org/"
)
&&
uri
.
endsWith
(
"/"
))
{
httpIdentifiersOrgUriExists
=
true
;
}
if
(
uri
.
toLowerCase
().
startsWith
(
"https://identifiers.org/"
)
&&
uri
.
endsWith
(
"/"
))
{
httpsIdentifiersOrgUriExists
=
true
;
}
}
assertTrue
(
"Http identifiers.org url does not exists for: "
+
miriamType
,
httpIdentifiersOrgUriExists
);
assertTrue
(
"Https identifiers.org url does not exists for: "
+
miriamType
,
httpsIdentifiersOrgUriExists
);
}
}
@Test
public
void
testGetMiriamByIncompleteUri
()
throws
Exception
{
for
(
String
uri
:
miriamType
.
getUris
())
{
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment