0

Junit test

how I can test this method in netbeans junit ? I tried do the test method but the results it’s not correct Please help me I will be very grateful https://code.sololearn.com/c63uIIFfn4wD/?ref=app

27th Nov 2021, 4:58 PM
SH S
SH S - avatar
1 Odpowiedź
0
First add break after found element if (A.get(i).getUsername() .equalsIgnoreCase(username) ) { exists = i; break; // }
28th Nov 2021, 9:22 PM
zemiak