Skip to content

Commit 1bba734

Browse files
committed
fix UT
1 parent 20d7273 commit 1bba734

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/mapreduce/TestTableSplit.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -103,32 +103,32 @@ public void testToString() {
103103
new TableSplit(TableName.valueOf(name.getMethodName()), Bytes.toBytes("row-start"),
104104
Bytes.toBytes("row-end"), "location");
105105
String str =
106-
"HBase table split(table name: " + name.getMethodName() + ", scan: , start row: row-start, "
107-
+ "end row: row-end, region location: location, "
108-
+ "encoded region name: )";
106+
"Split(tablename=" + name.getMethodName() + ", startrow=row-start, "
107+
+ "endrow=row-end, regionLocation=location, "
108+
+ "regionname=)";
109109
Assert.assertEquals(str, split.toString());
110110

111111
split =
112112
new TableSplit(TableName.valueOf(name.getMethodName()), null, Bytes.toBytes("row-start"),
113113
Bytes.toBytes("row-end"), "location", "encoded-region-name", 1000L);
114114
str =
115-
"HBase table split(table name: " + name.getMethodName() + ", scan: , start row: row-start, "
116-
+ "end row: row-end, region location: location, "
117-
+ "encoded region name: encoded-region-name)";
115+
"Split(tablename=" + name.getMethodName() + ", startrow=row-start, "
116+
+ "endrow=row-end, regionLocation=location, "
117+
+ "regionname=encoded-region-name)";
118118
Assert.assertEquals(str, split.toString());
119119

120120
split = new TableSplit(null, null, null, null);
121121
str =
122-
"HBase table split(table name: null, scan: , start row: null, "
123-
+ "end row: null, region location: null, "
124-
+ "encoded region name: )";
122+
"Split(tablename=null, startrow=null, "
123+
+ "endrow=null, regionLocation=null, "
124+
+ "regionname=)";
125125
Assert.assertEquals(str, split.toString());
126126

127127
split = new TableSplit(null, null, null, null, null, null, 1000L);
128128
str =
129-
"HBase table split(table name: null, scan: , start row: null, "
130-
+ "end row: null, region location: null, "
131-
+ "encoded region name: null)";
129+
"Split(tablename=null, startrow=null, "
130+
+ "endrow=null, regionLocation=null, "
131+
+ "regionname=null)";
132132
Assert.assertEquals(str, split.toString());
133133
}
134134
}

0 commit comments

Comments
 (0)