Skip to content

Cagdas ALAGOZ

Software Engineer
  • Home
  • GitHub
  • Linkedin
  • Stackoverflow

Cagdas ALAGOZ

Software Engineer
  • Home
  • GitHub
  • Linkedin
  • Stackoverflow

Search Results for: java

Capture parameters with Mockito ArgumentCaptor

  • by Çağdaş Alagöz
  • 17/09/202017/09/2020

While creating test methods for a class, you might want to access some arguments passed to a specific method. Luckily, you can capture parameters with Mockito ArgumentCaptor. It is especially useful when you can’t access the argument from the outside of the method.

Let’s check it out on a basic example. Let’s say we have a class called Product and we create stock codes for these objects before saving them to the database. So we’ve created a method called generateProductCodeAndSave() which generates the code then passes the product to another method in order to insert it to the database.

Read More »Capture parameters with Mockito ArgumentCaptor

Linux de Android SDK (ADK) Kurulumu ve Hazırlanması [Resimli Anlatım]

  • by Çağdaş Alagöz
  • 11/04/201404/09/2020

Giriş Merhaba, Şimdi size kısaca Linux tabanlı bir işletim sistemin de (Benim şu anda kullandığım Linux tabanlı Ubuntu tabanlı bir işletim sistemi olan Elementary OS.… Read More »Linux de Android SDK (ADK) Kurulumu ve Hazırlanması [Resimli Anlatım]

  • « Previous
  • 1
  • 2
 

Loading Comments...