Fix tests that failed on Win+jdk6 (error messages are preceeded with source file path) (from Andreas)

This commit is contained in:
Gunnar Morling 2013-06-16 17:53:15 +02:00
parent c0bd8c7b18
commit 9f7db53bdd
3 changed files with 8 additions and 8 deletions

View File

@ -44,11 +44,11 @@ public class ErronuousCollectionMappingTest extends MapperTestBase {
@Diagnostic(type = ErronuousMapper.class, @Diagnostic(type = ErronuousMapper.class,
kind = Kind.ERROR, kind = Kind.ERROR,
line = 28, 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, @Diagnostic(type = ErronuousMapper.class,
kind = Kind.ERROR, kind = Kind.ERROR,
line = 30, 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() { public void shouldFailToGenerateMappingFromListToString() {

View File

@ -44,11 +44,11 @@ public class ErroneousMappingsTest extends MapperTestBase {
@Diagnostic(type = ErroneousMapper.class, @Diagnostic(type = ErroneousMapper.class,
kind = Kind.ERROR, kind = Kind.ERROR,
line = 27, line = 27,
messageRegExp = "Unknown property \"bar\" in return type.*"), messageRegExp = ".*Unknown property \"bar\" in return type.*"),
@Diagnostic(type = ErroneousMapper.class, @Diagnostic(type = ErroneousMapper.class,
kind = Kind.ERROR, kind = Kind.ERROR,
line = 30, line = 30,
messageRegExp = "Unknown property \"bar\" in parameter type.*") messageRegExp = ".*Unknown property \"bar\" in parameter type.*")
} }
) )
public void shouldFailToGenerateMappings() { public void shouldFailToGenerateMappings() {

View File

@ -44,19 +44,19 @@ public class ErroneousMappingsTest extends MapperTestBase {
@Diagnostic(type = ErroneousMapper.class, @Diagnostic(type = ErroneousMapper.class,
kind = Kind.ERROR, kind = Kind.ERROR,
line = 26, 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, @Diagnostic(type = ErroneousMapper.class,
kind = Kind.ERROR, kind = Kind.ERROR,
line = 28, 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, @Diagnostic(type = ErroneousMapper.class,
kind = Kind.ERROR, kind = Kind.ERROR,
line = 30, 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, @Diagnostic(type = ErroneousMapper.class,
kind = Kind.ERROR, kind = Kind.ERROR,
line = 32, 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() { public void shouldFailToGenerateMappings() {