Skip to content

Commit

Permalink
Update WithParameterSupplier.java
Browse files Browse the repository at this point in the history
Capture unused Theories creation into an unused variable (ErrorProne's CheckReturnValue can be configured to require all constructor calls to be used).
  • Loading branch information
kluever authored Nov 29, 2022
1 parent 2a46ff3 commit 5652a86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public void theory(@ParametersSuppliedBy(SupplierWithTestClassConstructor.class)

@Test
public void shouldAcceptSuppliersWithTestClassConstructor() throws Exception {
new Theories(TestClassUsingSupplierWithTestClassConstructor.class);
Theories unused = new Theories(TestClassUsingSupplierWithTestClassConstructor.class);
}

}

0 comments on commit 5652a86

Please sign in to comment.