Skip to content

Commit

Permalink
fixed Benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Mar 15, 2018
1 parent b4c71ec commit f79137e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class ADSProtocolBenchmark {

@State(Scope.Benchmark)
public static class MyState {
Ads2TcpProtocol SUT = new Ads2TcpProtocol();
Ads2PayloadProtocol SUT = new Ads2PayloadProtocol();
AdsWriteRequest adsWriteRequest = buildAdsWriteRequest();
byte[] adsWriteResponse = buildADSWriteResponse();
AdsReadRequest adsReadRequest = buildAdsReadRequest();
Expand Down Expand Up @@ -130,7 +130,7 @@ private static byte[] buildADSWriteResponse() {
return AdsWriteResponse.of(
targetAmsNetId, targetAmsPort, sourceAmsNetId, sourceAmsPort, invokeId,
result
).toAmstcpPacket().getBytes();
).getBytes();
}

private static AdsReadRequest buildAdsReadRequest() {
Expand Down Expand Up @@ -159,6 +159,6 @@ private static byte[] buildADSReadResponse() {
targetAmsNetId, targetAmsPort, sourceAmsNetId, sourceAmsPort, invokeId,
result,
data
).toAmstcpPacket().getBytes();
).getBytes();
}
}

0 comments on commit f79137e

Please sign in to comment.