hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [01/51] [partial] hbase-site git commit: Published site at .
Date Tue, 15 Aug 2017 15:06:17 GMT
Repository: hbase-site
Updated Branches:
  refs/heads/asf-site 2341d7c5a -> 07e68d464


http://git-wip-us.apache.org/repos/asf/hbase-site/blob/07e68d46/testdevapidocs/src-html/org/apache/hadoop/hbase/rest/TestMultiRowResource.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/rest/TestMultiRowResource.html
b/testdevapidocs/src-html/org/apache/hadoop/hbase/rest/TestMultiRowResource.html
index f5d77fe..492e7fe 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/rest/TestMultiRowResource.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/rest/TestMultiRowResource.html
@@ -90,167 +90,164 @@
 <span class="sourceLineNo">082</span><a name="line.82"></a>
 <span class="sourceLineNo">083</span>  @Parameterized.Parameters<a name="line.83"></a>
 <span class="sourceLineNo">084</span>  public static Collection&lt;Object[]&gt;
data() {<a name="line.84"></a>
-<span class="sourceLineNo">085</span>    List&lt;Object[]&gt; params
= new ArrayList&lt;&gt;(2);<a name="line.85"></a>
-<span class="sourceLineNo">086</span>    params.add(new Object[] {Boolean.TRUE});<a
name="line.86"></a>
-<span class="sourceLineNo">087</span>    params.add(new Object[] {Boolean.FALSE});<a
name="line.87"></a>
-<span class="sourceLineNo">088</span>    return params;<a name="line.88"></a>
-<span class="sourceLineNo">089</span>  }<a name="line.89"></a>
-<span class="sourceLineNo">090</span><a name="line.90"></a>
-<span class="sourceLineNo">091</span>  public TestMultiRowResource(Boolean csrf)
{<a name="line.91"></a>
-<span class="sourceLineNo">092</span>    csrfEnabled = csrf;<a name="line.92"></a>
-<span class="sourceLineNo">093</span>  }<a name="line.93"></a>
-<span class="sourceLineNo">094</span><a name="line.94"></a>
-<span class="sourceLineNo">095</span><a name="line.95"></a>
-<span class="sourceLineNo">096</span>  @BeforeClass<a name="line.96"></a>
-<span class="sourceLineNo">097</span>  public static void setUpBeforeClass()
throws Exception {<a name="line.97"></a>
-<span class="sourceLineNo">098</span>    conf = TEST_UTIL.getConfiguration();<a
name="line.98"></a>
-<span class="sourceLineNo">099</span>    conf.setBoolean(RESTServer.REST_CSRF_ENABLED_KEY,
csrfEnabled);<a name="line.99"></a>
-<span class="sourceLineNo">100</span>    extraHdr = new BasicHeader(RESTServer.REST_CSRF_CUSTOM_HEADER_DEFAULT,
"");<a name="line.100"></a>
-<span class="sourceLineNo">101</span>    TEST_UTIL.startMiniCluster();<a name="line.101"></a>
-<span class="sourceLineNo">102</span>    REST_TEST_UTIL.startServletContainer(conf);<a
name="line.102"></a>
-<span class="sourceLineNo">103</span>    context = JAXBContext.newInstance(<a
name="line.103"></a>
-<span class="sourceLineNo">104</span>            CellModel.class,<a name="line.104"></a>
-<span class="sourceLineNo">105</span>            CellSetModel.class,<a name="line.105"></a>
-<span class="sourceLineNo">106</span>            RowModel.class);<a name="line.106"></a>
-<span class="sourceLineNo">107</span>    marshaller = context.createMarshaller();<a
name="line.107"></a>
-<span class="sourceLineNo">108</span>    unmarshaller = context.createUnmarshaller();<a
name="line.108"></a>
-<span class="sourceLineNo">109</span>    client = new Client(new Cluster().add("localhost",
REST_TEST_UTIL.getServletPort()));<a name="line.109"></a>
-<span class="sourceLineNo">110</span>    Admin admin = TEST_UTIL.getAdmin();<a
name="line.110"></a>
-<span class="sourceLineNo">111</span>    if (admin.tableExists(TABLE)) {<a
name="line.111"></a>
-<span class="sourceLineNo">112</span>      return;<a name="line.112"></a>
-<span class="sourceLineNo">113</span>    }<a name="line.113"></a>
-<span class="sourceLineNo">114</span>    HTableDescriptor htd = new HTableDescriptor(TABLE);<a
name="line.114"></a>
-<span class="sourceLineNo">115</span>    htd.addFamily(new HColumnDescriptor(CFA));<a
name="line.115"></a>
-<span class="sourceLineNo">116</span>    htd.addFamily(new HColumnDescriptor(CFB));<a
name="line.116"></a>
-<span class="sourceLineNo">117</span>    admin.createTable(htd);<a name="line.117"></a>
-<span class="sourceLineNo">118</span>  }<a name="line.118"></a>
-<span class="sourceLineNo">119</span><a name="line.119"></a>
-<span class="sourceLineNo">120</span>  @AfterClass<a name="line.120"></a>
-<span class="sourceLineNo">121</span>  public static void tearDownAfterClass()
throws Exception {<a name="line.121"></a>
-<span class="sourceLineNo">122</span>    REST_TEST_UTIL.shutdownServletContainer();<a
name="line.122"></a>
-<span class="sourceLineNo">123</span>    TEST_UTIL.shutdownMiniCluster();<a
name="line.123"></a>
-<span class="sourceLineNo">124</span>  }<a name="line.124"></a>
-<span class="sourceLineNo">125</span><a name="line.125"></a>
-<span class="sourceLineNo">126</span><a name="line.126"></a>
-<span class="sourceLineNo">127</span>  @Test<a name="line.127"></a>
-<span class="sourceLineNo">128</span>  public void testMultiCellGetJSON() throws
IOException, JAXBException {<a name="line.128"></a>
-<span class="sourceLineNo">129</span>    String row_5_url = "/" + TABLE + "/"
+ ROW_1 + "/" + COLUMN_1;<a name="line.129"></a>
-<span class="sourceLineNo">130</span>    String row_6_url = "/" + TABLE + "/"
+ ROW_2 + "/" + COLUMN_2;<a name="line.130"></a>
-<span class="sourceLineNo">131</span><a name="line.131"></a>
-<span class="sourceLineNo">132</span><a name="line.132"></a>
-<span class="sourceLineNo">133</span>    StringBuilder path = new StringBuilder();<a
name="line.133"></a>
-<span class="sourceLineNo">134</span>    path.append("/");<a name="line.134"></a>
-<span class="sourceLineNo">135</span>    path.append(TABLE);<a name="line.135"></a>
-<span class="sourceLineNo">136</span>    path.append("/multiget/?row=");<a
name="line.136"></a>
-<span class="sourceLineNo">137</span>    path.append(ROW_1);<a name="line.137"></a>
-<span class="sourceLineNo">138</span>    path.append("&amp;row=");<a name="line.138"></a>
-<span class="sourceLineNo">139</span>    path.append(ROW_2);<a name="line.139"></a>
-<span class="sourceLineNo">140</span><a name="line.140"></a>
-<span class="sourceLineNo">141</span>    if (csrfEnabled) {<a name="line.141"></a>
-<span class="sourceLineNo">142</span>      Response response = client.post(row_5_url,
Constants.MIMETYPE_BINARY, Bytes.toBytes(VALUE_1));<a name="line.142"></a>
-<span class="sourceLineNo">143</span>      assertEquals(400, response.getCode());<a
name="line.143"></a>
-<span class="sourceLineNo">144</span>    }<a name="line.144"></a>
+<span class="sourceLineNo">085</span>    return HBaseCommonTestingUtility.BOOLEAN_PARAMETERIZED;<a
name="line.85"></a>
+<span class="sourceLineNo">086</span>  }<a name="line.86"></a>
+<span class="sourceLineNo">087</span><a name="line.87"></a>
+<span class="sourceLineNo">088</span>  public TestMultiRowResource(Boolean csrf)
{<a name="line.88"></a>
+<span class="sourceLineNo">089</span>    csrfEnabled = csrf;<a name="line.89"></a>
+<span class="sourceLineNo">090</span>  }<a name="line.90"></a>
+<span class="sourceLineNo">091</span><a name="line.91"></a>
+<span class="sourceLineNo">092</span><a name="line.92"></a>
+<span class="sourceLineNo">093</span>  @BeforeClass<a name="line.93"></a>
+<span class="sourceLineNo">094</span>  public static void setUpBeforeClass()
throws Exception {<a name="line.94"></a>
+<span class="sourceLineNo">095</span>    conf = TEST_UTIL.getConfiguration();<a
name="line.95"></a>
+<span class="sourceLineNo">096</span>    conf.setBoolean(RESTServer.REST_CSRF_ENABLED_KEY,
csrfEnabled);<a name="line.96"></a>
+<span class="sourceLineNo">097</span>    extraHdr = new BasicHeader(RESTServer.REST_CSRF_CUSTOM_HEADER_DEFAULT,
"");<a name="line.97"></a>
+<span class="sourceLineNo">098</span>    TEST_UTIL.startMiniCluster();<a name="line.98"></a>
+<span class="sourceLineNo">099</span>    REST_TEST_UTIL.startServletContainer(conf);<a
name="line.99"></a>
+<span class="sourceLineNo">100</span>    context = JAXBContext.newInstance(<a
name="line.100"></a>
+<span class="sourceLineNo">101</span>            CellModel.class,<a name="line.101"></a>
+<span class="sourceLineNo">102</span>            CellSetModel.class,<a name="line.102"></a>
+<span class="sourceLineNo">103</span>            RowModel.class);<a name="line.103"></a>
+<span class="sourceLineNo">104</span>    marshaller = context.createMarshaller();<a
name="line.104"></a>
+<span class="sourceLineNo">105</span>    unmarshaller = context.createUnmarshaller();<a
name="line.105"></a>
+<span class="sourceLineNo">106</span>    client = new Client(new Cluster().add("localhost",
REST_TEST_UTIL.getServletPort()));<a name="line.106"></a>
+<span class="sourceLineNo">107</span>    Admin admin = TEST_UTIL.getAdmin();<a
name="line.107"></a>
+<span class="sourceLineNo">108</span>    if (admin.tableExists(TABLE)) {<a
name="line.108"></a>
+<span class="sourceLineNo">109</span>      return;<a name="line.109"></a>
+<span class="sourceLineNo">110</span>    }<a name="line.110"></a>
+<span class="sourceLineNo">111</span>    HTableDescriptor htd = new HTableDescriptor(TABLE);<a
name="line.111"></a>
+<span class="sourceLineNo">112</span>    htd.addFamily(new HColumnDescriptor(CFA));<a
name="line.112"></a>
+<span class="sourceLineNo">113</span>    htd.addFamily(new HColumnDescriptor(CFB));<a
name="line.113"></a>
+<span class="sourceLineNo">114</span>    admin.createTable(htd);<a name="line.114"></a>
+<span class="sourceLineNo">115</span>  }<a name="line.115"></a>
+<span class="sourceLineNo">116</span><a name="line.116"></a>
+<span class="sourceLineNo">117</span>  @AfterClass<a name="line.117"></a>
+<span class="sourceLineNo">118</span>  public static void tearDownAfterClass()
throws Exception {<a name="line.118"></a>
+<span class="sourceLineNo">119</span>    REST_TEST_UTIL.shutdownServletContainer();<a
name="line.119"></a>
+<span class="sourceLineNo">120</span>    TEST_UTIL.shutdownMiniCluster();<a
name="line.120"></a>
+<span class="sourceLineNo">121</span>  }<a name="line.121"></a>
+<span class="sourceLineNo">122</span><a name="line.122"></a>
+<span class="sourceLineNo">123</span><a name="line.123"></a>
+<span class="sourceLineNo">124</span>  @Test<a name="line.124"></a>
+<span class="sourceLineNo">125</span>  public void testMultiCellGetJSON() throws
IOException, JAXBException {<a name="line.125"></a>
+<span class="sourceLineNo">126</span>    String row_5_url = "/" + TABLE + "/"
+ ROW_1 + "/" + COLUMN_1;<a name="line.126"></a>
+<span class="sourceLineNo">127</span>    String row_6_url = "/" + TABLE + "/"
+ ROW_2 + "/" + COLUMN_2;<a name="line.127"></a>
+<span class="sourceLineNo">128</span><a name="line.128"></a>
+<span class="sourceLineNo">129</span><a name="line.129"></a>
+<span class="sourceLineNo">130</span>    StringBuilder path = new StringBuilder();<a
name="line.130"></a>
+<span class="sourceLineNo">131</span>    path.append("/");<a name="line.131"></a>
+<span class="sourceLineNo">132</span>    path.append(TABLE);<a name="line.132"></a>
+<span class="sourceLineNo">133</span>    path.append("/multiget/?row=");<a
name="line.133"></a>
+<span class="sourceLineNo">134</span>    path.append(ROW_1);<a name="line.134"></a>
+<span class="sourceLineNo">135</span>    path.append("&amp;row=");<a name="line.135"></a>
+<span class="sourceLineNo">136</span>    path.append(ROW_2);<a name="line.136"></a>
+<span class="sourceLineNo">137</span><a name="line.137"></a>
+<span class="sourceLineNo">138</span>    if (csrfEnabled) {<a name="line.138"></a>
+<span class="sourceLineNo">139</span>      Response response = client.post(row_5_url,
Constants.MIMETYPE_BINARY, Bytes.toBytes(VALUE_1));<a name="line.139"></a>
+<span class="sourceLineNo">140</span>      assertEquals(400, response.getCode());<a
name="line.140"></a>
+<span class="sourceLineNo">141</span>    }<a name="line.141"></a>
+<span class="sourceLineNo">142</span><a name="line.142"></a>
+<span class="sourceLineNo">143</span>    client.post(row_5_url, Constants.MIMETYPE_BINARY,
Bytes.toBytes(VALUE_1), extraHdr);<a name="line.143"></a>
+<span class="sourceLineNo">144</span>    client.post(row_6_url, Constants.MIMETYPE_BINARY,
Bytes.toBytes(VALUE_2), extraHdr);<a name="line.144"></a>
 <span class="sourceLineNo">145</span><a name="line.145"></a>
-<span class="sourceLineNo">146</span>    client.post(row_5_url, Constants.MIMETYPE_BINARY,
Bytes.toBytes(VALUE_1), extraHdr);<a name="line.146"></a>
-<span class="sourceLineNo">147</span>    client.post(row_6_url, Constants.MIMETYPE_BINARY,
Bytes.toBytes(VALUE_2), extraHdr);<a name="line.147"></a>
-<span class="sourceLineNo">148</span><a name="line.148"></a>
-<span class="sourceLineNo">149</span><a name="line.149"></a>
-<span class="sourceLineNo">150</span>    Response response = client.get(path.toString(),
Constants.MIMETYPE_JSON);<a name="line.150"></a>
-<span class="sourceLineNo">151</span>    assertEquals(response.getCode(), 200);<a
name="line.151"></a>
-<span class="sourceLineNo">152</span>    assertEquals(Constants.MIMETYPE_JSON,
response.getHeader("content-type"));<a name="line.152"></a>
+<span class="sourceLineNo">146</span><a name="line.146"></a>
+<span class="sourceLineNo">147</span>    Response response = client.get(path.toString(),
Constants.MIMETYPE_JSON);<a name="line.147"></a>
+<span class="sourceLineNo">148</span>    assertEquals(response.getCode(), 200);<a
name="line.148"></a>
+<span class="sourceLineNo">149</span>    assertEquals(Constants.MIMETYPE_JSON,
response.getHeader("content-type"));<a name="line.149"></a>
+<span class="sourceLineNo">150</span><a name="line.150"></a>
+<span class="sourceLineNo">151</span>    client.delete(row_5_url, extraHdr);<a
name="line.151"></a>
+<span class="sourceLineNo">152</span>    client.delete(row_6_url, extraHdr);<a
name="line.152"></a>
 <span class="sourceLineNo">153</span><a name="line.153"></a>
-<span class="sourceLineNo">154</span>    client.delete(row_5_url, extraHdr);<a
name="line.154"></a>
-<span class="sourceLineNo">155</span>    client.delete(row_6_url, extraHdr);<a
name="line.155"></a>
-<span class="sourceLineNo">156</span><a name="line.156"></a>
-<span class="sourceLineNo">157</span>  }<a name="line.157"></a>
-<span class="sourceLineNo">158</span><a name="line.158"></a>
-<span class="sourceLineNo">159</span>  @Test<a name="line.159"></a>
-<span class="sourceLineNo">160</span>  public void testMultiCellGetXML() throws
IOException, JAXBException {<a name="line.160"></a>
-<span class="sourceLineNo">161</span>    String row_5_url = "/" + TABLE + "/"
+ ROW_1 + "/" + COLUMN_1;<a name="line.161"></a>
-<span class="sourceLineNo">162</span>    String row_6_url = "/" + TABLE + "/"
+ ROW_2 + "/" + COLUMN_2;<a name="line.162"></a>
-<span class="sourceLineNo">163</span><a name="line.163"></a>
-<span class="sourceLineNo">164</span><a name="line.164"></a>
-<span class="sourceLineNo">165</span>    StringBuilder path = new StringBuilder();<a
name="line.165"></a>
-<span class="sourceLineNo">166</span>    path.append("/");<a name="line.166"></a>
-<span class="sourceLineNo">167</span>    path.append(TABLE);<a name="line.167"></a>
-<span class="sourceLineNo">168</span>    path.append("/multiget/?row=");<a
name="line.168"></a>
-<span class="sourceLineNo">169</span>    path.append(ROW_1);<a name="line.169"></a>
-<span class="sourceLineNo">170</span>    path.append("&amp;row=");<a name="line.170"></a>
-<span class="sourceLineNo">171</span>    path.append(ROW_2);<a name="line.171"></a>
+<span class="sourceLineNo">154</span>  }<a name="line.154"></a>
+<span class="sourceLineNo">155</span><a name="line.155"></a>
+<span class="sourceLineNo">156</span>  @Test<a name="line.156"></a>
+<span class="sourceLineNo">157</span>  public void testMultiCellGetXML() throws
IOException, JAXBException {<a name="line.157"></a>
+<span class="sourceLineNo">158</span>    String row_5_url = "/" + TABLE + "/"
+ ROW_1 + "/" + COLUMN_1;<a name="line.158"></a>
+<span class="sourceLineNo">159</span>    String row_6_url = "/" + TABLE + "/"
+ ROW_2 + "/" + COLUMN_2;<a name="line.159"></a>
+<span class="sourceLineNo">160</span><a name="line.160"></a>
+<span class="sourceLineNo">161</span><a name="line.161"></a>
+<span class="sourceLineNo">162</span>    StringBuilder path = new StringBuilder();<a
name="line.162"></a>
+<span class="sourceLineNo">163</span>    path.append("/");<a name="line.163"></a>
+<span class="sourceLineNo">164</span>    path.append(TABLE);<a name="line.164"></a>
+<span class="sourceLineNo">165</span>    path.append("/multiget/?row=");<a
name="line.165"></a>
+<span class="sourceLineNo">166</span>    path.append(ROW_1);<a name="line.166"></a>
+<span class="sourceLineNo">167</span>    path.append("&amp;row=");<a name="line.167"></a>
+<span class="sourceLineNo">168</span>    path.append(ROW_2);<a name="line.168"></a>
+<span class="sourceLineNo">169</span><a name="line.169"></a>
+<span class="sourceLineNo">170</span>    client.post(row_5_url, Constants.MIMETYPE_BINARY,
Bytes.toBytes(VALUE_1), extraHdr);<a name="line.170"></a>
+<span class="sourceLineNo">171</span>    client.post(row_6_url, Constants.MIMETYPE_BINARY,
Bytes.toBytes(VALUE_2), extraHdr);<a name="line.171"></a>
 <span class="sourceLineNo">172</span><a name="line.172"></a>
-<span class="sourceLineNo">173</span>    client.post(row_5_url, Constants.MIMETYPE_BINARY,
Bytes.toBytes(VALUE_1), extraHdr);<a name="line.173"></a>
-<span class="sourceLineNo">174</span>    client.post(row_6_url, Constants.MIMETYPE_BINARY,
Bytes.toBytes(VALUE_2), extraHdr);<a name="line.174"></a>
-<span class="sourceLineNo">175</span><a name="line.175"></a>
-<span class="sourceLineNo">176</span><a name="line.176"></a>
-<span class="sourceLineNo">177</span>    Response response = client.get(path.toString(),
Constants.MIMETYPE_XML);<a name="line.177"></a>
-<span class="sourceLineNo">178</span>    assertEquals(response.getCode(), 200);<a
name="line.178"></a>
-<span class="sourceLineNo">179</span>    assertEquals(Constants.MIMETYPE_XML,
response.getHeader("content-type"));<a name="line.179"></a>
+<span class="sourceLineNo">173</span><a name="line.173"></a>
+<span class="sourceLineNo">174</span>    Response response = client.get(path.toString(),
Constants.MIMETYPE_XML);<a name="line.174"></a>
+<span class="sourceLineNo">175</span>    assertEquals(response.getCode(), 200);<a
name="line.175"></a>
+<span class="sourceLineNo">176</span>    assertEquals(Constants.MIMETYPE_XML,
response.getHeader("content-type"));<a name="line.176"></a>
+<span class="sourceLineNo">177</span><a name="line.177"></a>
+<span class="sourceLineNo">178</span>    client.delete(row_5_url, extraHdr);<a
name="line.178"></a>
+<span class="sourceLineNo">179</span>    client.delete(row_6_url, extraHdr);<a
name="line.179"></a>
 <span class="sourceLineNo">180</span><a name="line.180"></a>
-<span class="sourceLineNo">181</span>    client.delete(row_5_url, extraHdr);<a
name="line.181"></a>
-<span class="sourceLineNo">182</span>    client.delete(row_6_url, extraHdr);<a
name="line.182"></a>
-<span class="sourceLineNo">183</span><a name="line.183"></a>
-<span class="sourceLineNo">184</span>  }<a name="line.184"></a>
-<span class="sourceLineNo">185</span><a name="line.185"></a>
-<span class="sourceLineNo">186</span>  @Test<a name="line.186"></a>
-<span class="sourceLineNo">187</span>  public void testMultiCellGetWithColsJSON()
throws IOException, JAXBException {<a name="line.187"></a>
-<span class="sourceLineNo">188</span>    String row_5_url = "/" + TABLE + "/"
+ ROW_1 + "/" + COLUMN_1;<a name="line.188"></a>
-<span class="sourceLineNo">189</span>    String row_6_url = "/" + TABLE + "/"
+ ROW_2 + "/" + COLUMN_2;<a name="line.189"></a>
-<span class="sourceLineNo">190</span><a name="line.190"></a>
-<span class="sourceLineNo">191</span>    StringBuilder path = new StringBuilder();<a
name="line.191"></a>
-<span class="sourceLineNo">192</span>    path.append("/");<a name="line.192"></a>
-<span class="sourceLineNo">193</span>    path.append(TABLE);<a name="line.193"></a>
-<span class="sourceLineNo">194</span>    path.append("/multiget");<a name="line.194"></a>
-<span class="sourceLineNo">195</span>    path.append("/" + COLUMN_1 + "," + CFB);<a
name="line.195"></a>
-<span class="sourceLineNo">196</span>    path.append("?row=");<a name="line.196"></a>
-<span class="sourceLineNo">197</span>    path.append(ROW_1);<a name="line.197"></a>
-<span class="sourceLineNo">198</span>    path.append("&amp;row=");<a name="line.198"></a>
-<span class="sourceLineNo">199</span>    path.append(ROW_2);<a name="line.199"></a>
+<span class="sourceLineNo">181</span>  }<a name="line.181"></a>
+<span class="sourceLineNo">182</span><a name="line.182"></a>
+<span class="sourceLineNo">183</span>  @Test<a name="line.183"></a>
+<span class="sourceLineNo">184</span>  public void testMultiCellGetWithColsJSON()
throws IOException, JAXBException {<a name="line.184"></a>
+<span class="sourceLineNo">185</span>    String row_5_url = "/" + TABLE + "/"
+ ROW_1 + "/" + COLUMN_1;<a name="line.185"></a>
+<span class="sourceLineNo">186</span>    String row_6_url = "/" + TABLE + "/"
+ ROW_2 + "/" + COLUMN_2;<a name="line.186"></a>
+<span class="sourceLineNo">187</span><a name="line.187"></a>
+<span class="sourceLineNo">188</span>    StringBuilder path = new StringBuilder();<a
name="line.188"></a>
+<span class="sourceLineNo">189</span>    path.append("/");<a name="line.189"></a>
+<span class="sourceLineNo">190</span>    path.append(TABLE);<a name="line.190"></a>
+<span class="sourceLineNo">191</span>    path.append("/multiget");<a name="line.191"></a>
+<span class="sourceLineNo">192</span>    path.append("/" + COLUMN_1 + "," + CFB);<a
name="line.192"></a>
+<span class="sourceLineNo">193</span>    path.append("?row=");<a name="line.193"></a>
+<span class="sourceLineNo">194</span>    path.append(ROW_1);<a name="line.194"></a>
+<span class="sourceLineNo">195</span>    path.append("&amp;row=");<a name="line.195"></a>
+<span class="sourceLineNo">196</span>    path.append(ROW_2);<a name="line.196"></a>
+<span class="sourceLineNo">197</span><a name="line.197"></a>
+<span class="sourceLineNo">198</span>    client.post(row_5_url, Constants.MIMETYPE_BINARY,
Bytes.toBytes(VALUE_1), extraHdr);<a name="line.198"></a>
+<span class="sourceLineNo">199</span>    client.post(row_6_url, Constants.MIMETYPE_BINARY,
Bytes.toBytes(VALUE_2), extraHdr);<a name="line.199"></a>
 <span class="sourceLineNo">200</span><a name="line.200"></a>
-<span class="sourceLineNo">201</span>    client.post(row_5_url, Constants.MIMETYPE_BINARY,
Bytes.toBytes(VALUE_1), extraHdr);<a name="line.201"></a>
-<span class="sourceLineNo">202</span>    client.post(row_6_url, Constants.MIMETYPE_BINARY,
Bytes.toBytes(VALUE_2), extraHdr);<a name="line.202"></a>
-<span class="sourceLineNo">203</span><a name="line.203"></a>
-<span class="sourceLineNo">204</span>    Response response = client.get(path.toString(),
Constants.MIMETYPE_JSON);<a name="line.204"></a>
-<span class="sourceLineNo">205</span>    assertEquals(response.getCode(), 200);<a
name="line.205"></a>
-<span class="sourceLineNo">206</span>    ObjectMapper mapper =<a name="line.206"></a>
-<span class="sourceLineNo">207</span>        new JacksonJaxbJsonProvider().locateMapper(CellSetModel.class,
MediaType.APPLICATION_JSON_TYPE);<a name="line.207"></a>
-<span class="sourceLineNo">208</span>    CellSetModel cellSet = (CellSetModel)
mapper.readValue(response.getBody(), CellSetModel.class);<a name="line.208"></a>
-<span class="sourceLineNo">209</span>    assertEquals(2, cellSet.getRows().size());<a
name="line.209"></a>
-<span class="sourceLineNo">210</span>    assertEquals(ROW_1, Bytes.toString(cellSet.getRows().get(0).getKey()));<a
name="line.210"></a>
-<span class="sourceLineNo">211</span>    assertEquals(VALUE_1, Bytes.toString(cellSet.getRows().get(0).getCells().get(0).getValue()));<a
name="line.211"></a>
-<span class="sourceLineNo">212</span>    assertEquals(ROW_2, Bytes.toString(cellSet.getRows().get(1).getKey()));<a
name="line.212"></a>
-<span class="sourceLineNo">213</span>    assertEquals(VALUE_2, Bytes.toString(cellSet.getRows().get(1).getCells().get(0).getValue()));<a
name="line.213"></a>
+<span class="sourceLineNo">201</span>    Response response = client.get(path.toString(),
Constants.MIMETYPE_JSON);<a name="line.201"></a>
+<span class="sourceLineNo">202</span>    assertEquals(response.getCode(), 200);<a
name="line.202"></a>
+<span class="sourceLineNo">203</span>    ObjectMapper mapper =<a name="line.203"></a>
+<span class="sourceLineNo">204</span>        new JacksonJaxbJsonProvider().locateMapper(CellSetModel.class,
MediaType.APPLICATION_JSON_TYPE);<a name="line.204"></a>
+<span class="sourceLineNo">205</span>    CellSetModel cellSet = (CellSetModel)
mapper.readValue(response.getBody(), CellSetModel.class);<a name="line.205"></a>
+<span class="sourceLineNo">206</span>    assertEquals(2, cellSet.getRows().size());<a
name="line.206"></a>
+<span class="sourceLineNo">207</span>    assertEquals(ROW_1, Bytes.toString(cellSet.getRows().get(0).getKey()));<a
name="line.207"></a>
+<span class="sourceLineNo">208</span>    assertEquals(VALUE_1, Bytes.toString(cellSet.getRows().get(0).getCells().get(0).getValue()));<a
name="line.208"></a>
+<span class="sourceLineNo">209</span>    assertEquals(ROW_2, Bytes.toString(cellSet.getRows().get(1).getKey()));<a
name="line.209"></a>
+<span class="sourceLineNo">210</span>    assertEquals(VALUE_2, Bytes.toString(cellSet.getRows().get(1).getCells().get(0).getValue()));<a
name="line.210"></a>
+<span class="sourceLineNo">211</span><a name="line.211"></a>
+<span class="sourceLineNo">212</span>    client.delete(row_5_url, extraHdr);<a
name="line.212"></a>
+<span class="sourceLineNo">213</span>    client.delete(row_6_url, extraHdr);<a
name="line.213"></a>
 <span class="sourceLineNo">214</span><a name="line.214"></a>
-<span class="sourceLineNo">215</span>    client.delete(row_5_url, extraHdr);<a
name="line.215"></a>
-<span class="sourceLineNo">216</span>    client.delete(row_6_url, extraHdr);<a
name="line.216"></a>
-<span class="sourceLineNo">217</span><a name="line.217"></a>
-<span class="sourceLineNo">218</span>  }<a name="line.218"></a>
-<span class="sourceLineNo">219</span><a name="line.219"></a>
-<span class="sourceLineNo">220</span>  @Test<a name="line.220"></a>
-<span class="sourceLineNo">221</span>  public void testMultiCellGetJSONNotFound()
throws IOException, JAXBException {<a name="line.221"></a>
-<span class="sourceLineNo">222</span>    String row_5_url = "/" + TABLE + "/"
+ ROW_1 + "/" + COLUMN_1;<a name="line.222"></a>
-<span class="sourceLineNo">223</span><a name="line.223"></a>
-<span class="sourceLineNo">224</span>    StringBuilder path = new StringBuilder();<a
name="line.224"></a>
-<span class="sourceLineNo">225</span>    path.append("/");<a name="line.225"></a>
-<span class="sourceLineNo">226</span>    path.append(TABLE);<a name="line.226"></a>
-<span class="sourceLineNo">227</span>    path.append("/multiget/?row=");<a
name="line.227"></a>
-<span class="sourceLineNo">228</span>    path.append(ROW_1);<a name="line.228"></a>
-<span class="sourceLineNo">229</span>    path.append("&amp;row=");<a name="line.229"></a>
-<span class="sourceLineNo">230</span>    path.append(ROW_2);<a name="line.230"></a>
-<span class="sourceLineNo">231</span><a name="line.231"></a>
-<span class="sourceLineNo">232</span>    client.post(row_5_url, Constants.MIMETYPE_BINARY,
Bytes.toBytes(VALUE_1), extraHdr);<a name="line.232"></a>
-<span class="sourceLineNo">233</span>    Response response = client.get(path.toString(),
Constants.MIMETYPE_JSON);<a name="line.233"></a>
-<span class="sourceLineNo">234</span>    assertEquals(response.getCode(), 200);<a
name="line.234"></a>
-<span class="sourceLineNo">235</span>    ObjectMapper mapper = new JacksonJaxbJsonProvider().locateMapper(CellSetModel.class,<a
name="line.235"></a>
-<span class="sourceLineNo">236</span>      MediaType.APPLICATION_JSON_TYPE);<a
name="line.236"></a>
-<span class="sourceLineNo">237</span>    CellSetModel cellSet = (CellSetModel)
mapper.readValue(response.getBody(), CellSetModel.class);<a name="line.237"></a>
-<span class="sourceLineNo">238</span>    assertEquals(1, cellSet.getRows().size());<a
name="line.238"></a>
-<span class="sourceLineNo">239</span>    assertEquals(ROW_1, Bytes.toString(cellSet.getRows().get(0).getKey()));<a
name="line.239"></a>
-<span class="sourceLineNo">240</span>    assertEquals(VALUE_1, Bytes.toString(cellSet.getRows().get(0).getCells().get(0).getValue()));<a
name="line.240"></a>
-<span class="sourceLineNo">241</span>    client.delete(row_5_url, extraHdr);<a
name="line.241"></a>
-<span class="sourceLineNo">242</span>  }<a name="line.242"></a>
-<span class="sourceLineNo">243</span><a name="line.243"></a>
-<span class="sourceLineNo">244</span>}<a name="line.244"></a>
-<span class="sourceLineNo">245</span><a name="line.245"></a>
+<span class="sourceLineNo">215</span>  }<a name="line.215"></a>
+<span class="sourceLineNo">216</span><a name="line.216"></a>
+<span class="sourceLineNo">217</span>  @Test<a name="line.217"></a>
+<span class="sourceLineNo">218</span>  public void testMultiCellGetJSONNotFound()
throws IOException, JAXBException {<a name="line.218"></a>
+<span class="sourceLineNo">219</span>    String row_5_url = "/" + TABLE + "/"
+ ROW_1 + "/" + COLUMN_1;<a name="line.219"></a>
+<span class="sourceLineNo">220</span><a name="line.220"></a>
+<span class="sourceLineNo">221</span>    StringBuilder path = new StringBuilder();<a
name="line.221"></a>
+<span class="sourceLineNo">222</span>    path.append("/");<a name="line.222"></a>
+<span class="sourceLineNo">223</span>    path.append(TABLE);<a name="line.223"></a>
+<span class="sourceLineNo">224</span>    path.append("/multiget/?row=");<a
name="line.224"></a>
+<span class="sourceLineNo">225</span>    path.append(ROW_1);<a name="line.225"></a>
+<span class="sourceLineNo">226</span>    path.append("&amp;row=");<a name="line.226"></a>
+<span class="sourceLineNo">227</span>    path.append(ROW_2);<a name="line.227"></a>
+<span class="sourceLineNo">228</span><a name="line.228"></a>
+<span class="sourceLineNo">229</span>    client.post(row_5_url, Constants.MIMETYPE_BINARY,
Bytes.toBytes(VALUE_1), extraHdr);<a name="line.229"></a>
+<span class="sourceLineNo">230</span>    Response response = client.get(path.toString(),
Constants.MIMETYPE_JSON);<a name="line.230"></a>
+<span class="sourceLineNo">231</span>    assertEquals(response.getCode(), 200);<a
name="line.231"></a>
+<span class="sourceLineNo">232</span>    ObjectMapper mapper = new JacksonJaxbJsonProvider().locateMapper(CellSetModel.class,<a
name="line.232"></a>
+<span class="sourceLineNo">233</span>      MediaType.APPLICATION_JSON_TYPE);<a
name="line.233"></a>
+<span class="sourceLineNo">234</span>    CellSetModel cellSet = (CellSetModel)
mapper.readValue(response.getBody(), CellSetModel.class);<a name="line.234"></a>
+<span class="sourceLineNo">235</span>    assertEquals(1, cellSet.getRows().size());<a
name="line.235"></a>
+<span class="sourceLineNo">236</span>    assertEquals(ROW_1, Bytes.toString(cellSet.getRows().get(0).getKey()));<a
name="line.236"></a>
+<span class="sourceLineNo">237</span>    assertEquals(VALUE_1, Bytes.toString(cellSet.getRows().get(0).getCells().get(0).getValue()));<a
name="line.237"></a>
+<span class="sourceLineNo">238</span>    client.delete(row_5_url, extraHdr);<a
name="line.238"></a>
+<span class="sourceLineNo">239</span>  }<a name="line.239"></a>
+<span class="sourceLineNo">240</span><a name="line.240"></a>
+<span class="sourceLineNo">241</span>}<a name="line.241"></a>
+<span class="sourceLineNo">242</span><a name="line.242"></a>
 
 
 


Mime
View raw message