-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New matcher is required to detect that file exists #215
Comments
@dgroup could you update the description to make this a Matcher of Path instead of File. The constructors should only take Path and File imho, no need for Strings and for Scalar. Also, let's name it |
@victornoel thanks for the idea related to
Could you please clarify more your ideas? |
@dgroup sorry for the late reply. I just realized that there was something fishy with this Matcher: if it's a public final Exists implements Matcher<File> {
public Exists() { /* ... */ }
}
new Assertion<>(
"... scenario name ...",
/* some business logic which returns a file */,
new Exists()
).affirm(); Or if not, then, it shouldn't be a |
@victornoel agree, such approach is more laconic. |
@dgroup cool, could you update the description to mirror the conclusion of this discussion? |
The text was updated successfully, but these errors were encountered: