Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
Shailesh Jagannath Padave committed Nov 25, 2024
1 parent 3f099e4 commit 35fd264
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public void testTaskDef() {
taskDef.setRetryCount(-1);
taskDef.setTimeoutSeconds(1000);
taskDef.setResponseTimeoutSeconds(1001);
taskDef.setTotalTimeoutSeconds(1002);

Set<ConstraintViolation<Object>> result = validator.validate(taskDef);
assertEquals(3, result.size());
Expand Down Expand Up @@ -102,6 +103,7 @@ public void testTaskDefInvalidEmail() {
taskDef.setRetryCount(1);
taskDef.setTimeoutSeconds(1000);
taskDef.setResponseTimeoutSeconds(1);
taskDef.setTotalTimeoutSeconds(1001);

Set<ConstraintViolation<Object>> result = validator.validate(taskDef);
assertEquals(1, result.size());
Expand All @@ -120,6 +122,7 @@ public void testTaskDefValidEmail() {
taskDef.setName("test-task");
taskDef.setRetryCount(1);
taskDef.setTimeoutSeconds(1000);
taskDef.setTotalTimeoutSeconds(1001);
taskDef.setResponseTimeoutSeconds(1);
taskDef.setOwnerEmail("[email protected]");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void testDeepCopyTask() {
final Task task = new Task();
// In order to avoid forgetting putting inside the copy method the newly added fields check
// the number of declared fields.
final int expectedTaskFieldsNumber = 41;
final int expectedTaskFieldsNumber = 42;
final int declaredFieldsNumber = task.getClass().getDeclaredFields().length;

assertEquals(expectedTaskFieldsNumber, declaredFieldsNumber);
Expand Down

0 comments on commit 35fd264

Please sign in to comment.