Skip to content

More atomic tests #1

Open
Open

Description

@akruijff

Hi,

I came across a post of yours about testing utility classes, which I found very helpfull, but did refactor. I've also read EqualsTestUtil.java. I have this implemented as a abstract class with default test. In stead of calling one assert, two methods needs to over written T getObject() and T getDifferentObject(), with an optional T getIdenticalObject() that by defaults call T getObject(). This makes the test more atomic and allows to test for multiple things in one run. This is my suggestion for you to do also.

Yours,
Alex

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions