comparison m-toolbox/classes/tests/@ltpda_uoh_tests/test_setProcinfo.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % Test the setting the procinfo works.
2 function res = test_setProcinfo(varargin)
3
4 res = '';
5 utp = varargin{1};
6
7 if ~isempty(utp.className)
8 obj = feval(utp.className);
9 pi = plist('test', 123);
10 obj.setProcinfo(pi);
11 pi.setDefaultForParam('test', 231);
12 % the procinfo should get copied and as such should not be the same
13 % plist as the one we input
14 assert(obj.procinfo~=pi);
15 res = sprintf('%s/setProcinfo works', class(obj));
16 end
17
18 end