Generics
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1663177 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fb6a62cab0
commit
b321bde08d
|
@ -58,12 +58,12 @@ public class StrLookupTest {
|
|||
final String osName = "os.name";
|
||||
final String originalOsName = System.getProperty(osName);
|
||||
|
||||
StrLookup properties1 = StrLookup.systemPropertiesLookup();
|
||||
StrLookup<String> properties1 = StrLookup.systemPropertiesLookup();
|
||||
assertEquals(originalOsName, properties1.lookup(osName));
|
||||
|
||||
final String differentOsName = "HAL-9000";
|
||||
System.setProperty(osName, differentOsName);
|
||||
StrLookup properties2 = StrLookup.systemPropertiesLookup();
|
||||
StrLookup<String> properties2 = StrLookup.systemPropertiesLookup();
|
||||
|
||||
assertEquals(originalOsName, properties1.lookup(osName));
|
||||
assertEquals(differentOsName, properties2.lookup(osName));
|
||||
|
|
Loading…
Reference in New Issue