From 0f1bb3e155fe46dd5fa23a9ea610b0bc5489d583 Mon Sep 17 00:00:00 2001 From: YingDai Date: Fri, 13 Mar 2015 13:15:55 -0700 Subject: [PATCH] minor changes --- .../test/java/gobblin/util/HeapDumpForTaskUtilsTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gobblin-utility/src/test/java/gobblin/util/HeapDumpForTaskUtilsTest.java b/gobblin-utility/src/test/java/gobblin/util/HeapDumpForTaskUtilsTest.java index fcd5142998d..d3fd0f68219 100644 --- a/gobblin-utility/src/test/java/gobblin/util/HeapDumpForTaskUtilsTest.java +++ b/gobblin-utility/src/test/java/gobblin/util/HeapDumpForTaskUtilsTest.java @@ -47,11 +47,11 @@ public void setUp() throws IOException { @Test public void testGenerateDumpScript() throws IOException { Path dumpScript = new Path(TEST_DIR + SCRIPT_NAME); - HeapDumpForTaskUtils.generateDumpScript(dumpScript, fs, "test.hprof", "chmod 777 "); - Assert.assertEquals(true, fs.exists(dumpScript)); - Assert.assertEquals(true, fs.exists(new Path(dumpScript.getParent() + "/dumps/"))); + HeapDumpForTaskUtils.generateDumpScript(dumpScript, this.fs, "test.hprof", "chmod 777 "); + Assert.assertEquals(true, this.fs.exists(dumpScript)); + Assert.assertEquals(true, this.fs.exists(new Path(dumpScript.getParent() + "/dumps/"))); Closer closer = Closer.create(); - BufferedReader scriptReader = closer.register(new BufferedReader(new InputStreamReader(fs.open(dumpScript)))); + BufferedReader scriptReader = closer.register(new BufferedReader(new InputStreamReader(this.fs.open(dumpScript)))); Assert.assertEquals("#!/bin/sh", scriptReader.readLine()); Assert.assertEquals("hadoop dfs -put test.hprof dumpScript/dumps/${PWD//\\//_}.hprof", scriptReader.readLine()); }