Comment out import static org.junit.jupiter.api.Assertions.assertEquals;
Add import static org.junit.Assert.*;
Click quick fix before assertEquals
Current Result
It shouldn't show the option Add static import for 'Assert.assertEquals' as it has been included in import static org.junit.Assert.*;. And this option doesn't work if clicking it.
Without import static org.junit.Assert.*;, code action Add static import for 'Assert.assertEquals works only at first time. After first clicking, it still shows this option even the import has been added.
Environment
Steps To Reproduce
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.Assert.*;
assertEquals
Current Result
Add static import for 'Assert.assertEquals'
as it has been included inimport static org.junit.Assert.*;
. And this option doesn't work if clicking it.import static org.junit.Assert.*;
, code actionAdd static import for 'Assert.assertEquals
works only at first time. After first clicking, it still shows this option even the import has been added.