Minha classe está:
public class ListaLeilaoAdapter extends RecyclerView.Adapter<ListaLeilaoAdapter.ViewHolder> {
private final List<Leilao> leiloes;
private final Context context;
private final MoedaUltil formatadorDeMoeda;
private OnItemClickListener onItemClickListener;
public ListaLeilaoAdapter(Context context) {
this.context = context;
this.leiloes = new ArrayList<>();
this.formatadorDeMoeda = new MoedaUltil();
}
// Implementação
}
E aparece o seguinte erro:
org.mockito.exceptions.base.MockitoException:
Mockito cannot mock this class: class br.com.alura.leilao.ui.recyclerview.adapter.ListaLeilaoAdapter.
Mockito can only mock non-private & non-final classes.
If you're not sure why you're getting this error, please report to the mailing list.