#590 Change test to not depend on un-supported String<->StringBuilder conversion

This commit is contained in:
Andreas Gudian 2015-07-06 20:03:31 +02:00 committed by Gunnar Morling
parent 5217e67f8d
commit 30c8b1eec0
2 changed files with 6 additions and 5 deletions

View File

@ -39,8 +39,7 @@ public class Issue590Test {
@ExpectedCompilationOutcome(value = CompilationResult.FAILED,
diagnostics = { @Diagnostic(type = SourceTargetMapper.class,
kind = Kind.ERROR,
line = 34,
messageRegExp = "Can't map property \"[^ ]+ [^\"]+\" to \"[^ ]+ [^\"]+\"") })
messageRegExp = "Can't map property \"java\\.lang\\.String prop\" to \"[^ ]+ prop\"") })
public void showsCantMapPropertyError() {
}

View File

@ -18,6 +18,8 @@
*/
package org.mapstruct.ap.test.bugs._590;
import java.util.logging.XMLFormatter;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.ReportingPolicy;
@ -50,13 +52,13 @@ public abstract class SourceTargetMapper {
}
public static class Target {
private StringBuilder prop;
private XMLFormatter prop;
public StringBuilder getProp() {
public XMLFormatter getProp() {
return prop;
}
public void setProp(StringBuilder prop) {
public void setProp(XMLFormatter prop) {
this.prop = prop;
}
}