Skip to content

Commit

Permalink
Add toString function to support tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Sep 28, 2023
1 parent b136b3d commit 72e5079
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,9 @@ public int size() {
public void report() {
reporter.reportMetrics(jw);
}

@Override
public String toString() {
return jw.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ static void setup() {
when(tracer.newWriter(anyInt())).thenAnswer(new Answer<DataWriter>() {
@Override
public DataWriter answer(InvocationOnMock invocationOnMock) {
int size = invocationOnMock.getArgument(0);
return new DslJsonDataWriter(dslJson.newWriter(size), reporter);
int maxSerializedSize = invocationOnMock.getArgument(0);
return new DslJsonDataWriter(dslJson.newWriter(maxSerializedSize), reporter);
}
});
serializer = new MicrometerMeterRegistrySerializer(config, tracer);
Expand Down

0 comments on commit 72e5079

Please sign in to comment.