vendredi 25 mars 2016

How to unit test two objects of different classes which has same data?

I have two objects which has same fields. I want to compare the values of those objects fields. How to do that using Junit?

public class DeviceDTO {

private String id;

And

public class DeviceData {
private String id;

I want to compare those object's field values.

Aucun commentaire:

Enregistrer un commentaire