Package org.jetbrains.osgi.jps.util

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


  @Test
  public void testRead() throws IOException {
    OrderedProperties props = new OrderedProperties();
    props.load(new StringReader("Foo: Bar,\\\nnaf\nBar: naf\nBaz=naf\n"));

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

    Enumeration<?> propertyNames = props.propertyNames();
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.