Rely on automatic boxing/unboxing in tests

Closes gh-29414
This commit is contained in:
Kulwant Singh
2022-11-02 01:11:28 +01:00
committed by Sam Brannen
parent 7d68d0625c
commit b2c8546013
35 changed files with 214 additions and 214 deletions

View File

@@ -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))