Mercurial > hg > ltpda
annotate m-toolbox/classes/tests/@ltpda_uo_tests/test_setName.m @ 29:54f14716c721 database-connection-manager
Update Java code
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 05 Dec 2011 16:20:06 +0100 |
parents | f0afece42f48 |
children |
rev | line source |
---|---|
0 | 1 % Test the setting the name works. |
2 function res = test_setName(varargin) | |
3 | |
4 res = ''; | |
5 utp = varargin{1}; | |
6 | |
7 if ~isempty(utp.className) | |
8 obj = feval(utp.className); | |
9 name = 'a nice name'; | |
10 obj.setName(name); | |
11 assert(ischar(obj.name)); | |
12 assert(strcmp(name, obj.name)); | |
13 res = sprintf('%s/setName works', class(obj)); | |
14 end | |
15 | |
16 end |