mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
Fix tests that failed on Win+jdk6 (error messages are preceeded with source file path) (from Andreas)
This commit is contained in:
parent
c0bd8c7b18
commit
9f7db53bdd
@ -44,11 +44,11 @@ public class ErronuousCollectionMappingTest extends MapperTestBase {
|
||||
@Diagnostic(type = ErronuousMapper.class,
|
||||
kind = Kind.ERROR,
|
||||
line = 28,
|
||||
messageRegExp = "Can't generate mapping method from iterable type to non-iterable type\\."),
|
||||
messageRegExp = ".*Can't generate mapping method from iterable type to non-iterable type\\."),
|
||||
@Diagnostic(type = ErronuousMapper.class,
|
||||
kind = Kind.ERROR,
|
||||
line = 30,
|
||||
messageRegExp = "Can't generate mapping method from non-iterable type to iterable type\\.")
|
||||
messageRegExp = ".*Can't generate mapping method from non-iterable type to iterable type\\.")
|
||||
}
|
||||
)
|
||||
public void shouldFailToGenerateMappingFromListToString() {
|
||||
|
@ -44,11 +44,11 @@ public class ErroneousMappingsTest extends MapperTestBase {
|
||||
@Diagnostic(type = ErroneousMapper.class,
|
||||
kind = Kind.ERROR,
|
||||
line = 27,
|
||||
messageRegExp = "Unknown property \"bar\" in return type.*"),
|
||||
messageRegExp = ".*Unknown property \"bar\" in return type.*"),
|
||||
@Diagnostic(type = ErroneousMapper.class,
|
||||
kind = Kind.ERROR,
|
||||
line = 30,
|
||||
messageRegExp = "Unknown property \"bar\" in parameter type.*")
|
||||
messageRegExp = ".*Unknown property \"bar\" in parameter type.*")
|
||||
}
|
||||
)
|
||||
public void shouldFailToGenerateMappings() {
|
||||
|
@ -44,19 +44,19 @@ public class ErroneousMappingsTest extends MapperTestBase {
|
||||
@Diagnostic(type = ErroneousMapper.class,
|
||||
kind = Kind.ERROR,
|
||||
line = 26,
|
||||
messageRegExp = "Can't map property \"boolean foo\" to \"int foo\"\\."),
|
||||
messageRegExp = ".*Can't map property \"boolean foo\" to \"int foo\"\\."),
|
||||
@Diagnostic(type = ErroneousMapper.class,
|
||||
kind = Kind.ERROR,
|
||||
line = 28,
|
||||
messageRegExp = "Can't map property \"int foo\" to \"boolean foo\"\\."),
|
||||
messageRegExp = ".*Can't map property \"int foo\" to \"boolean foo\"\\."),
|
||||
@Diagnostic(type = ErroneousMapper.class,
|
||||
kind = Kind.ERROR,
|
||||
line = 30,
|
||||
messageRegExp = "Can't generate mapping method with primitive return type\\."),
|
||||
messageRegExp = ".*Can't generate mapping method with primitive return type\\."),
|
||||
@Diagnostic(type = ErroneousMapper.class,
|
||||
kind = Kind.ERROR,
|
||||
line = 32,
|
||||
messageRegExp = "Can't generate mapping method with primitive parameter type\\.")
|
||||
messageRegExp = ".*Can't generate mapping method with primitive parameter type\\.")
|
||||
}
|
||||
)
|
||||
public void shouldFailToGenerateMappings() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user