@Test public void testExceptionStrategyWithMysqlDataTruncationException() { DatabaseMeta databaseMeta = mock( DatabaseMeta.class ); DatabaseInterface databaseInterface = new MySQLDatabaseMeta(); MysqlDataTruncation e = new MysqlDataTruncation(); when( logTable.getDatabaseMeta() ).thenReturn( databaseMeta ); when( databaseMeta.getDatabaseInterface() ).thenReturn( databaseInterface ); LogExceptionBehaviourInterface exceptionStrategy = DatabaseLogExceptionFactory.getExceptionStrategy( logTable, new KettleDatabaseException( e ) ); String strategyName = exceptionStrategy.getClass().getName(); assertEquals( SUPPRESSABLE_WITH_SHORT_MESSAGE, strategyName ); }
public static LogExceptionBehaviourInterface getExceptionStrategy( LogTableCoreInterface table ) { return getExceptionStrategy( table, null ); }
DatabaseLogExceptionFactory { public static LogExceptionBehaviourInterface getExceptionStrategy( LogTableCoreInterface table ) { return getExceptionStrategy( table, null ); } }
DatabaseLogExceptionFactory { public static LogExceptionBehaviourInterface getExceptionStrategy( LogTableCoreInterface table ) { return getExceptionStrategy( table, null ); }  }
DatabaseLogExceptionFactory { public static LogExceptionBehaviourInterface getExceptionStrategy( LogTableCoreInterface table ) { return getExceptionStrategy( table, null ); }  static LogExceptionBehaviourInterface getExceptionStrategy( LogTableCoreInterface table ); static LogExceptionBehaviourInterface getExceptionStrategy( LogTableCoreInterface table, Exception e ); }
DatabaseLogExceptionFactory { public static LogExceptionBehaviourInterface getExceptionStrategy( LogTableCoreInterface table ) { return getExceptionStrategy( table, null ); }  static LogExceptionBehaviourInterface getExceptionStrategy( LogTableCoreInterface table ); static LogExceptionBehaviourInterface getExceptionStrategy( LogTableCoreInterface table, Exception e ); static final String KETTLE_GLOBAL_PROP_NAME; }