Search in sources :

Example 21 with IExecutionProfile

use of org.pentaho.metaverse.api.model.IExecutionProfile in project pentaho-metaverse by pentaho.

the class FileSystemLineageWriterTest method setUp.

@Before
public void setUp() throws Exception {
    FileSystemLineageWriter fslw = new FileSystemLineageWriter();
    writer = spy(fslw);
    holder = new LineageHolder();
    IExecutionProfile profile = new ExecutionProfile();
    profile.setName("test");
    IExecutionData data = new ExecutionData();
    data.setStartTime(now);
    profile.setExecutionData(data);
    holder.setExecutionProfile(profile);
    writer.setOutputFolder("target/outputfiles");
}
Also used : IExecutionData(org.pentaho.metaverse.api.model.IExecutionData) IExecutionProfile(org.pentaho.metaverse.api.model.IExecutionProfile) IExecutionProfile(org.pentaho.metaverse.api.model.IExecutionProfile) ExecutionProfile(org.pentaho.metaverse.impl.model.ExecutionProfile) LineageHolder(org.pentaho.metaverse.api.model.LineageHolder) IExecutionData(org.pentaho.metaverse.api.model.IExecutionData) ExecutionData(org.pentaho.metaverse.impl.model.ExecutionData) Before(org.junit.Before)

Aggregations

IExecutionProfile (org.pentaho.metaverse.api.model.IExecutionProfile)21 IExecutionData (org.pentaho.metaverse.api.model.IExecutionData)11 LineageHolder (org.pentaho.metaverse.api.model.LineageHolder)8 ExecutionProfile (org.pentaho.metaverse.impl.model.ExecutionProfile)6 IOException (java.io.IOException)5 Test (org.junit.Test)5 IExternalResourceInfo (org.pentaho.metaverse.api.model.IExternalResourceInfo)5 ExecutionData (org.pentaho.metaverse.impl.model.ExecutionData)5 File (java.io.File)4 Job (org.pentaho.di.job.Job)4 Trans (org.pentaho.di.trans.Trans)4 LinkedList (java.util.LinkedList)3 List (java.util.List)3 FileObject (org.apache.commons.vfs2.FileObject)3 Before (org.junit.Before)3 Result (org.pentaho.di.core.Result)3 FileNotFoundException (java.io.FileNotFoundException)2 ArrayList (java.util.ArrayList)2 Date (java.util.Date)2 ExecutionException (java.util.concurrent.ExecutionException)2