Package org.jboss.services.binding

Examples of org.jboss.services.binding.ServiceBindingMetadata.compareTo()


      catch (IllegalStateException good) {}
     
      md1 = new ServiceBindingMetadata(S, B);
      md2 = new ServiceBindingMetadata(S, null);
      assertTrue(md1.compareTo(md2) > 0);
      assertTrue(md2.compareTo(md1) < 0);
     
      md2 = new ServiceBindingMetadata(B, B);
      assertTrue(md1.compareTo(md2) > 0);
      assertTrue(md2.compareTo(md1) < 0);
     
View Full Code Here


      assertTrue(md1.compareTo(md2) > 0);
      assertTrue(md2.compareTo(md1) < 0);
     
      md2 = new ServiceBindingMetadata(B, B);
      assertTrue(md1.compareTo(md2) > 0);
      assertTrue(md2.compareTo(md1) < 0);
     
      md2 = new ServiceBindingMetadata(S, B);
      md2.setHostName(H);
      md2.setPort(10);
      md2.setServiceBindingValueSource(new MockServiceBindingValueSource());
View Full Code Here

      md2.setHostName(H);
      md2.setPort(10);
      md2.setServiceBindingValueSource(new MockServiceBindingValueSource());
      md2.setServiceBindingValueSourceConfig(new Object());
      assertEquals(0, md1.compareTo(md2));
      assertEquals(0, md2.compareTo(md1));
     
   }

}
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.