mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#1345 adapting fault message empty constructor to parameterless
This commit is contained in:
parent
5707f35c85
commit
24ca295448
@ -92,7 +92,7 @@ public enum Message {
|
||||
GENERAL_VALID_DATE( "Given date format \"%s\" is valid.", Diagnostic.Kind.NOTE ),
|
||||
GENERAL_INVALID_DATE( "Given date format \"%s\" is invalid. Message: \"%s\"." ),
|
||||
GENERAL_NOT_ALL_FORGED_CREATED( "Internal Error in creation of Forged Methods, it was expected all Forged Methods to finished with creation, but %s did not" ),
|
||||
GENERAL_NO_SUITABLE_CONSTRUCTOR( "%s does not have an accessible empty constructor." ),
|
||||
GENERAL_NO_SUITABLE_CONSTRUCTOR( "%s does not have an accessible parameterless constructor." ),
|
||||
|
||||
RETRIEVAL_NO_INPUT_ARGS( "Can't generate mapping method with no input arguments." ),
|
||||
RETRIEVAL_DUPLICATE_MAPPING_TARGETS( "Can't generate mapping method with more than one @MappingTarget parameter." ),
|
||||
|
@ -80,7 +80,7 @@ public class Issue1242Test {
|
||||
@Diagnostic(type = ErroneousIssue1242MapperMultipleSources.class,
|
||||
kind = javax.tools.Diagnostic.Kind.ERROR,
|
||||
line = 33,
|
||||
messageRegExp = ".*TargetB does not have an accessible empty constructor\\.")
|
||||
messageRegExp = ".*TargetB does not have an accessible parameterless constructor\\.")
|
||||
})
|
||||
public void ambiguousMethodErrorForTwoFactoryMethodsWithSourceParam() {
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ public class Issue1283Test {
|
||||
@Diagnostic(type = ErroneousInverseTargetHasNoSuitableConstructorMapper.class,
|
||||
kind = javax.tools.Diagnostic.Kind.ERROR,
|
||||
line = 35L,
|
||||
messageRegExp = ".*\\._1283\\.Source does not have an accessible empty constructor"
|
||||
messageRegExp = ".*\\._1283\\.Source does not have an accessible parameterless constructor"
|
||||
)
|
||||
}
|
||||
)
|
||||
@ -61,7 +61,7 @@ public class Issue1283Test {
|
||||
@Diagnostic(type = ErroneousTargetHasNoSuitableConstructorMapper.class,
|
||||
kind = javax.tools.Diagnostic.Kind.ERROR,
|
||||
line = 31L,
|
||||
messageRegExp = ".*\\._1283\\.Source does not have an accessible empty constructor"
|
||||
messageRegExp = ".*\\._1283\\.Source does not have an accessible parameterless constructor"
|
||||
)
|
||||
}
|
||||
)
|
||||
|
@ -53,7 +53,7 @@ public class AmbiguousAnnotatedFactoryTest {
|
||||
@Diagnostic(type = SourceTargetMapperAndBarFactory.class,
|
||||
kind = javax.tools.Diagnostic.Kind.ERROR,
|
||||
line = 35,
|
||||
messageRegExp = ".*\\.ambiguousannotatedfactorymethod.Bar does not have an accessible empty " +
|
||||
messageRegExp = ".*\\.ambiguousannotatedfactorymethod.Bar does not have an accessible parameterless " +
|
||||
"constructor\\.")
|
||||
|
||||
}
|
||||
|
@ -54,7 +54,8 @@ public class FactoryTest {
|
||||
@Diagnostic(type = SourceTargetMapperAndBarFactory.class,
|
||||
kind = javax.tools.Diagnostic.Kind.ERROR,
|
||||
line = 35,
|
||||
messageRegExp = ".*\\.ambiguousfactorymethod\\.Bar does not have an accessible empty constructor\\.")
|
||||
messageRegExp = ".*\\.ambiguousfactorymethod\\.Bar does not have an accessible parameterless "
|
||||
+ "constructor\\.")
|
||||
|
||||
}
|
||||
)
|
||||
|
@ -184,7 +184,7 @@ public class NestedSourcePropertiesTest {
|
||||
@Diagnostic( type = ArtistToChartEntryErroneous.class,
|
||||
kind = javax.tools.Diagnostic.Kind.ERROR,
|
||||
line = 47,
|
||||
messageRegExp = "java.lang.Integer does not have an accessible empty constructor." )
|
||||
messageRegExp = "java.lang.Integer does not have an accessible parameterless constructor." )
|
||||
}
|
||||
)
|
||||
@WithClasses({ ArtistToChartEntryErroneous.class })
|
||||
|
@ -182,7 +182,7 @@ public class ConversionTest {
|
||||
kind = javax.tools.Diagnostic.Kind.ERROR,
|
||||
line = 29,
|
||||
messageRegExp = ".*\\.generics\\.WildCardSuperWrapper<.*\\.generics\\.TypeA> does not have an " +
|
||||
"accessible empty constructor\\.")
|
||||
"accessible parameterless constructor\\.")
|
||||
|
||||
})
|
||||
public void shouldFailOnNonMatchingWildCards() {
|
||||
|
@ -64,7 +64,7 @@ public class InheritanceSelectionTest {
|
||||
@Diagnostic(type = ErroneousFruitMapper.class,
|
||||
kind = Kind.ERROR,
|
||||
line = 36,
|
||||
messageRegExp = ".*Fruit does not have an accessible empty constructor\\.")
|
||||
messageRegExp = ".*Fruit does not have an accessible parameterless constructor\\.")
|
||||
}
|
||||
)
|
||||
public void testForkedInheritanceHierarchyShouldResultInAmbigousMappingMethod() {
|
||||
@ -79,7 +79,7 @@ public class InheritanceSelectionTest {
|
||||
@Diagnostic(type = ErroneousResultTypeNoEmptyConstructorMapper.class,
|
||||
kind = Kind.ERROR,
|
||||
line = 31,
|
||||
messageRegExp = ".*\\.resulttype\\.Banana does not have an accessible empty constructor\\.")
|
||||
messageRegExp = ".*\\.resulttype\\.Banana does not have an accessible parameterless constructor\\.")
|
||||
}
|
||||
)
|
||||
public void testResultTypeHasNoSuitableEmptyConstructor() {
|
||||
|
@ -188,7 +188,7 @@ public class UpdateMethodsTest {
|
||||
@Diagnostic(type = ErroneousOrganizationMapper2.class,
|
||||
kind = javax.tools.Diagnostic.Kind.ERROR,
|
||||
line = 48,
|
||||
messageRegExp = ".*\\.updatemethods\\.DepartmentEntity does not have an accessible empty " +
|
||||
messageRegExp = ".*\\.updatemethods\\.DepartmentEntity does not have an accessible parameterless " +
|
||||
"constructor\\.")
|
||||
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user