#1345 adapting fault message empty constructor to parameterless

This commit is contained in:
sjaakd 2018-01-30 22:27:42 +01:00
parent 5707f35c85
commit 24ca295448
9 changed files with 12 additions and 11 deletions

View File

@ -92,7 +92,7 @@ public enum Message {
GENERAL_VALID_DATE( "Given date format \"%s\" is valid.", Diagnostic.Kind.NOTE ), GENERAL_VALID_DATE( "Given date format \"%s\" is valid.", Diagnostic.Kind.NOTE ),
GENERAL_INVALID_DATE( "Given date format \"%s\" is invalid. Message: \"%s\"." ), 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_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_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." ), RETRIEVAL_DUPLICATE_MAPPING_TARGETS( "Can't generate mapping method with more than one @MappingTarget parameter." ),

View File

@ -80,7 +80,7 @@ public class Issue1242Test {
@Diagnostic(type = ErroneousIssue1242MapperMultipleSources.class, @Diagnostic(type = ErroneousIssue1242MapperMultipleSources.class,
kind = javax.tools.Diagnostic.Kind.ERROR, kind = javax.tools.Diagnostic.Kind.ERROR,
line = 33, line = 33,
messageRegExp = ".*TargetB does not have an accessible empty constructor\\.") messageRegExp = ".*TargetB does not have an accessible parameterless constructor\\.")
}) })
public void ambiguousMethodErrorForTwoFactoryMethodsWithSourceParam() { public void ambiguousMethodErrorForTwoFactoryMethodsWithSourceParam() {
} }

View File

@ -46,7 +46,7 @@ public class Issue1283Test {
@Diagnostic(type = ErroneousInverseTargetHasNoSuitableConstructorMapper.class, @Diagnostic(type = ErroneousInverseTargetHasNoSuitableConstructorMapper.class,
kind = javax.tools.Diagnostic.Kind.ERROR, kind = javax.tools.Diagnostic.Kind.ERROR,
line = 35L, 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, @Diagnostic(type = ErroneousTargetHasNoSuitableConstructorMapper.class,
kind = javax.tools.Diagnostic.Kind.ERROR, kind = javax.tools.Diagnostic.Kind.ERROR,
line = 31L, line = 31L,
messageRegExp = ".*\\._1283\\.Source does not have an accessible empty constructor" messageRegExp = ".*\\._1283\\.Source does not have an accessible parameterless constructor"
) )
} }
) )

View File

@ -53,7 +53,7 @@ public class AmbiguousAnnotatedFactoryTest {
@Diagnostic(type = SourceTargetMapperAndBarFactory.class, @Diagnostic(type = SourceTargetMapperAndBarFactory.class,
kind = javax.tools.Diagnostic.Kind.ERROR, kind = javax.tools.Diagnostic.Kind.ERROR,
line = 35, line = 35,
messageRegExp = ".*\\.ambiguousannotatedfactorymethod.Bar does not have an accessible empty " + messageRegExp = ".*\\.ambiguousannotatedfactorymethod.Bar does not have an accessible parameterless " +
"constructor\\.") "constructor\\.")
} }

View File

@ -54,7 +54,8 @@ public class FactoryTest {
@Diagnostic(type = SourceTargetMapperAndBarFactory.class, @Diagnostic(type = SourceTargetMapperAndBarFactory.class,
kind = javax.tools.Diagnostic.Kind.ERROR, kind = javax.tools.Diagnostic.Kind.ERROR,
line = 35, line = 35,
messageRegExp = ".*\\.ambiguousfactorymethod\\.Bar does not have an accessible empty constructor\\.") messageRegExp = ".*\\.ambiguousfactorymethod\\.Bar does not have an accessible parameterless "
+ "constructor\\.")
} }
) )

View File

@ -184,7 +184,7 @@ public class NestedSourcePropertiesTest {
@Diagnostic( type = ArtistToChartEntryErroneous.class, @Diagnostic( type = ArtistToChartEntryErroneous.class,
kind = javax.tools.Diagnostic.Kind.ERROR, kind = javax.tools.Diagnostic.Kind.ERROR,
line = 47, 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 }) @WithClasses({ ArtistToChartEntryErroneous.class })

View File

@ -182,7 +182,7 @@ public class ConversionTest {
kind = javax.tools.Diagnostic.Kind.ERROR, kind = javax.tools.Diagnostic.Kind.ERROR,
line = 29, line = 29,
messageRegExp = ".*\\.generics\\.WildCardSuperWrapper<.*\\.generics\\.TypeA> does not have an " + messageRegExp = ".*\\.generics\\.WildCardSuperWrapper<.*\\.generics\\.TypeA> does not have an " +
"accessible empty constructor\\.") "accessible parameterless constructor\\.")
}) })
public void shouldFailOnNonMatchingWildCards() { public void shouldFailOnNonMatchingWildCards() {

View File

@ -64,7 +64,7 @@ public class InheritanceSelectionTest {
@Diagnostic(type = ErroneousFruitMapper.class, @Diagnostic(type = ErroneousFruitMapper.class,
kind = Kind.ERROR, kind = Kind.ERROR,
line = 36, line = 36,
messageRegExp = ".*Fruit does not have an accessible empty constructor\\.") messageRegExp = ".*Fruit does not have an accessible parameterless constructor\\.")
} }
) )
public void testForkedInheritanceHierarchyShouldResultInAmbigousMappingMethod() { public void testForkedInheritanceHierarchyShouldResultInAmbigousMappingMethod() {
@ -79,7 +79,7 @@ public class InheritanceSelectionTest {
@Diagnostic(type = ErroneousResultTypeNoEmptyConstructorMapper.class, @Diagnostic(type = ErroneousResultTypeNoEmptyConstructorMapper.class,
kind = Kind.ERROR, kind = Kind.ERROR,
line = 31, 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() { public void testResultTypeHasNoSuitableEmptyConstructor() {

View File

@ -188,7 +188,7 @@ public class UpdateMethodsTest {
@Diagnostic(type = ErroneousOrganizationMapper2.class, @Diagnostic(type = ErroneousOrganizationMapper2.class,
kind = javax.tools.Diagnostic.Kind.ERROR, kind = javax.tools.Diagnostic.Kind.ERROR,
line = 48, line = 48,
messageRegExp = ".*\\.updatemethods\\.DepartmentEntity does not have an accessible empty " + messageRegExp = ".*\\.updatemethods\\.DepartmentEntity does not have an accessible parameterless " +
"constructor\\.") "constructor\\.")
}) })