Skip to content
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

Fix 1.3 compatibility issue with string matchers #260

Merged
merged 5 commits into from
May 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions hamcrest/src/main/java/org/hamcrest/core/StringContains.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* Tests if the argument is a string that contains a specific substring.
*/
public class StringContains extends SubstringMatcher {
public StringContains(String substring) { this(false, substring); }

public StringContains(boolean ignoringCase, String substring) {
super("containing", ignoringCase, substring);
}
Expand Down
2 changes: 2 additions & 0 deletions hamcrest/src/main/java/org/hamcrest/core/StringEndsWith.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* Tests if the argument is a string that ends with a specific substring.
*/
public class StringEndsWith extends SubstringMatcher {
public StringEndsWith(String substring) { this(false, substring); }

public StringEndsWith(boolean ignoringCase, String substring) { super("ending with", ignoringCase, substring); }

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* Tests if the argument is a string that starts with a specific substring.
*/
public class StringStartsWith extends SubstringMatcher {
public StringStartsWith(String substring) { this(false, substring); }

public StringStartsWith(boolean ignoringCase, String substring) { super("starting with", ignoringCase, substring); }

@Override
Expand Down