public class TestConnectionId extends Object
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.hbase.net.Address |
address |
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.hbase.ipc.ConnectionId |
connectionId1 |
private org.apache.hadoop.hbase.ipc.ConnectionId |
connectionId2 |
private String |
serviceName |
private org.apache.hadoop.conf.Configuration |
testConfig |
private org.apache.hadoop.hbase.security.User |
testUser1 |
private org.apache.hadoop.hbase.security.User |
testUser2 |
Constructor and Description |
---|
TestConnectionId() |
Modifier and Type | Method and Description |
---|---|
void |
testEqualsWithHashCode()
Test if the over-ridden equals method satisfies all the properties (reflexive, symmetry,
transitive and null) along with their hashcode
|
void |
testGetAddress() |
void |
testGetServiceName() |
void |
testGetTicket() |
void |
testHashCode()
Test the hashcode for same object and different object with both hashcode function and static
hashcode function
|
void |
testToString() |
public static final HBaseClassTestRule CLASS_RULE
private org.apache.hadoop.conf.Configuration testConfig
private org.apache.hadoop.hbase.security.User testUser1
private org.apache.hadoop.hbase.security.User testUser2
private String serviceName
private org.apache.hadoop.hbase.net.Address address
private org.apache.hadoop.hbase.ipc.ConnectionId connectionId1
private org.apache.hadoop.hbase.ipc.ConnectionId connectionId2
public TestConnectionId()
public void testGetServiceName()
public void testGetAddress()
public void testGetTicket()
public void testToString()
public void testEqualsWithHashCode()
public void testHashCode()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.