-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MedlineImporterTest #547
MedlineImporterTest #547
Conversation
BibtexEntry is called BibEntry now. Not sure how the CircleCI tests passes, but that is the reason that the Travis CI tests won't. |
I'm afraid i cant use the BibEntry. Somehow i can't use the libary ("BibEntry cannot be resolved to a type"), but i fetched my upstream. |
1a898e4
to
761f42a
Compare
761f42a
to
1a898e4
Compare
Do you have a package net.sf.jabref.model.entry.BibEntry? model/entry/BibEntry.java |
I updated the branch with BibEntry. We will solve the package problem with our tutor. Thanks Oscar |
1a898e4
to
0d80dd5
Compare
*/ | ||
public class MedlineImporterTest { | ||
|
||
MedlineImporter medlineImp; |
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.
Do not use abbreviations. Either use medlineImporter
or importer
as the context is clear by being in the MedlineImporterTest
class.
122cc2d
to
7e61cc6
Compare
For now I took care of the smaller changes, more changes coming soon |
Added more test files and added testing against bibtex files. |
5e88217
to
a78735e
Compare
@boceckts Is this ready for review? Then please add this label? |
Testcoverage is at only ~80% so far for MedlineImporter and at ~90% for MedlineHandler |
a78735e
to
b095947
Compare
What is the status here? DL was beginning of match. |
try (InputStream shouldBeIs = MedlineImporter.class.getResourceAsStream("MedlineImporterArticleIDTest.xml"); | ||
InputStream bibIn = MedlineImporter.class.getResourceAsStream("MedlineImporterArticleIDTestBib.bib")) { | ||
List<BibEntry> entries = medlineImporter.importEntries(shouldBeIs, new OutputPrinterToNull()); | ||
Assert.assertEquals(1, entries.size()); |
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.
this assertion is not necessary, it is done in BibtexEntryAssert.assertEquals(InputStream, List <BibEntry>)
634e1c6
to
db2ec40
Compare
Please rebase everything on master and create on commit. Description is here: https://github.com/JabRef/jabref/wiki/Tools#rebase-everything-as-one-commit-on-master Please use There should no commits handling the InspecImporter in this pull request. Inspec has been handled in #356 |
Yes. And these tests should be included here, I think. If the tests fail, the failing tests in conjunction with the bugfix can be in another PR. |
The failed tests can be included here with |
Yes, of course and this is an even better solution. 😉 |
After some testing i came to the conclusion that this bug/issue is not a problem in the current development version. At the moment I am struggeling to coming up with the right test case. At the moment I am thinking of using a |
What is the current status of this PR? |
waiting for some feedback regardnig the issue #1267 and my comment and also on comments from me regarding the use of a |
5b87a0f
to
2de4344
Compare
@simonharrer your suggested version leads to some problems |
ok i will revert it asap |
7b980e2
to
61205bb
Compare
I reverted the changes of StringUtil and added a ignored label to the tests that would fail. |
Thanks. Please open a new PR then for the fix of the failing test. :) |
New PR started because the old one was on a wrong branch.
MedlineImporTest + Testfile added
Couldn't cover two exceptions in importEntries.