pratapaditya04 commented on code in PR #4076:
URL: https://github.com/apache/gobblin/pull/4076#discussion_r1842712705


##########
gobblin-service/src/test/java/org/apache/gobblin/service/modules/orchestration/MySqlDagManagementStateStoreTest.java:
##########
@@ -92,6 +95,16 @@ public static <T> boolean compareLists(List<T> list1, 
List<T> list2) {
     return true;
   }
 
+  @Test
+  public void testExistsLeasableEntity() throws Exception{
+    
Mockito.when(leaseArbiter.existsLeasableEntity(Mockito.any(DagActionStore.LeaseParams.class))).thenReturn(true);
+    String flowName = "testFlow";
+    String flowGroup = "testGroup";
+    DagActionStore.DagAction dagAction = new 
DagActionStore.DagAction(flowName, flowGroup, System.currentTimeMillis(), 
"testJob", DagActionStore.DagActionType.LAUNCH);
+    DagActionStore.LeaseParams leaseParams = new 
DagActionStore.LeaseParams(dagAction);
+    leaseArbiter.existsLeasableEntity(leaseParams);

Review Comment:
   No assertions? Also in  this unit test we are mocking leaseArbiter, so I 
don't think it adds any value on testing the functionality of leaseArbiter



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@gobblin.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to