I'm trying to test my add to list method using JUnit.
Here is my test method:
public int urunEkleTest(String marka, String urun) {
UrunDepo depo = new UrunDepo();
String urunekle = depo.urunEkle("Iphone","Apple");
But I have a error message with this test method
Error msg = The method urunEkle(Urun) in the type UrunDepo is not applicable for the arguments (String, String)
And my add to list method is :
public static List<Urun> urunEkle(Urun urun){
URUNLER.add(urun);
return URUNLER;
}