Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 4ee072a

Browse files
Fix Expectable#toContain
1 parent 0a44897 commit 4ee072a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = "de.oliver"
8-
version = "34"
8+
version = "35"
99
description = "Library for all Fancy plugins"
1010

1111
java {

src/main/java/de/oliver/fancylib/tests/Expectable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public void toBeInstanceOf(Class<?> expected) {
178178
* @param expected the value that is expected to be contained within the actual value
179179
* @throws AssertionError if the expected value is not contained within the actual value
180180
*/
181-
public void toContain(T expected) {
181+
public void toContain(Object expected) {
182182
if (t instanceof String) {
183183
if (!((String) t).contains((String) expected)) {
184184
throw new AssertionError("Expected " + expected + " to be contained in " + t);

0 commit comments

Comments
 (0)