mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Rely on automatic boxing/unboxing in tests
Closes gh-29414
This commit is contained in:
committed by
Sam Brannen
parent
7d68d0625c
commit
b2c8546013
@@ -121,7 +121,7 @@ public class DataAccessUtilsTests {
|
||||
|
||||
@Test
|
||||
public void withEquivalentIntegerInstanceTwice() {
|
||||
Collection<Integer> col = Arrays.asList(Integer.valueOf(555), Integer.valueOf(555));
|
||||
Collection<Integer> col = Arrays.asList(555, 555);
|
||||
|
||||
assertThatExceptionOfType(IncorrectResultSizeDataAccessException.class)
|
||||
.isThrownBy(() -> DataAccessUtils.uniqueResult(col))
|
||||
|
||||
Reference in New Issue
Block a user