Class TestConnectionId

java.lang.Object
org.apache.hadoop.hbase.ipc.TestConnectionId

@Tag("org.apache.hadoop.hbase.testclassification.SmallTests") @Tag("org.apache.hadoop.hbase.testclassification.ClientTests") public class TestConnectionId extends Object
  • Field Details

    • testConfig

      private org.apache.hadoop.conf.Configuration testConfig
    • testUser1

      private org.apache.hadoop.hbase.security.User testUser1
    • testUser2

      private org.apache.hadoop.hbase.security.User testUser2
    • serviceName

    • address

      private org.apache.hadoop.hbase.net.Address address
    • connectionId1

      private org.apache.hadoop.hbase.ipc.ConnectionId connectionId1
    • connectionId2

      private org.apache.hadoop.hbase.ipc.ConnectionId connectionId2
  • Constructor Details

  • Method Details

    • testGetServiceName

      @Test public void testGetServiceName()
    • testGetAddress

      @Test public void testGetAddress()
    • testGetTicket

      @Test public void testGetTicket()
    • testToString

      @Test public void testToString()
    • testEqualsWithHashCode

      @Test public void testEqualsWithHashCode()
      Test if the over-ridden equals method satisfies all the properties (reflexive, symmetry, transitive and null) along with their hashcode
    • testHashCode

      @Test public void testHashCode()
      Test the hashcode for same object and different object with both hashcode function and static hashcode function