ResultSetMapperComponentImpl implements ResultSetMapperComponent { @Override public <T> ResultSetMapping<T> apply(DbmsType dbmsType, Class<T> javaClass) { requireNonNulls(dbmsType, javaClass); return getFromMapOrThrow(dbmsTypeMap.getOrDefault(dbmsType, map), javaClass, () -> dbmsType + ", " + javaClass.getName()); } ResultSetMapperComponentImpl(); ResultSetMapping<?> put(ResultSetMapping<?> item); ResultSetMapping<?> put(DbmsType dbmsType, ResultSetMapping<?> item); @Override ResultSetMapping<T> apply(DbmsType dbmsType, Class<T> javaClass); @Override ResultSetMapping<T> apply(Class<T> javaClass);  }
@Test void apply() { assertThrows(NullPointerException.class, () -> instance.apply(null)); assertDoesNotThrow(() -> instance.apply(String.class)); assertDoesNotThrow(() -> instance.apply(dbmsType, String.class)); }