[ https://issues.apache.org/jira/browse/TAMAYA-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15583151#comment-15583151 ]
Philipp Ottlinger commented on TAMAYA-181: ------------------------------------------ The failing tests concern the number of entries: {code} Failed tests: PropertiesFilePropertySourceTest.testGetProperties:52 expected:<5> but was:<10> SimplePropertySourceTest.successfulCreationWithPropertiesFromSimplePropertiesFile:86 Expected: a map with size <5> but: map size was <10> SimplePropertySourceTest.successfulCreationWithPropertiesFromXMLPropertiesFile:42 Expected: a map with size <2> but: map size was <4> JavaConfigurationProviderTest.loadsSimpleAndXMLPropertyFilesProper:47 Expected: a collection with size <5> but: collection size was <10> {code} > Warning-"Flood" from SimplePropertySource > ----------------------------------------- > > Key: TAMAYA-181 > URL: https://issues.apache.org/jira/browse/TAMAYA-181 > Project: Tamaya > Issue Type: Bug > Components: Core > Affects Versions: 0.2-incubating > Environment: any > Reporter: Jürg Spiess > Priority: Minor > Fix For: 0.3-incubating > > > If the constructor > {code}public SimplePropertySource(URL propertiesLocation){code} is used, > STDOUT is flooded with warnings about "missing name". > Solution: > {code} > public SimplePropertySource(URL propertiesLocation) { > super(0); > // switch the next 2 lines: name should be set BEFORE load(...)! > this.properties = load(propertiesLocation); > this.name = propertiesLocation.toString(); > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)