8
8
9
9
#include < algorithm>
10
10
#include < functional>
11
- #include < util/message.h>
12
11
#include < util/config.h>
13
12
14
13
#include < java-testing-utils/require_parse_tree.h>
15
14
16
- #include < testing-utils/catch.hpp>
17
15
#include < java_bytecode/java_bytecode_parser.h>
16
+ #include < testing-utils/catch.hpp>
17
+ #include < testing-utils/message.h>
18
18
19
19
#include < java_bytecode/java_bytecode_parse_tree.h>
20
20
#include < java_bytecode/java_types.h>
@@ -29,14 +29,13 @@ SCENARIO(
29
29
{
30
30
// NOLINTNEXTLINE(whitespace/braces)
31
31
run_test_with_compilers ([](const std::string &compiler) {
32
- null_message_handlert message_handler;
33
32
GIVEN (
34
33
" A class with a static lambda variables from " + compiler + " compiler." )
35
34
{
36
35
optionalt<java_bytecode_parse_treet> parse_tree = java_bytecode_parse (
37
36
" ./java_bytecode/java_bytecode_parse_lambdas/lambda_examples/" +
38
37
compiler + " _classes/StaticLambdas.class" ,
39
- message_handler );
38
+ null_message_handler );
40
39
WHEN (" Parsing that class" )
41
40
{
42
41
REQUIRE (parse_tree);
@@ -341,13 +340,12 @@ SCENARIO(
341
340
{
342
341
run_test_with_compilers (
343
342
[](const std::string &compiler) { // NOLINT(whitespace/braces)
344
- null_message_handlert message_handler;
345
343
GIVEN (" A method with local lambdas from " + compiler + " compiler." )
346
344
{
347
345
optionalt<java_bytecode_parse_treet> parse_tree = java_bytecode_parse (
348
346
" ./java_bytecode/java_bytecode_parse_lambdas/lambda_examples/" +
349
347
compiler + " _classes/LocalLambdas.class" ,
350
- message_handler );
348
+ null_message_handler );
351
349
WHEN (" Parsing that class" )
352
350
{
353
351
REQUIRE (parse_tree);
@@ -648,15 +646,14 @@ SCENARIO(
648
646
{
649
647
run_test_with_compilers (
650
648
[](const std::string &compiler) { // NOLINT(whitespace/braces)
651
- null_message_handlert message_handler;
652
649
GIVEN (
653
650
" A class that has lambdas as member variables from " + compiler +
654
651
" compiler." )
655
652
{
656
653
optionalt<java_bytecode_parse_treet> parse_tree = java_bytecode_parse (
657
654
" ./java_bytecode/java_bytecode_parse_lambdas/lambda_examples/" +
658
655
compiler + " _classes/MemberLambdas.class" ,
659
- message_handler );
656
+ null_message_handler );
660
657
WHEN (" Parsing that class" )
661
658
{
662
659
REQUIRE (parse_tree);
@@ -982,7 +979,6 @@ SCENARIO(
982
979
{
983
980
run_test_with_compilers (
984
981
[](const std::string &compiler) { // NOLINT(whitespace/braces)
985
- null_message_handlert message_handler;
986
982
GIVEN (
987
983
" An inner class with member variables as lambdas that capture outer "
988
984
" variables from " +
@@ -991,7 +987,7 @@ SCENARIO(
991
987
optionalt<java_bytecode_parse_treet> parse_tree = java_bytecode_parse (
992
988
" ./java_bytecode/java_bytecode_parse_lambdas/lambda_examples/" +
993
989
compiler + " _classes/OuterMemberLambdas$Inner.class" ,
994
- message_handler );
990
+ null_message_handler );
995
991
WHEN (" Parsing that class" )
996
992
{
997
993
REQUIRE (parse_tree);
0 commit comments