Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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