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

Print warning for deprecated testnets #4173

Merged
Prev Previous commit
Next Next commit
fixed spotless errors
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
  • Loading branch information
daniellehrner committed Jul 27, 2022
commit 2d037eb935147b9c5b596db7726bfe9b2b0e4ed9
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ void shouldGenerateDeprecationMessageForDeprecatedNetworks(final NetworkName net
names = {"RINKEBY", "ROPSTEN", "KILN"},
daniellehrner marked this conversation as resolved.
Show resolved Hide resolved
mode = EnumSource.Mode.EXCLUDE)
void shouldThrowErrorForNonDeprecatedNetworks(final NetworkName network) {
assertThatThrownBy(() -> NetworkDeprecationMessage.generate(network)).isInstanceOf(AssertionError.class);
assertThatThrownBy(() -> NetworkDeprecationMessage.generate(network))
.isInstanceOf(AssertionError.class);
}
}