diff --git a/platform-tests/src/test/java/org/junit/platform/engine/support/descriptor/MethodSourceTests.java b/platform-tests/src/test/java/org/junit/platform/engine/support/descriptor/MethodSourceTests.java index 78248a31e21b..001cfd77dfe7 100644 --- a/platform-tests/src/test/java/org/junit/platform/engine/support/descriptor/MethodSourceTests.java +++ b/platform-tests/src/test/java/org/junit/platform/engine/support/descriptor/MethodSourceTests.java @@ -151,7 +151,7 @@ void twoEqualMethodsWithEqualParametersShouldHaveEqualMethodSourceHashCodes() { @Test void twoEqualMethodsWithUnequalParametersShouldHaveUnequalMethodSourceHashCodes() { assertNotEquals(MethodSource.from("TestClass1", "testMethod1", "int, String").hashCode(), - MethodSource.from("TestClass1", "testMethod1", "float, int, String")); + MethodSource.from("TestClass1", "testMethod1", "float, int, String").hashCode()); } @Test