-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improved hasExtension method and updated tests
- Loading branch information
1 parent
27eda05
commit b8c907e
Showing
3 changed files
with
5 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b8c907e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better, thanks!
b8c907e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@draeger @Onur101010 It would be good to let a bit more time to react, in particular when doing changes to the core jsbml classes like SBase and AbstractSBase. And first put what you plan to do on pivotal a little bit before.
Also after each changes, in particular when touching the core, you need to run all the jsbml tests. That is not enforced at the moment but it is important to do it. In this case, you would have noticed that the tests where not compiling.
Last, linked giving a bit more time to react, the method you have added already exist: org.sbml.jsbml.AbstractSBase.isSetPlugin(String). We can add another method, that's fine but I will call org.sbml.jsbml.AbstractSBase.isSetPlugin(String) from hasExtension as the implementation is better there and like this we have only one location to maintain.
b8c907e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @niko-rodrigue for this important hint! As a consequence, we should implement continuous integration and testing with Travis upon push.
However, please note that the method
isSetPlugin
does not deliver the correct result at the moment (see #216).