RFR: 8301701 : java/net/DatagramSocket/DatagramSocketMulticasting.java should be hardened [v4]

Darragh Clarke duke at openjdk.org
Tue Feb 21 15:14:29 UTC 2023


On Tue, 21 Feb 2023 15:02:14 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> Wait! In Junit the expected value is the second parameter. In TestNG it's the first...
>
> It may be that it's the other calls to `assertEquals` that are wrong...

looking at the docs for Junit5 https://junit.org/junit5/docs/5.0.1/api/org/junit/jupiter/api/Assertions.html


public static void assertEquals(Object expected,
                                Object actual)

Asserts that expected and actual are equal.

If both are null, they are considered equal.

-------------

PR: https://git.openjdk.org/jdk/pull/12513


More information about the net-dev mailing list