@@ -2,7 +2,6 @@ package baa
22
33import (
44 "bytes"
5- "encoding/json"
65 "encoding/xml"
76 "fmt"
87 "io"
@@ -226,7 +225,7 @@ func TestContextQuery1(t *testing.T) {
226225 c .QueryJSON (& dataFromBody )
227226 So (dataFromBody ["test" ], ShouldEqual , dataSource ["test" ])
228227 })
229- body , _ := json . Marshal (dataSource )
228+ body , _ := Marshal (dataSource )
230229 req , _ := http .NewRequest ("POST" , "/context/json" , bytes .NewReader (body ))
231230 req .Header .Set ("Content-Type" , ApplicationJSON )
232231 w := httptest .NewRecorder ()
@@ -241,7 +240,7 @@ func TestContextQuery1(t *testing.T) {
241240 c .QueryJSON (dataFromBody )
242241 So (dataFromBody , ShouldBeNil )
243242 })
244- body , _ := json . Marshal (dataSource )
243+ body , _ := Marshal (dataSource )
245244 req , _ := http .NewRequest ("POST" , "/context/json2" , bytes .NewReader (body ))
246245 req .Header .Set ("Content-Type" , ApplicationJSON )
247246 w := httptest .NewRecorder ()
@@ -258,7 +257,7 @@ func TestContextQuery1(t *testing.T) {
258257 c .QueryJSON (& dataFromBody )
259258 So (dataFromBody .Test , ShouldEqual , dataSource ["test" ])
260259 })
261- body , _ := json . Marshal (dataSource )
260+ body , _ := Marshal (dataSource )
262261 req , _ := http .NewRequest ("POST" , "/context/json3" , bytes .NewReader (body ))
263262 req .Header .Set ("Content-Type" , ApplicationJSON )
264263 w := httptest .NewRecorder ()
0 commit comments