-
-
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
Add tests for "changed" flag #5640
Conversation
509e9d6
to
482e4a1
Compare
eaa9e71
to
b5ac16a
Compare
Thank you for the feedback --> Update: This PR not change any functionality, but add tests. - I changed the PR description accordingly. |
// modify entry | ||
entry.setField(StandardField.AUTHOR, "BlaBla"); | ||
|
||
BibDatabaseContext context = new BibDatabaseContext(firstParse.getDatabase(), firstParse.getMetaData(), |
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.
Only write entry once? Makes the test more straightforward
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 test documents that the databaseWriter
does not set/reset flags and stores the new entry format during writing. Thus, I renamed to ...EvenInThePrecenseOfSavedModifications
src/test/java/org/jabref/logic/exporter/BibtexDatabaseWriterTest.java
Outdated
Show resolved
Hide resolved
8ea1da3
to
3c7a0a2
Compare
- Add tests - Guard AtomicFileWriter with a try-with-resources during save - use Objects.requireNonNull in DefaultFileUpdateMontitor - add comment - some auto-formattings - Fix typo in comment
3c7a0a2
to
c900236
Compare
All requested changes should now be included. |
3a6a0a7 Update masarykova-univerzita-pravnicka-fakulta.csl (#5655) 136653a Corrections for Conservation Biology style (#5661) af148f8 Update biophysics-and-physicobiology.csl (#5646) 8842ed1 Create production-and-operations-management.csl (#5654) 6b4965f update style file (#5656) e5f6066 Update to Ruby 3.0.2 (#5657) 61c530c Reindent/reorder (#5653) 118c217 Update gems (#5652) 46cd9ab harvard-university-of-bath.csl: correct et-al-min (#5651) 37ba705 Create focaal-journal-of-global-and-historical-anthropology.csl (#5649) e22b8a5 Create developmental-medicine-and-child-neurology.csl (#5644) f7bc32c Bump nokogiri from 1.11.4 to 1.12.5 (#5640) git-subtree-dir: buildres/csl/csl-styles git-subtree-split: 3a6a0a7
Update Do not change any functionality, but add tests.
Add tests for changed
(Follow-up to #5635)