Package uk.ac.osswatch.simal.model

Examples of uk.ac.osswatch.simal.model.IFoafResource


    SortablePersonDataProvider provider = new SortablePersonDataProvider();
    int pageSize = NUMBER_OF_TEST_PEOPLE - 1;

    // test the default sort is by label
    Iterator<IFoafResource> iterator = provider.iterator(0, pageSize);
    IFoafResource person;
    String prev = null;
    String current;
    int count = 0;
    while (iterator.hasNext()) {
      person = iterator.next();
      current = (String) person.getLabel();
      if (prev != null) {
        assertTrue("Incorrect sort order: " + prev + " preceeds " + current,
            current.compareTo(prev) >= 0);
      }
      prev = current;
View Full Code Here

TOP

Related Classes of uk.ac.osswatch.simal.model.IFoafResource

Copyright © 2018 www.massapicom. 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.