public long getErrorsImpl() { return super.getErrors(); }
/** * Check result no has errors. */ protected void checkErrors() throws Exception { assertEquals( "There are errors", 0, errorsCount ); assertEquals( "There are step errors", 0, step.getErrors() ); }
@Test public void testGuiErrorsWithErrorsAllowed() { try { int r = wrongRows.size(); BaseStep step = doOutput( wrongRows, "2" ); ( (IngresVectorwiseLoader) step ).vwLoadMonitorThread.join(); assertEquals( r - 1, step.getLinesOutput() ); assertEquals( r, step.getLinesRead() ); assertEquals( r, step.getLinesWritten() ); assertEquals( 1, step.getLinesRejected() ); assertEquals( 0, step.getErrors() ); } catch ( KettleException e ) { fail( e.getMessage() ); } catch ( InterruptedException e ) { e.printStackTrace(); } }
@Test public void testGuiErrors() { try { int r = wrongRows.size(); BaseStep step = doOutput( wrongRows, "0" ); ( (IngresVectorwiseLoader) step ).vwLoadMonitorThread.join(); assertEquals( 0, step.getLinesOutput() ); assertEquals( r, step.getLinesRead() ); assertEquals( r, step.getLinesWritten() ); assertEquals( 1, step.getLinesRejected() ); assertEquals( 1, step.getErrors() ); } catch ( KettleException e ) { fail( e.getMessage() ); } catch ( InterruptedException e ) { e.printStackTrace(); } }
@Test public void testGuiSuccess() { try { int r = rows.size(); BaseStep step = doOutput( rows, "0" ); ( (IngresVectorwiseLoader) step ).vwLoadMonitorThread.join(); assertEquals( r, step.getLinesOutput() ); assertEquals( r, step.getLinesRead() ); assertEquals( r, step.getLinesWritten() ); assertEquals( 0, step.getLinesRejected() ); assertEquals( 0, step.getErrors() ); } catch ( KettleException e ) { fail( e.getMessage() ); } catch ( InterruptedException e ) { e.printStackTrace(); } }
@Test public void testWaitForFinish() { try { int r = rows.size(); BaseStep step = doOutput( wrongRows, "2" ); assertEquals( r - 1, step.getLinesOutput() ); assertEquals( r, step.getLinesRead() ); assertEquals( r, step.getLinesWritten() ); assertEquals( 1, step.getLinesRejected() ); assertEquals( 0, step.getErrors() ); } catch ( KettleException e ) { fail( e.getMessage() ); } }