Skip to content

Move test class validation aside #290

Closed as not planned
Closed as not planned
@ydewit

Description

@ydewit

I am extending ParentRunner<?> with my own implementation using DI and the single constructor check is getting in the way:

    public TestClass(Class klass) {
        fClass= klass;
        if (klass != null && klass.getConstructors().length > 1)
            throw new IllegalArgumentException(
                    "Test class can only have one constructor");

Could this be moved aside to a protected validateXXX method or even move it up to BlockJUnit4ClassRunner?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions