Mercurial > hg > ltpda
annotate m-toolbox/classes/tests/@ltpda_uo_tests/test_setUUID.m @ 43:bc767aaa99a8
CVS Update
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Tue, 06 Dec 2011 11:09:25 +0100 |
parents | f0afece42f48 |
children |
rev | line source |
---|---|
0 | 1 % Test the setting the UUID works. |
2 function res = test_setUUID(varargin) | |
3 | |
4 res = ''; | |
5 utp = varargin{1}; | |
6 | |
7 if ~isempty(utp.className) | |
8 obj = feval(utp.className); | |
9 uuid = '123'; | |
10 obj.setUUID(uuid); | |
11 assert(ischar(obj.UUID)); | |
12 assert(strcmp(uuid, obj.UUID)); | |
13 res = sprintf('%s/setUUID works', class(obj)); | |
14 end | |
15 | |
16 end |