saynotobugsorg / confidence

A declarative Java Assertion Framework
Apache License 2.0
11 stars 1 forks source link

static method discoverability #178

Closed dmfs closed 5 months ago

dmfs commented 5 months ago

At present it can be difficult to discover the name of a static factory method for a particular Quality if you're not familiar with the framework and the concept behind it. In order to make this easier static factory method locations should follow a simple pattern. They should be located in a class that's named after the type that the quality returned by the method describes. For instance, the static factories of CharSequence Qualities should be located in a class called CharSequence so you can discover them by typing the name of the type you want to test.