@Test public void testFillWithSupportedDateFormats() { HadoopFileOutputDialog dialog = mock( HadoopFileOutputDialog.class ); CCombo combo = mock( CCombo.class ); String[] dates = Const.getDateFormats(); assertEquals( 20, dates.length ); doCallRealMethod().when( dialog ).fillWithSupportedDateFormats( any(), any() ); dialog.fillWithSupportedDateFormats( combo, dates ); verify( combo, times( 10 ) ).add( any() ); }
protected void fillWithSupportedDateFormats( CCombo combo, String[] dates ) { for ( String s : dates ) { if ( s.matches( "[^:]+" ) ) { combo.add( s ); } } }
HadoopFileOutputDialog extends BaseStepDialog implements StepDialogInterface { protected void fillWithSupportedDateFormats( CCombo combo, String[] dates ) { for ( String s : dates ) { if ( s.matches( "[^:]+" ) ) { combo.add( s ); } } } }
HadoopFileOutputDialog extends BaseStepDialog implements StepDialogInterface { protected void fillWithSupportedDateFormats( CCombo combo, String[] dates ) { for ( String s : dates ) { if ( s.matches( "[^:]+" ) ) { combo.add( s ); } } } HadoopFileOutputDialog( Shell parent, Object in, TransMeta transMeta, String sname ); }
HadoopFileOutputDialog extends BaseStepDialog implements StepDialogInterface { protected void fillWithSupportedDateFormats( CCombo combo, String[] dates ) { for ( String s : dates ) { if ( s.matches( "[^:]+" ) ) { combo.add( s ); } } } HadoopFileOutputDialog( Shell parent, Object in, TransMeta transMeta, String sname ); String open(); void getData(); void setMinimalWidth(); String toString(); static String getUrlPath( String incomingURL ); }
HadoopFileOutputDialog extends BaseStepDialog implements StepDialogInterface { protected void fillWithSupportedDateFormats( CCombo combo, String[] dates ) { for ( String s : dates ) { if ( s.matches( "[^:]+" ) ) { combo.add( s ); } } } HadoopFileOutputDialog( Shell parent, Object in, TransMeta transMeta, String sname ); String open(); void getData(); void setMinimalWidth(); String toString(); static String getUrlPath( String incomingURL );  }