mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#590 Change test to not depend on un-supported String<->StringBuilder conversion
This commit is contained in:
parent
5217e67f8d
commit
30c8b1eec0
@ -39,8 +39,7 @@ public class Issue590Test {
|
|||||||
@ExpectedCompilationOutcome(value = CompilationResult.FAILED,
|
@ExpectedCompilationOutcome(value = CompilationResult.FAILED,
|
||||||
diagnostics = { @Diagnostic(type = SourceTargetMapper.class,
|
diagnostics = { @Diagnostic(type = SourceTargetMapper.class,
|
||||||
kind = Kind.ERROR,
|
kind = Kind.ERROR,
|
||||||
line = 34,
|
messageRegExp = "Can't map property \"java\\.lang\\.String prop\" to \"[^ ]+ prop\"") })
|
||||||
messageRegExp = "Can't map property \"[^ ]+ [^\"]+\" to \"[^ ]+ [^\"]+\"") })
|
|
||||||
public void showsCantMapPropertyError() {
|
public void showsCantMapPropertyError() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.mapstruct.ap.test.bugs._590;
|
package org.mapstruct.ap.test.bugs._590;
|
||||||
|
|
||||||
|
import java.util.logging.XMLFormatter;
|
||||||
|
|
||||||
import org.mapstruct.Mapper;
|
import org.mapstruct.Mapper;
|
||||||
import org.mapstruct.MappingTarget;
|
import org.mapstruct.MappingTarget;
|
||||||
import org.mapstruct.ReportingPolicy;
|
import org.mapstruct.ReportingPolicy;
|
||||||
@ -50,13 +52,13 @@ public abstract class SourceTargetMapper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static class Target {
|
public static class Target {
|
||||||
private StringBuilder prop;
|
private XMLFormatter prop;
|
||||||
|
|
||||||
public StringBuilder getProp() {
|
public XMLFormatter getProp() {
|
||||||
return prop;
|
return prop;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProp(StringBuilder prop) {
|
public void setProp(XMLFormatter prop) {
|
||||||
this.prop = prop;
|
this.prop = prop;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user