Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cheddar committed Feb 1, 2011
1 parent 1aec3f6 commit a822b61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions azkaban/src/unit/azkaban/jobs/builtin/JavaJobTest.java
Expand Up @@ -50,7 +50,7 @@ public class JavaJobTest
public static void init() {
// get the classpath
Properties prop = System.getProperties();
classPaths = prop.getProperty("java.class.path", null);
classPaths = String.format("'%s'", prop.getProperty("java.class.path", null));

long time = (new Date()).getTime();
inputFile = "/tmp/azkaban_input_" + time;
Expand Down Expand Up @@ -86,7 +86,7 @@ public void setUp() {
props.put(AbstractProcessJob.WORKING_DIR, ".");

EasyMock.expect(descriptor.getId()).andReturn("java").times(1);
EasyMock.expect(descriptor.getResolvedProps()).andReturn(props).times(1);
EasyMock.expect(descriptor.getProps()).andReturn(props).times(1);
EasyMock.expect(descriptor.getFullPath()).andReturn(".").times(1);

EasyMock.replay(descriptor);
Expand Down
2 changes: 1 addition & 1 deletion azkaban/src/unit/azkaban/jobs/builtin/ProcessJobTest.java
Expand Up @@ -26,7 +26,7 @@ public void setUp() {
props.put(AbstractProcessJob.WORKING_DIR, ".");

EasyMock.expect(descriptor.getId()).andReturn("process").times(1);
EasyMock.expect(descriptor.getResolvedProps()).andReturn(props).times(1);
EasyMock.expect(descriptor.getProps()).andReturn(props).times(1);
EasyMock.expect(descriptor.getFullPath()).andReturn(".").times(1);

EasyMock.replay(descriptor);
Expand Down
3 changes: 1 addition & 2 deletions azkaban/src/unit/azkaban/jobs/builtin/PythonJobTest.java
Expand Up @@ -85,8 +85,7 @@ public void testPythonJob() {
props.put("t", "90");

EasyMock.expect(descriptor.getId()).andReturn("script").times(1);
EasyMock.expect(descriptor.getProps()).andReturn(props).times(2);
EasyMock.expect(descriptor.getResolvedProps()).andReturn(props).times(1);
EasyMock.expect(descriptor.getProps()).andReturn(props).times(3);
EasyMock.expect(descriptor.getFullPath()).andReturn(".").times(1);
EasyMock.replay(descriptor);
job = new PythonJob(descriptor);
Expand Down

0 comments on commit a822b61

Please sign in to comment.