@Test @SuppressWarnings("deprecation") public void testToString() { TableSplit split = new TableSplit(TableName.valueOf(name.getMethodName()), "row-start".getBytes(), "row-end".getBytes(), "location"); String str = "HBase table split(table name: " + name.getMethodName() + ", start row: row-start, " + "end row: row-end, region location: location)"; Assert.assertEquals(str, split.toString()); split = new TableSplit((TableName) null, null, null, null); str = "HBase table split(table name: null, start row: null, " + "end row: null, region location: null)"; Assert.assertEquals(str, split.toString()); } }
@Test @SuppressWarnings("deprecation") public void testToString() { TableSplit split = new TableSplit(TableName.valueOf(name.getMethodName()), "row-start".getBytes(), "row-end".getBytes(), "location"); String str = "HBase table split(table name: " + name.getMethodName() + ", start row: row-start, " + "end row: row-end, region location: location)"; Assert.assertEquals(str, split.toString()); split = new TableSplit((TableName) null, null, null, null); str = "HBase table split(table name: null, start row: null, " + "end row: null, region location: null)"; Assert.assertEquals(str, split.toString()); } }
@Test @SuppressWarnings("deprecation") public void testToString() { TableSplit split = new TableSplit(TableName.valueOf(name.getMethodName()), "row-start".getBytes(), "row-end".getBytes(), "location"); String str = "HBase table split(table name: " + name.getMethodName() + ", start row: row-start, " + "end row: row-end, region location: location)"; Assert.assertEquals(str, split.toString()); split = new TableSplit((TableName) null, null, null, null); str = "HBase table split(table name: null, start row: null, " + "end row: null, region location: null)"; Assert.assertEquals(str, split.toString()); } }