Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
import org.apache.hadoop.mapreduce.JobID;
import org.apache.hadoop.mapreduce.JobStatus;
import org.apache.hadoop.mapreduce.TaskType;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.skyscreamer.jsonassert.JSONAssert;
import org.skyscreamer.jsonassert.JSONCompareMode;
Expand All @@ -35,6 +37,7 @@
import java.io.PrintStream;
import java.util.HashMap;
import java.util.TimeZone;
import java.util.Locale;

public class TestHistoryViewerPrinter {

Expand All @@ -43,6 +46,18 @@ public class TestHistoryViewerPrinter {

private final String LINE_SEPARATOR = System.lineSeparator();

private static final Locale DEFAULT_LOCALE = Locale.getDefault();

@BeforeClass
public static void setUp() throws Exception {
Locale.setDefault(Locale.ENGLISH);
}

@AfterClass
public static void tearDown() throws Exception {
Locale.setDefault(DEFAULT_LOCALE);
}

@Test
public void testHumanPrinter() throws Exception {
JobHistoryParser.JobInfo job = createJobInfo();
Expand Down