Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
core
Merge requests
!1160
arrow head in gpml
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
arrow head in gpml
merge-14.0.13
into
master
Overview
0
Commits
2
Pipelines
1
Changes
7
Merged
Piotr Gawron
requested to merge
merge-14.0.13
into
master
4 years ago
Overview
0
Commits
2
Pipelines
1
Changes
7
Expand
Closes
#1262 (closed)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
c8885469
2 commits,
4 years ago
7 files
+
111
−
88
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
converter-CellDesigner/src/test/java/lcsb/mapviewer/converter/model/celldesigner/types/ModifierTypeUtilsTest.java
+
0
−
39
Options
@@ -119,45 +119,6 @@ public class ModifierTypeUtilsTest extends CellDesignerTestFunctions {
utils
.
updateLineEndPoint
(
operator
);
}
@Test
(
expected
=
InvalidStateException
.
class
)
public
void
testCreateInvalidModifierForStringType2
()
throws
Exception
{
// artificial implementation of Modifier that is invalid
class
InvalidModifier
extends
Modifier
{
private
static
final
long
serialVersionUID
=
1L
;
@SuppressWarnings
(
"unused"
)
public
InvalidModifier
()
{
throw
new
NotImplementedException
();
}
@SuppressWarnings
(
"unused"
)
public
InvalidModifier
(
Species
alias
,
CellDesignerElement
<?>
element
)
{
throw
new
NotImplementedException
();
}
}
// mopdify one of the elements of OperatorType so it will have invalid
// implementation
ModifierType
typeToModify
=
ModifierType
.
CATALYSIS
;
Class
<?
extends
Modifier
>
clazz
=
typeToModify
.
getClazz
();
try
{
Field
field
=
typeToModify
.
getClass
().
getDeclaredField
(
"clazz"
);
field
.
setAccessible
(
true
);
field
.
set
(
typeToModify
,
InvalidModifier
.
class
);
// and check if we catch properly information about problematic
// implementation
utils
.
createModifierForStringType
(
typeToModify
.
getStringName
(),
new
GenericProtein
(
"id"
));
}
finally
{
// restore correct values for the modified type (if not then other test
// might fail...)
Field
field
=
typeToModify
.
getClass
().
getDeclaredField
(
"clazz"
);
field
.
setAccessible
(
true
);
field
.
set
(
typeToModify
,
clazz
);
}
}
@Test
(
expected
=
InvalidArgumentException
.
class
)
public
void
testCreateModifierForStringType2
()
throws
Exception
{
utils
.
createModifierForStringType
(
"unjkType"
,
null
);
Loading