### Question:
JoinRows extends BaseTransform<JoinRowsMeta, JoinRowsData> implements ITransform<JoinRowsMeta, JoinRowsData> { public void dispose() { if ( data.file != null ) { for ( int i = 1; i < data.file.length; i++ ) { if ( data.file[ i ] != null ) { data.file[ i ].delete(); } } } super.dispose(); } JoinRows(TransformMeta transformMeta, JoinRowsMeta meta, JoinRowsData data, int copyNr, PipelineMeta pipelineMeta,
                  Pipeline pipeline ); @SuppressWarnings( "unchecked" ) void initialize(); Object[] getRowData( int filenr ); boolean processRow(); void dispose(); @Override void batchComplete();  }### Answer:
@Test @Ignore public void checkThatMethodPerformedWithoutError() throws Exception { getJoinRows().dispose(); }
@Test @Ignore public void disposeDataFiles() throws Exception { File mockFile1 = mock( File.class ); File mockFile2 = mock( File.class ); data.file = new File[] { null, mockFile1, mockFile2 }; getJoinRows().dispose(); verify( mockFile1, times( 1 ) ).delete(); verify( mockFile2, times( 1 ) ).delete(); }