-
Notifications
You must be signed in to change notification settings - Fork 0
Issue676 #1
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
base: main
Are you sure you want to change the base?
Conversation
- Converted nAuthors3() test method to use @ParameterizedTest with @MethodSource Addresses JabRef#676
…t method to use @ParameterizedTest with @MethodSource Addresses JabRef#676
jablib/src/test/java/org/jabref/logic/citationkeypattern/CitationKeyGeneratorTest.java
Show resolved
Hide resolved
jablib/src/test/java/org/jabref/logic/citationkeypattern/CitationKeyGeneratorTest.java
Show resolved
Hide resolved
|
What is the status of this PR? |
I just resolved the submodule conflicts (csl-locales and csl-styles). It seems that this PR has no conflicts with the base branch now. |
espertusnu
left a comment
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.
Please look for additional opportunities to parameterize tests. Let me know if you have any questions.
jablib/src/test/java/org/jabref/logic/citationkeypattern/CitationKeyGeneratorTest.java
Outdated
Show resolved
Hide resolved
| } | ||
|
|
||
| @Test | ||
| void authIniNEmptyReturnsEmpty() { |
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 can be combined with the previous method.
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.
Why not parameterize these?
|
[like] Spertus, Ellen reacted to your message:
________________________________
From: Avery ***@***.***>
Sent: Tuesday, October 7, 2025 5:16:11 PM
To: Zeglow/jabref ***@***.***>
Cc: Spertus, Ellen ***@***.***>; Comment ***@***.***>
Subject: Re: [Zeglow/jabref] Issue676 (PR #1)
@Zeglow commented on this pull request.
________________________________
In jablib/src/test/java/org/jabref/logic/citationkeypattern/CitationKeyGeneratorTest.java<#1 (comment)>:
Lucia and I both worked on the [CitationKeyGeneratorTest.java] to complete all the methods. I'll update my version with her changes as soon as possible.
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A44JAIZRQIF7EGHXW5IY4D33WPYNXAVCNFSM6AAAAACHD6ES5KVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTGMJRGA4TANBUHE>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I hadn't remembered that multiple people were working on that file. Just let me know what lines are your responsibility, and I'll review only those. |
|
It did seem unlike you not to do a thorough job! |
Thank you! I worked on the methods starting from line 579 -> oneAuthorPlusIni. |
jablib/src/test/java/org/jabref/logic/citationkeypattern/CitationKeyGeneratorTest.java
Outdated
Show resolved
Hide resolved
jablib/src/test/java/org/jabref/logic/citationkeypattern/CitationKeyGeneratorTest.java
Outdated
Show resolved
Hide resolved
jablib/src/test/java/org/jabref/logic/citationkeypattern/CitationKeyGeneratorTest.java
Outdated
Show resolved
Hide resolved
jablib/src/test/java/org/jabref/logic/citationkeypattern/CitationKeyGeneratorTest.java
Outdated
Show resolved
Hide resolved
|
Hi Ellen, |
|
I'm sorry you were unwell and I hope you are all better. While it would be easier for the jabref people if you merge your changes, one of you wouldn't be listed as a contributor. Something you could if Lucia agreed would be to split on file boundaries, where you submit the 2 files you did alone, and she submits the file you both worked on, mentioning you in the PR. @Zeglow |
Hi Ellen, Thank you for your understanding! I discussed this with Lucia. Actually, I don't have any files that I worked on independently - we only collaborated on CitationKeyGeneratorTest.java together. So we've decided that I will submit the PR for CitationKeyGeneratorTest.java and mention her contributions in the PR description. And she will submit the file she worked on independently. This way we'll both be listed as contributors. |
espertusnu
left a comment
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.
I see that I failed to share these comments. Don't bother correcting them in this PR, but do correct them.
| Arguments.of("Green Scheduling of `Whatever`", "GreenSchedulingofWhatever") | ||
| ); | ||
| } | ||
|
|
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 could be CSV.
| } | ||
|
|
||
| @Test | ||
| void generateKeyCorrectKeyWithAndOthersAtTheEnd() { |
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 too.
Homework 2 Pull Request
Checklist before creating
Questions
Will you get full credit on this assignment?
Yes, I expect to receive full credit. I successfully converted 15 test methods with multiple assertions to use @ParameterizedTest, following JUnit 5 best practices.
How long did you spend on the assignment?
Approximately 6 hours total, including:
What problems did you encounter, and how did you deal with them?
JBang had problems during the initial
build jabrefstep. After trying multiple solutions, it resolved itself, likely due to network connectivity issues. This delayed the initial setup by about 2 hours.Initially I ran tests in the wrong module (jabgui instead of jablib). Solved by identifying the correct file location.
What help did you give or receive on this assignment (including answering these question)? What was your AI usage?
I collaborated with a classmate on task division - she handled the first 11 methods and the other class in AB while I converted the remaining 15. We coordinated to avoid duplicate work.
I used AI assistance (Claude) for:
Summary of Changes
Methods converted: nAuthors1, applyModifiers, checkLegalKeyNoUnwantedCharacters, checkLegalKeyUnwantedCharacters, keywordsNKeywordsSeparatedBySpace, keywordNKeywordsSeparatedBySpace, title, camel, shortTitle, veryShortTitle, lastPage, pagePrefix, firstPage, nAuthors3, oneAuthorPlusIni