FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

JUnit Jupiter should include field's name if its type does not implement Startable · Issue #1456 · testcontainers/testcontainers-java · GitHub

JUnit Jupiter should include field's name if its type does not implement Startable #1456

Description

Relevant code piece:

private static Predicate<Field> isContainer() {
return field -> {
boolean isAnnotatedWithContainer = AnnotationSupport.isAnnotated(field, Container.class);
if (isAnnotatedWithContainer) {
boolean isStartable = Startable.class.isAssignableFrom(field.getType());
if (!isStartable) {
throw new ExtensionConfigurationException("Annotation is only supported for Startable types");
}
return true;
}
return false;
};
}

/cc @wilkinsona

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL