use of alluxio.job.JobConf in project alluxio by Alluxio.
the class LineageMasterIntegrationTest method before.
@Before
public void before() throws Exception {
AuthenticatedClientUser.set("test");
mJob = new CommandLineJob("test", new JobConf("output"));
}
use of alluxio.job.JobConf in project alluxio by Alluxio.
the class AlluxioLineageTest method createLineage.
@Test
public void createLineage() throws Exception {
List<AlluxioURI> inputFiles = Lists.newArrayList(new AlluxioURI("input"));
List<AlluxioURI> outputFiles = Lists.newArrayList(new AlluxioURI("output"));
CommandLineJob job = new CommandLineJob("cmd", new JobConf("out"));
mAlluxioLineage.createLineage(inputFiles, outputFiles, job);
Mockito.verify(mLineageMasterClient).createLineage(Lists.newArrayList("input"), Lists.newArrayList("output"), job);
// verify client is released
Mockito.verify(mLineageContext).releaseMasterClient(mLineageMasterClient);
}
Aggregations