Skip to content

Commit

Permalink
#532 fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
heziai committed Nov 8, 2018
1 parent 7a98859 commit 7c46166
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ public void testAddJobFailByLocalModeJobHasDownStream() throws SaturnJobConsoleE
JobConfig jobConfig = new JobConfig();
jobConfig.setJobName(jobName);
jobConfig.setJobType(JobType.MSG_JOB.name());
jobConfig.setQueueName("queue");
jobConfig.setJobClass("testCLass");
jobConfig.setLocalMode(true);
jobConfig.setShardingItemParameters("*=xx");
Expand All @@ -674,6 +675,7 @@ public void testAddJobFailByHasDownStreamButShardingTotalCountIsNotOne() throws
JobConfig jobConfig = new JobConfig();
jobConfig.setJobName(jobName);
jobConfig.setJobType(JobType.MSG_JOB.name());
jobConfig.setQueueName("queue");
jobConfig.setJobClass("testCLass");
jobConfig.setShardingTotalCount(2);
jobConfig.setShardingItemParameters("0=0,1=1");
Expand All @@ -688,6 +690,7 @@ public void testAddJobFailByHasDownStreamButIsSelf() throws SaturnJobConsoleExce
JobConfig jobConfig = new JobConfig();
jobConfig.setJobName(jobName);
jobConfig.setJobType(JobType.MSG_JOB.name());
jobConfig.setQueueName("queue");
jobConfig.setJobClass("testCLass");
jobConfig.setShardingTotalCount(1);
jobConfig.setShardingItemParameters("0=0");
Expand All @@ -702,6 +705,7 @@ public void testAddJobFailByHasDownStreamButNotExisting() throws SaturnJobConsol
JobConfig jobConfig = new JobConfig();
jobConfig.setJobName(jobName);
jobConfig.setJobType(JobType.MSG_JOB.name());
jobConfig.setQueueName("queue");
jobConfig.setJobClass("testCLass");
jobConfig.setShardingTotalCount(1);
jobConfig.setShardingItemParameters("0=0");
Expand All @@ -716,6 +720,7 @@ public void testAddJobFailByHasDownStreamButIsAncestor() throws SaturnJobConsole
JobConfig jobConfig = new JobConfig();
jobConfig.setJobName(jobName);
jobConfig.setJobType(JobType.MSG_JOB.name());
jobConfig.setQueueName("queue");
jobConfig.setJobClass("testCLass");
jobConfig.setShardingTotalCount(1);
jobConfig.setShardingItemParameters("0=0");
Expand All @@ -734,6 +739,7 @@ public void testAddJobFailByHasDownStreamButIsNotPassive() throws SaturnJobConso
JobConfig jobConfig = new JobConfig();
jobConfig.setJobName(jobName);
jobConfig.setJobType(JobType.MSG_JOB.name());
jobConfig.setQueueName("queue");
jobConfig.setJobClass("testCLass");
jobConfig.setShardingTotalCount(1);
jobConfig.setShardingItemParameters("0=0");
Expand All @@ -751,6 +757,7 @@ public void testAddJobFailByHasDownStreamButIsAncestor2() throws SaturnJobConsol
JobConfig jobConfig = new JobConfig();
jobConfig.setJobName(jobName);
jobConfig.setJobType(JobType.MSG_JOB.name());
jobConfig.setQueueName("queue");
jobConfig.setJobClass("testCLass");
jobConfig.setShardingTotalCount(1);
jobConfig.setShardingItemParameters("0=0");
Expand Down

0 comments on commit 7c46166

Please sign in to comment.