view m-toolbox/classes/tests/@ltpda_utp/getTestData.m @ 52:daf4eab1a51e
database-connection-manager tip
Fix. Default password should be [] not an empty string
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Wed, 07 Dec 2011 17:29:47 +0100 (2011-12-07)
parents
f0afece42f48
children
line source
+ − % GETTESTDATA returns the testData array or an empty object of the correct
+ − % class if testData is empty.
+ − function data = getTestData(utp)
+ − if isempty(utp.testData)
+ − data = feval(utp.className);
+ − else
+ − data = utp.testData;
+ − end
+ − end