File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
buildpacks/maven/tests/integration Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -117,17 +117,18 @@ fn no_internal_maven_options_logging() {
117
117
#[ test]
118
118
#[ ignore = "integration test" ]
119
119
fn descriptive_error_message_on_failed_build ( ) {
120
- TestRunner :: default ( ) . build ( default_build_config ( "test-apps/app-with-compile-error" ) . expected_pack_result ( PackResult :: Failure ) , |context| {
120
+ TestRunner :: default ( ) . build (
121
+ default_build_config ( "test-apps/app-with-compile-error" )
122
+ . expected_pack_result ( PackResult :: Failure ) ,
123
+ |context| {
121
124
assert_contains ! ( context. pack_stderr, "[INFO] BUILD FAILURE" ) ;
122
125
123
- assert_contains ! (
124
- context. pack_stderr,
125
- "[Error: Unexpected Maven exit code]"
126
- ) ;
126
+ assert_contains ! ( context. pack_stderr, "! ERROR: Unexpected Maven exit code" ) ;
127
127
128
128
assert_contains ! (
129
129
context. pack_stderr,
130
- "Maven unexpectedly exited with code '1'. The most common reason for this are\n problems with your application code and/or build configuration. "
130
+ "Maven unexpectedly exited with code '1'. The most common reason for this are"
131
131
) ;
132
- } ) ;
132
+ } ,
133
+ ) ;
133
134
}
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ fn with_wrapper_and_unknown_system_properties() {
44
44
UNKNOWN_MAVEN_VERSION , & path
45
45
) ) . expected_pack_result ( PackResult :: Failure ) ,
46
46
|context| {
47
- assert_contains ! ( context. pack_stderr, "[Error : Unsupported Maven version] " ) ;
47
+ assert_contains ! ( context. pack_stderr, "! ERROR : Unsupported Maven version" ) ;
48
48
assert_contains ! ( context. pack_stderr, & format!( "You have defined an unsupported Maven version ({UNKNOWN_MAVEN_VERSION}) in the system.properties file." ) ) ;
49
49
} ,
50
50
) ;
@@ -80,7 +80,7 @@ fn without_wrapper_and_unknown_system_properties() {
80
80
set_maven_version_app_dir_preprocessor ( UNKNOWN_MAVEN_VERSION , & path) ;
81
81
} ) . expected_pack_result ( PackResult :: Failure ) ,
82
82
|context| {
83
- assert_contains ! ( context. pack_stderr, "[Error : Unsupported Maven version] " ) ;
83
+ assert_contains ! ( context. pack_stderr, "! ERROR : Unsupported Maven version" ) ;
84
84
assert_contains ! ( context. pack_stderr, & format!( "You have defined an unsupported Maven version ({UNKNOWN_MAVEN_VERSION}) in the system.properties file." ) ) ;
85
85
} ,
86
86
) ;
You can’t perform that action at this time.
0 commit comments