commit | 79395265fdd07388849b16695c437583415b7a6b | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Mon Feb 17 17:28:26 2014 +0000 |
committer | Narayan Kamath <narayan@google.com> | Mon Feb 17 18:00:35 2014 +0000 |
tree | cf69e53eac3101cfa66eca3d6c21eb8aed2df0be | |
parent | 71eec8821710d08047ac1bff44fa5b5362ae39cb [diff] |
Fix PropertiesTest. A test case was using HashTable.get instead of Properties.getProperty. The problem is that Properties.propertyNames will enumerate all properties from the object as well as from the "default" Properties object it was constructed with. The get method derived from HashTable isn't aware of default properties though, so it will fail. Using composition instead of inheritance would've resulted in a cleaner design. Change-Id: I58323767e6872ed1722167d2a4a6d89a98d26ec7