You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2018/03/03 04:53:57 UTC

[kylin] 09/11: KYLIN-3265 update test case to cover it

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

liyang pushed a commit to branch sync
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit 0efcf9c9e66879bbee633d9799aa529aefcde543
Author: shaofengshi <sh...@apache.org>
AuthorDate: Mon Feb 26 17:53:01 2018 +0800

    KYLIN-3265 update test case to cover it
---
 .../kylin/rest/controller/JobControllerTest.java    | 21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)

diff --git a/server/src/test/java/org/apache/kylin/rest/controller/JobControllerTest.java b/server/src/test/java/org/apache/kylin/rest/controller/JobControllerTest.java
index e87cecb..4364743 100644
--- a/server/src/test/java/org/apache/kylin/rest/controller/JobControllerTest.java
+++ b/server/src/test/java/org/apache/kylin/rest/controller/JobControllerTest.java
@@ -18,11 +18,6 @@
 
 package org.apache.kylin.rest.controller;
 
-import static org.junit.Assert.assertNotNull;
-
-import java.io.IOException;
-import java.util.Date;
-
 import org.apache.kylin.common.KylinConfig;
 import org.apache.kylin.cube.CubeDescManager;
 import org.apache.kylin.cube.CubeInstance;
@@ -43,6 +38,11 @@ import org.junit.Test;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Qualifier;
 
+import java.io.IOException;
+import java.util.Date;
+
+import static org.junit.Assert.assertNotNull;
+
 /**
  * @author xduo
  */
@@ -97,6 +97,17 @@ public class JobControllerTest extends ServiceTestBase {
         jobRequest.setTimeFilter(4);
         Assert.assertNotNull(jobSchedulerController.list(jobRequest));
 
+        jobRequest.setJobSearchMode("ALL");
+        Assert.assertNotNull(jobSchedulerController.list(jobRequest));
+
+
+        jobRequest.setJobSearchMode("");
+        Assert.assertNotNull(jobSchedulerController.list(jobRequest));
+
+
+        jobRequest.setJobSearchMode("wrong-input");
+        Assert.assertNotNull(jobSchedulerController.list(jobRequest));
+
         JobBuildRequest jobBuildRequest = new JobBuildRequest();
         jobBuildRequest.setBuildType("BUILD");
         jobBuildRequest.setStartTime(0L);

-- 
To stop receiving notification emails like this one, please contact
liyang@apache.org.