Package org.jboss.metadata.spi.scope

Examples of org.jboss.metadata.spi.scope.ScopeLevel.compareTo()


   {
      ScopeLevel test1 = new ScopeLevel(1, "HELLO");
      ScopeLevel test2 = new ScopeLevel(2, "HELLO");

      assertTrue(test1.compareTo(test2) < 0);
      assertTrue(test2.compareTo(test1) > 0);

      ScopeLevel test3 = new ScopeLevel(3, "HELLO");

      assertTrue(test1.compareTo(test3) < 0);
      assertTrue(test3.compareTo(test1) > 0);
View Full Code Here


      assertTrue(test2.compareTo(test1) > 0);

      ScopeLevel test3 = new ScopeLevel(3, "HELLO");

      assertTrue(test1.compareTo(test3) < 0);
      assertTrue(test3.compareTo(test1) > 0);
      assertTrue(test2.compareTo(test3) < 0);
      assertTrue(test3.compareTo(test2) > 0);

      ScopeLevel test4 = new ScopeLevel(1, "HELLO");
View Full Code Here

      ScopeLevel test3 = new ScopeLevel(3, "HELLO");

      assertTrue(test1.compareTo(test3) < 0);
      assertTrue(test3.compareTo(test1) > 0);
      assertTrue(test2.compareTo(test3) < 0);
      assertTrue(test3.compareTo(test2) > 0);

      ScopeLevel test4 = new ScopeLevel(1, "HELLO");

      assertTrue(test1.compareTo(test4) == 0);
     
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.