Below I have an example of a model I have created within Android Studio to be utilised within my application.
Could someone with experience in this area, offer me examples of unit tests I could perform to test this model (in android) to get me started?
- I'm referring to Unit Testing via Google Android Testing
code for Contact model:
public class Contact extends MainModel
{
private Long id;
private String personName;
private String phoneNumber;
private String occupation;
public Long getId()
{
return id;
}
public void setId(Long id)
{
this.id = id;
}
public String getPersonName()
{
return personName;
}
public void setPersonName(String personName)
{
this.personName = personName;
}
public String getPhoneNumber()
{
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber)
{
this.phoneNumber = phoneNumber;
}
public String getOccupation()
{
return occupation;
}
public void setOccupation(String occupation)
{
this.occupation = occupation;
}
}
Aucun commentaire:
Enregistrer un commentaire