allow changing jolokia delimiter (#2255)

This commit is contained in:
Patrick Hemmer
2017-01-12 06:08:22 -05:00
committed by Cameron Sparr
parent 947e1909ff
commit b7d29ca0e9
3 changed files with 23 additions and 12 deletions

View File

@@ -104,9 +104,10 @@ func (c jolokiaClientStub) MakeRequest(req *http.Request) (*http.Response, error
// *HttpJson: Pointer to an HttpJson object that uses the generated mock HTTP client
func genJolokiaClientStub(response string, statusCode int, servers []Server, metrics []Metric) *Jolokia {
return &Jolokia{
jClient: jolokiaClientStub{responseBody: response, statusCode: statusCode},
Servers: servers,
Metrics: metrics,
jClient: jolokiaClientStub{responseBody: response, statusCode: statusCode},
Servers: servers,
Metrics: metrics,
Delimiter: "_",
}
}