Skip to content

Commit a13afe1

Browse files
committed
Fixed two missed unit tests that were explicitly checking the previous error messages
1 parent 236883d commit a13afe1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/java/org/junit/tests/experimental/theories/TestedOnSupplierTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public void foo(@TestedOn(ints = {1}) int x) {
2121
public void descriptionStatesParameterName() throws Exception {
2222
TestedOnSupplier supplier = new TestedOnSupplier();
2323
List<PotentialAssignment> assignments = supplier.getValueSources(signatureOfFoo());
24-
assertThat(assignments.get(0).getDescription(), is("ints"));
24+
assertThat(assignments.get(0).getDescription(), is("ints: 1"));
2525
}
2626

2727
private ParameterSignature signatureOfFoo() throws NoSuchMethodException {

src/test/java/org/junit/tests/experimental/theories/runner/UnsuccessfulWithDataPointFields.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void everythingIsZero(int x, int y) {
6161
@Test
6262
public void reportBadParams() throws Exception {
6363
assertThat(testResult(DoesntUseParams.class),
64-
hasSingleFailureContaining("everythingIsZero(ONE, ONE)"));
64+
hasSingleFailureContaining("everythingIsZero(ONE: 1, ONE: 1)"));
6565
}
6666

6767
@RunWith(Theories.class)

0 commit comments

Comments
 (0)