vendredi 21 octobre 2016

How to test filled variable in class

I have class with about 20 variables. Is there some simple solution how to test if certain variables are filled or not blank if it is string ? Like:

Something.testFilled(myInstance, "variable1", "variable4", "variable6"); These variable should be not null or blank and remaining variable of these class should be null or blank

Aucun commentaire:

Enregistrer un commentaire