Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement @overwrite toString() for EndOfEarlyDataMessage #172

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ public EndOfEarlyDataSerializer getSerializer(TlsContext tlsContext) {
return new EndOfEarlyDataSerializer(this);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("EndOfEarlyDataMessage: <empty>");
return sb.toString();
}

@Override
public String toShortString() {
return "EOED";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
*
* Copyright 2014-2023 Ruhr University Bochum, Paderborn University, Technology Innovation Institute, and Hackmanit GmbH
*
* Licensed under Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/
package de.rub.nds.tlsattacker.core.protocol.message;

import java.util.stream.Stream;
import org.junit.jupiter.params.provider.Arguments;

public class EndOfEarlyDataMessageTest extends AbstractMessageTest<EndOfEarlyDataMessage> {

public EndOfEarlyDataMessageTest() {
super(EndOfEarlyDataMessage::new, "EndOfEarlyDataMessage: <empty>");
}

public static Stream<Arguments> provideToStringTestVectors() {
return Stream.of(Arguments.of(new Object[] {null}, null));
}
}