Updated per code review

This commit is contained in:
Michael Minella
2014-02-11 11:36:05 -06:00
parent 9a5f59f749
commit 0b5bad920b
5 changed files with 5 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2013 the original author or authors.
* Copyright 2006-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -98,7 +98,7 @@ public class JsrFlowJob extends FlowJob {
String stepName = startState.getName().substring(startState.getName().indexOf(".") + 1, startState.getName().length());
Step step = ((StepState) startState).getStep(stepName);
if(step instanceof DecisionStep) {
throw new JobExecutionException("Invalid first step");
throw new JobExecutionException("Decision step is an invalid first step");
} else {
break;
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013 the original author or authors.
* Copyright 2013-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013 the original author or authors.
* Copyright 2013-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -25,7 +25,7 @@ public class DecisionStepTests {
private static ApplicationContext baseContext;
public JobExplorer jobExplorer;
private JobExplorer jobExplorer;
@Before
public void setUp() {
@@ -107,9 +107,6 @@ public class DecisionStepTests {
@Override
public String decide(StepExecution[] executions) throws Exception {
for (StepExecution stepExecution : executions) {
System.err.println(stepExecution.getStepName());
}
previousStepCount = executions.length;
return "next";
}