@Test( expected = IllegalArgumentException.class ) public void testIsAvailableIllegalException() throws Exception { storage.isAvailable( "." ); }
public boolean isAvailable( final String configPath ) { if ( ConfigFactory.isValidPath( configPath ) == false ) { throw new IllegalArgumentException( "The give path is not valid." ); } try { return base.nodeExists( configPath ); } catch ( BackingStoreException bse ) { return false; } }
Java14ConfigStorage implements ConfigStorage { public boolean isAvailable( final String configPath ) { if ( ConfigFactory.isValidPath( configPath ) == false ) { throw new IllegalArgumentException( "The give path is not valid." ); } try { return base.nodeExists( configPath ); } catch ( BackingStoreException bse ) { return false; } } }
Java14ConfigStorage implements ConfigStorage { public boolean isAvailable( final String configPath ) { if ( ConfigFactory.isValidPath( configPath ) == false ) { throw new IllegalArgumentException( "The give path is not valid." ); } try { return base.nodeExists( configPath ); } catch ( BackingStoreException bse ) { return false; } } Java14ConfigStorage( final Preferences base ); }
Java14ConfigStorage implements ConfigStorage { public boolean isAvailable( final String configPath ) { if ( ConfigFactory.isValidPath( configPath ) == false ) { throw new IllegalArgumentException( "The give path is not valid." ); } try { return base.nodeExists( configPath ); } catch ( BackingStoreException bse ) { return false; } } Java14ConfigStorage( final Preferences base ); void store( final String configPath, final Configuration config ); Configuration load( final String configPath, final Configuration defaults ); boolean isAvailable( final String configPath ); }
Java14ConfigStorage implements ConfigStorage { public boolean isAvailable( final String configPath ) { if ( ConfigFactory.isValidPath( configPath ) == false ) { throw new IllegalArgumentException( "The give path is not valid." ); } try { return base.nodeExists( configPath ); } catch ( BackingStoreException bse ) { return false; } } Java14ConfigStorage( final Preferences base ); void store( final String configPath, final Configuration config ); Configuration load( final String configPath, final Configuration defaults ); boolean isAvailable( final String configPath );  }