File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
spring-cloud-azure-dependencies
spring-integration-azure/spring-integration-storage-queue/src/test/java/com/microsoft/azure/spring/integration/storage/queue Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 6565 <javax .jms-api.version>2.0.1</javax .jms-api.version>
6666 <qpid-jms-client .version>0.43.0</qpid-jms-client .version>
6767 <okhttp3 .version>3.11.0</okhttp3 .version>
68- <azure-core .version>1.2 .0</azure-core .version>
69- <azure-data-appconfiguration .version>1.0.1 </azure-data-appconfiguration .version>
70- <azure-identity .version>1.0.2 </azure-identity .version>
71- <azure-security-keyvault-secrets .version>4.1.0 </azure-security-keyvault-secrets .version>
72- <azure-core-http-netty .version>1.2 .0</azure-core-http-netty .version>
68+ <azure-core .version>1.3 .0</azure-core .version>
69+ <azure-data-appconfiguration .version>1.1.0 </azure-data-appconfiguration .version>
70+ <azure-identity .version>1.0.4 </azure-identity .version>
71+ <azure-security-keyvault-secrets .version>4.1.1 </azure-security-keyvault-secrets .version>
72+ <azure-core-http-netty .version>1.3 .0</azure-core-http-netty .version>
7373 </properties >
7474
7575 <dependencyManagement >
Original file line number Diff line number Diff line change 1010import com .azure .core .http .HttpRequest ;
1111import com .azure .core .http .rest .PagedFlux ;
1212import com .azure .core .http .rest .PagedResponse ;
13+ import com .azure .core .util .IterableStream ;
1314import com .azure .storage .queue .QueueAsyncClient ;
1415import com .azure .storage .queue .models .QueueMessageItem ;
1516import com .azure .storage .queue .models .QueueStorageException ;
2425import org .mockito .Mock ;
2526import org .mockito .junit .MockitoJUnitRunner ;
2627import org .springframework .messaging .Message ;
28+
29+ import reactor .core .publisher .Flux ;
2730import reactor .core .publisher .Mono ;
2831
2932import java .time .Duration ;
@@ -98,6 +101,12 @@ public HttpRequest getRequest() {
98101 public void close () {
99102
100103 }
104+
105+ @ Override
106+ public IterableStream <QueueMessageItem > getElements () {
107+ Flux <QueueMessageItem > flux = Flux .just (queueMessage );
108+ return new IterableStream <QueueMessageItem >(flux );
109+ }
101110 };
102111 when (this .mockClientFactory .getOrCreateQueueClient (eq (destination ))).thenReturn (this .mockClient );
103112 when (this .mockClient .receiveMessages (eq (1 ), any ()))
You can’t perform that action at this time.
0 commit comments