You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reordering of assert parameters should only happen if the assertion has a description parameter:
org.junit.Assert.assertEquals("Greeting broken", "Hello, world!", suspect.generateGreeting()); is correctly converted to org.junit.jupiter.api.Assertions.assertEquals("Hello, world!", suspect.generateGreeting(), "Greeting broken");
However, parameters to asserts w/o the description parameter should be kept unchanged. Right now, org.junit.Assert.assertEquals("Hello, world!", suspect.generateGreeting()); is incorrectly converted to org.junit.jupiter.api.Assertions.assertEquals(suspect.generateGreeting(), "Hello, world!"); (ie. expected and actual are swapped).
Looks to me the fix would be to add a "check number of parameters" test to
The reordering of assert parameters should only happen if the assertion has a description parameter:
org.junit.Assert.assertEquals("Greeting broken", "Hello, world!", suspect.generateGreeting());
is correctly converted toorg.junit.jupiter.api.Assertions.assertEquals("Hello, world!", suspect.generateGreeting(), "Greeting broken");
However, parameters to asserts w/o the description parameter should be kept unchanged. Right now,
org.junit.Assert.assertEquals("Hello, world!", suspect.generateGreeting());
is incorrectly converted toorg.junit.jupiter.api.Assertions.assertEquals(suspect.generateGreeting(), "Hello, world!");
(ie. expected and actual are swapped).Looks to me the fix would be to add a "check number of parameters" test to
The text was updated successfully, but these errors were encountered: