Clean up warnings

This commit is contained in:
Sam Brannen
2019-10-30 19:14:58 +01:00
parent 3c17178b16
commit 9f00eb68e9
19 changed files with 20 additions and 13 deletions

View File

@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.messaging.rsocket;
import java.util.function.Consumer;
@@ -109,8 +110,8 @@ class DefaultRSocketStrategiesTests {
@Test
@SuppressWarnings("unchecked")
void applyMetadataExtractors() {
Consumer<MetadataExtractorRegistry> consumer = (Consumer<MetadataExtractorRegistry>) mock(Consumer.class);
RSocketStrategies strategies = RSocketStrategies.builder().metadataExtractorRegistry(consumer).build();
Consumer<MetadataExtractorRegistry> consumer = mock(Consumer.class);
RSocketStrategies.builder().metadataExtractorRegistry(consumer).build();
verify(consumer, times(1)).accept(any());
}