comparison m-toolbox/classes/tests/@ltpda_uoh_tests/test_setPlotinfo.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 plotinfo works.
2 function res = test_setPlotinfo(varargin)
3
4 res = '';
5 utp = varargin{1};
6
7 if ~isempty(utp.className)
8 obj = feval(utp.className);
9 pi = plist('color', 'r');
10 obj.setPlotinfo(pi);
11 pi.setDefaultForParam('color', 'b')
12 % the plotinfo should get copied and as such should not be the same
13 % plist as the one we input
14 assert(obj.plotinfo~=pi);
15 res = sprintf('%s/setPlotinfo works', class(obj));
16 end
17
18 end