Skip to content

Add file content matcher to FileMatchers - #345

Open
night-gale wants to merge 1 commit into
hamcrest:masterfrom
night-gale:issue281
Open

Add file content matcher to FileMatchers#345
night-gale wants to merge 1 commit into
hamcrest:masterfrom
night-gale:issue281

Conversation

@night-gale

Copy link
Copy Markdown

Fixed#281
Add two public methods to FileMatchers. The matchesContentOf takes a File and returns a Matcher<File> that matches the content of the file.
The aFileWithContent takes a Matcher<String> where the string is the expected file content, and returns a Matcher<File> matches the content of the file.

@nhojpatrick

Copy link
Copy Markdown
Member

Going to try and kick start hamcrest, so if you want to get it merged, please rebase from the branch v2.3-candidates.
Still trying to understand how has permissions to perform a release.

@nhojpatrick
nhojpatrickforce-pushed the master branch 2 times, most recently from 9bc653b to e9f7fc8CompareFebruary 13, 2022 17:06
@tumbarumbatumbarumba mentioned this pull request Aug 3, 2024
13 tasks
@rmcdougarmcdouga mentioned this pull request Sep 6, 2025
@rmcdouga

Copy link
Copy Markdown

@tumbarumba Please close this PR, it has been merged into PR #443 .

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add matcher for file contents

4 participants

@night-gale@nhojpatrick@rmcdouga@HaoWang420