Package org.springframework.ide.eclipse.quickfix.processors

Examples of org.springframework.ide.eclipse.quickfix.processors.NameSuggestionComparator


    String name2 = "com.test.Accounts";
    String name3 = "com.test.Accountsss";
    String name4 = "com.test.Car";
    String name5 = "Account";
   
    NameSuggestionComparator comparator = new NameSuggestionComparator("Account");
    assertEquals("Expects 0 when string are equal", 0, comparator.compare(name1, name1));
    assertTrue(comparator.compare(name1, name2) > 0);
    assertTrue(comparator.compare(name2, name1) < 0);
    assertTrue(comparator.compare(name1, name3) >= 0);
    assertTrue(comparator.compare(name3, name1) <= 0);
    assertTrue(comparator.compare(name2, name3) >= 0);
    assertTrue(comparator.compare(name3, name2) <= 0);
    assertTrue(comparator.compare(name3, name4) > 0);
    assertTrue(comparator.compare(name1, name5) == 0);
  }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.quickfix.processors.NameSuggestionComparator

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.