@Test public void testCreateTimeout_valid() { this.p.put( Configuration.TIMEOUT, "5" ); int timeout = Configuration._createTimeout( this.p ); assertEquals( 5000, timeout ); }
protected static int _createTimeout( final Properties p ) { logger.traceEntry(); String timeoutString = p.getProperty( TIMEOUT ); if ( timeoutString == null || timeoutString.trim().equals( "" ) ) { logger.debug( "Timeout: using default-value ({})", TIMEOUT_DEFAULT ); return TIMEOUT_DEFAULT; } logger.debug( "Timeout: {}", timeoutString ); return Integer.parseInt( timeoutString ) * 1000; }
Configuration { protected static int _createTimeout( final Properties p ) { logger.traceEntry(); String timeoutString = p.getProperty( TIMEOUT ); if ( timeoutString == null || timeoutString.trim().equals( "" ) ) { logger.debug( "Timeout: using default-value ({})", TIMEOUT_DEFAULT ); return TIMEOUT_DEFAULT; } logger.debug( "Timeout: {}", timeoutString ); return Integer.parseInt( timeoutString ) * 1000; } }
Configuration { protected static int _createTimeout( final Properties p ) { logger.traceEntry(); String timeoutString = p.getProperty( TIMEOUT ); if ( timeoutString == null || timeoutString.trim().equals( "" ) ) { logger.debug( "Timeout: using default-value ({})", TIMEOUT_DEFAULT ); return TIMEOUT_DEFAULT; } logger.debug( "Timeout: {}", timeoutString ); return Integer.parseInt( timeoutString ) * 1000; } protected  Configuration(); protected  Configuration( final boolean isHeadless ); }
Configuration { protected static int _createTimeout( final Properties p ) { logger.traceEntry(); String timeoutString = p.getProperty( TIMEOUT ); if ( timeoutString == null || timeoutString.trim().equals( "" ) ) { logger.debug( "Timeout: using default-value ({})", TIMEOUT_DEFAULT ); return TIMEOUT_DEFAULT; } logger.debug( "Timeout: {}", timeoutString ); return Integer.parseInt( timeoutString ) * 1000; } protected  Configuration(); protected  Configuration( final boolean isHeadless ); @Override abstract String toString(); final boolean isHeadless(); }
Configuration { protected static int _createTimeout( final Properties p ) { logger.traceEntry(); String timeoutString = p.getProperty( TIMEOUT ); if ( timeoutString == null || timeoutString.trim().equals( "" ) ) { logger.debug( "Timeout: using default-value ({})", TIMEOUT_DEFAULT ); return TIMEOUT_DEFAULT; } logger.debug( "Timeout: {}", timeoutString ); return Integer.parseInt( timeoutString ) * 1000; } protected  Configuration(); protected  Configuration( final boolean isHeadless ); @Override abstract String toString(); final boolean isHeadless(); static final String URL; static final String PATTERN; static final String TIMEOUT; static final int TIMEOUT_DEFAULT; static final String JDFW; static final String PROXY; static final String HEADLESS; }