mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
Use expected.getMessageRegex when no message for the Diagnostic descriptor has been defined
This commit is contained in:
parent
6797afb647
commit
1bbc4e1ca8
@ -329,7 +329,7 @@ abstract class CompilingStatement extends Statement {
|
|||||||
actual.getLine(),
|
actual.getLine(),
|
||||||
actual.getKind()
|
actual.getKind()
|
||||||
)
|
)
|
||||||
).matches( "(?ms).*" + expected.getMessage() + ".*" );
|
).matches( "(?ms).*" + expected.getMessageRegex() + ".*" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user