}
public void testGetAttributeAsFloat()
throws Exception
{
final DefaultConfiguration configuration =
new DefaultConfiguration( "myElement", "file.xml:20", "" );
final String key = "key";
final String value = "3";
configuration.setAttribute( key, value );
assertTrue( "getAttribute('key')",
3.0 == configuration.getAttributeAsFloat( key ) );
assertTrue( "getAttribute('key','1')",
3.0 == configuration.getAttributeAsFloat( key, 1 ) );
}