You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by mx...@apache.org on 2023/07/25 15:07:04 UTC

[eventmesh] branch master updated: [ISSUE #4092] Replaced isEqualto() by hasSize() method (#4251)

This is an automated email from the ASF dual-hosted git repository.

mxsm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/eventmesh.git


The following commit(s) were added to refs/heads/master by this push:
     new c18ef05f5 [ISSUE #4092] Replaced isEqualto() by hasSize() method (#4251)
c18ef05f5 is described below

commit c18ef05f5207a2d1b6e992ab4e6f1a9b54e021ce
Author: Sumit Dethe <91...@users.noreply.github.com>
AuthorDate: Tue Jul 25 20:36:58 2023 +0530

    [ISSUE #4092] Replaced isEqualto() by hasSize() method (#4251)
    
    * replaced isEqualto() by hasSize method
    
    * modified file
---
 .../eventmesh/client/grpc/consumer/EventMeshGrpcConsumerTest.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eventmesh-sdks/eventmesh-sdk-java/src/test/java/org/apache/eventmesh/client/grpc/consumer/EventMeshGrpcConsumerTest.java b/eventmesh-sdks/eventmesh-sdk-java/src/test/java/org/apache/eventmesh/client/grpc/consumer/EventMeshGrpcConsumerTest.java
index 21fba16a4..e9d8ab22e 100644
--- a/eventmesh-sdks/eventmesh-sdk-java/src/test/java/org/apache/eventmesh/client/grpc/consumer/EventMeshGrpcConsumerTest.java
+++ b/eventmesh-sdks/eventmesh-sdk-java/src/test/java/org/apache/eventmesh/client/grpc/consumer/EventMeshGrpcConsumerTest.java
@@ -138,7 +138,7 @@ public class EventMeshGrpcConsumerTest {
             }
         });
         eventMeshGrpcConsumer.subscribe(Collections.singletonList(buildMockSubscriptionItem()));
-        assertThat(eventMeshGrpcConsumer.getSubscriptionMap().size()).isEqualTo(1);
+        assertThat(eventMeshGrpcConsumer.getSubscriptionMap()).hasSize(1);
 
         assertThat(result).hasSize(1).first().isInstanceOf(CloudEventV1.class);
         CloudEventV1 v1 = (CloudEventV1) result.get(0);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org