You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2020/01/29 18:53:59 UTC

[GitHub] [incubator-hudi] n3nash commented on a change in pull request #1285: [HUDI-562] Added a few test cases for class org.apache.hudi.WriteStatus

n3nash commented on a change in pull request #1285: [HUDI-562] Added a few test cases for class org.apache.hudi.WriteStatus
URL: https://github.com/apache/incubator-hudi/pull/1285#discussion_r372567808
 
 

 ##########
 File path: hudi-client/src/test/java/org/apache/hudi/TestWriteStatus.java
 ##########
 @@ -49,7 +58,18 @@ public void testSuccessRecordTracking() {
     }
     assertEquals(1000, status.getFailedRecords().size());
     assertTrue(status.hasErrors());
+    assertEquals(status.getErrors().size(), 1);
     assertTrue(status.getWrittenRecords().isEmpty());
     assertEquals(2000, status.getTotalRecords());
+
+    status.setTotalRecords(1000);
+    assertEquals(status.getTotalRecords(), 1000);
+  }
+
+  @Test
+  public void testAdditional() {
 
 Review comment:
   +1

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services