Package org.jetbrains.osgi.jps.util

Examples of org.jetbrains.osgi.jps.util.OrderedProperties.stringPropertyNames()


    Enumeration<?> propertyNames = props.propertyNames();
    assertThat((String)propertyNames.nextElement(), equalTo("Foo"));
    assertThat((String)propertyNames.nextElement(), equalTo("Bar"));
    assertThat((String)propertyNames.nextElement(), equalTo("Baz"));

    Iterator<String> iterator = props.stringPropertyNames().iterator();
    assertThat(iterator.next(), equalTo("Foo"));
    assertThat(iterator.next(), equalTo("Bar"));
    assertThat(iterator.next(), equalTo("Baz"));
  }
View Full Code Here


    OrderedProperties props = new OrderedProperties();
    props.setProperty("key1", "value1");
    props.setProperty("key3", "value3");
    props.setProperty("key2", "value2");

    Iterator<String> iterator = props.stringPropertyNames().iterator();
    assertThat(iterator.next(), equalTo("key1"));
    assertThat(iterator.next(), equalTo("key3"));
    assertThat(iterator.next(), equalTo("key2"));
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.