-
Notifications
You must be signed in to change notification settings - Fork 322
Open
Description
I have
@Value.Immutable
@ValueObject
public interface MyId extends Identifier {
}and I want to validate
classes().that().implement(Identifier.class).should().haveSimpleNameEndingWith("Id")even if we agree this is not the right code, I don't see any way to validate the interface. Given I'm using the immutables library, this seems the correct placing.
Additionally, I tried creating an @ImmutableValueObject and annotate it with @ValueObject using immutables @InjectAnnotation and it seems there isn't any way to validate that the annotation exists if it's a composed annotation.
lastly it'd be nice to be able to say something here like
classes().that().implement(Identifier.class).should().haveSimpleNameEndingWith("Id").reflexively()which would imply
classes().that().implement(Identifier.class).should().haveSimpleNameEndingWith("Id")
classes().that().haveSimpleNameEndingWith("Id").should().implement(Identifier.class)Metadata
Metadata
Assignees
Labels
No labels