mirror of
https://github.com/apache/commons-collections.git
synced 2025-02-10 03:56:11 +00:00
Sort test members.
This commit is contained in:
parent
3664d88dfa
commit
78c4b0f865
@ -26,18 +26,6 @@ import org.junit.Test;
|
||||
|
||||
public class SortedPropertiesTest {
|
||||
|
||||
@Test
|
||||
public void testKeys() {
|
||||
final SortedProperties sortedProperties = new SortedProperties();
|
||||
for (char ch = 'Z'; ch >= 'A'; ch--) {
|
||||
sortedProperties.put(String.valueOf(ch), "Value" + ch);
|
||||
}
|
||||
final Enumeration<Object> keys = sortedProperties.keys();
|
||||
for (char ch = 'A'; ch <= 'Z'; ch++) {
|
||||
Assert.assertEquals(String.valueOf(ch), keys.nextElement());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEntrySet() {
|
||||
final SortedProperties sortedProperties = new SortedProperties();
|
||||
@ -51,4 +39,16 @@ public class SortedPropertiesTest {
|
||||
Assert.assertEquals("Value" + ch, entry.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testKeys() {
|
||||
final SortedProperties sortedProperties = new SortedProperties();
|
||||
for (char ch = 'Z'; ch >= 'A'; ch--) {
|
||||
sortedProperties.put(String.valueOf(ch), "Value" + ch);
|
||||
}
|
||||
final Enumeration<Object> keys = sortedProperties.keys();
|
||||
for (char ch = 'A'; ch <= 'Z'; ch++) {
|
||||
Assert.assertEquals(String.valueOf(ch), keys.nextElement());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user