@Test public void blockers() { BasicHadoopTaskInfo info = new BasicHadoopTaskInfo("X"); info.addBlocker(new BasicHadoopTaskInfo("A")); info.addBlocker(new BasicHadoopTaskInfo("B")); info.addBlocker(new BasicHadoopTaskInfo("C")); BasicHadoopTaskInfo restored = InfoSerDe.checkRestore(TaskInfo.class, info, EQ); assertThat(restored.getBlockers().stream() .map(it -> ((HadoopTaskInfo) it).getClassName()) .collect(Collectors.toList()), containsInAnyOrder("A", "B", "C")); }
@Override public String getClassName() { return className; }
BasicHadoopTaskInfo extends BasicTaskInfo implements HadoopTaskInfo { @Override public String getClassName() { return className; } }
BasicHadoopTaskInfo extends BasicTaskInfo implements HadoopTaskInfo { @Override public String getClassName() { return className; } BasicHadoopTaskInfo(String className);  BasicHadoopTaskInfo(String moduleName, String className); }
BasicHadoopTaskInfo extends BasicTaskInfo implements HadoopTaskInfo { @Override public String getClassName() { return className; } BasicHadoopTaskInfo(String className);  BasicHadoopTaskInfo(String moduleName, String className); @Override String getModuleName(); @Override String getClassName(); @Override String toString(); }
BasicHadoopTaskInfo extends BasicTaskInfo implements HadoopTaskInfo { @Override public String getClassName() { return className; } BasicHadoopTaskInfo(String className);  BasicHadoopTaskInfo(String moduleName, String className); @Override String getModuleName(); @Override String getClassName(); @Override String toString();  }