Junit test | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
0
First add break after found element if (A.get(i).getUsername() .equalsIgnoreCase(username) ) { exists = i; break; // }
28th Nov 2021, 9:22 PM
zemiak