Skip to content

Commit 3f6cd6a

Browse files
authored
Remove deprecations after #3816 (#3817)
1 parent 1108ef3 commit 3f6cd6a

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

reactor-core/src/test/java/reactor/core/publisher/NextProcessorTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015-2022 VMware Inc. or its affiliates, All Rights Reserved.
2+
* Copyright (c) 2015-2024 VMware Inc. or its affiliates, All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,6 +27,7 @@
2727
import java.util.concurrent.atomic.AtomicReference;
2828

2929
import org.assertj.core.api.Assertions;
30+
import org.assertj.core.api.InstanceOfAssertFactories;
3031
import org.junit.jupiter.api.Test;
3132
import org.reactivestreams.Subscriber;
3233
import org.reactivestreams.Subscription;
@@ -864,7 +865,7 @@ void inners() {
864865
sink.subscribe(scannable);
865866

866867
assertThat(sink.inners())
867-
.asList()
868+
.asInstanceOf(InstanceOfAssertFactories.LIST)
868869
.as("after subscriptions")
869870
.hasSize(2)
870871
.extracting(l -> (Object) ((NextProcessor.NextInner<?>) l).actual)

reactor-core/src/test/java/reactor/core/publisher/SinkEmptyMulticastTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020-2022 VMware Inc. or its affiliates, All Rights Reserved.
2+
* Copyright (c) 2020-2024 VMware Inc. or its affiliates, All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,6 +21,7 @@
2121
import java.util.concurrent.atomic.AtomicBoolean;
2222
import java.util.concurrent.atomic.AtomicReference;
2323

24+
import org.assertj.core.api.InstanceOfAssertFactories;
2425
import org.junit.jupiter.api.Test;
2526
import org.reactivestreams.Subscriber;
2627

@@ -168,7 +169,7 @@ void inners() {
168169
sink.asMono().subscribe(scannable);
169170

170171
assertThat(sink.inners())
171-
.asList()
172+
.asInstanceOf(InstanceOfAssertFactories.LIST)
172173
.as("after subscriptions")
173174
.hasSize(2)
174175
.extracting(l -> (Object) ((SinkEmptyMulticast.VoidInner<?>) l).actual)

reactor-core/src/test/java/reactor/core/publisher/SinkOneMulticastTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021-2022 VMware Inc. or its affiliates, All Rights Reserved.
2+
* Copyright (c) 2021-2024 VMware Inc. or its affiliates, All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,6 +21,7 @@
2121
import java.util.concurrent.atomic.AtomicReference;
2222

2323
import org.assertj.core.api.Assertions;
24+
import org.assertj.core.api.InstanceOfAssertFactories;
2425
import org.junit.jupiter.api.Test;
2526
import org.junit.jupiter.api.Timeout;
2627
import org.reactivestreams.Subscriber;
@@ -321,7 +322,7 @@ void inners() {
321322
sink.subscribe(scannable);
322323

323324
assertThat(sink.inners())
324-
.asList()
325+
.asInstanceOf(InstanceOfAssertFactories.LIST)
325326
.as("after subscriptions")
326327
.hasSize(2)
327328
.extracting(l -> (Object) ((SinkOneMulticast.Inner<?>) l).actual())

reactor-core/src/test/java/reactor/core/publisher/UnicastManySinkNoBackpressureTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020-2021 VMware Inc. or its affiliates, All Rights Reserved.
2+
* Copyright (c) 2020-2024 VMware Inc. or its affiliates, All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,6 +18,7 @@
1818

1919
import java.time.Duration;
2020

21+
import org.assertj.core.api.InstanceOfAssertFactories;
2122
import org.junit.jupiter.api.Test;
2223

2324
import reactor.core.CoreSubscriber;
@@ -166,12 +167,12 @@ void inners() {
166167
sink2.asFlux().subscribe(scannable);
167168

168169
assertThat(sink1.inners())
169-
.asList()
170+
.asInstanceOf(InstanceOfAssertFactories.LIST)
170171
.as("after notScannable subscription")
171172
.containsExactly(Scannable.from("NOT SCANNABLE"));
172173

173174
assertThat(sink2.inners())
174-
.asList()
175+
.asInstanceOf(InstanceOfAssertFactories.LIST)
175176
.as("after scannable subscription")
176177
.containsExactly(scannable);
177178
}

0 commit comments

Comments
 (0)