Skip to content

More models tests #234

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

Merged
merged 2 commits into from
Jan 17, 2025
Merged

More models tests #234

merged 2 commits into from
Jan 17, 2025

Conversation

umbernhard
Copy link
Collaborator

No description provided.

@umbernhard umbernhard changed the title Models tests More models tests Jan 14, 2025
@@ -33,8 +34,8 @@ public void AuditInfoTest() {
gson = new GsonBuilder().setPrettyPrinting().create();
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to have some pre-method comments to identify what aspects of the code base each test is targeting.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will make sure I start doing this!

}

@Test
public void testAuditInfoNoContests() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For things that are used across tests and that aren't going to change -- like "electionType", seeds, risk limits -- you could make them final static members of the class and reuse them.

For variables that are basically just going to be set and then not reassigned later, you could make them final (eg electionDate, publicMeetingDate).

@michelleblom michelleblom merged commit 5c1b5a4 into main Jan 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants