2 properties (Access=
protected)
6 methods (Access=protected)
7 function self=initData(self)
10 self.cm=self.factory.getInstance();
12 self.tcm=self.cm.getTemplateRepo();
13 self.tcm.putConf('testConfC',struct());
18 self.tcm.putConf('testConfA',SConfA);
19 self.tcm.putConf('testConfB',SConfB);
20 self.cm.putConf('testConfA',SConfB);
21 self.initialConfNameList=self.tcm.getConfNameList();
29 properties (MethodSetupParameter, Abstract)
32 methods (TestMethodSetup)
33 function self = setUp(
self,factoryParam)
39 function self = test_setGetConf(
self)
42 self.tcm.putConf('testConfB',SConf);
43 SRes=self.cm.getConf('testConfB');
44 self.verifyEqual(isequaln(SConf,SRes),true);
46 function self = test_setGetConfWithVer(self)
49 [~,lastRev]=self.tcm.getConf('testConfA');
50 testVer=min(333,lastRev);
51 self.tcm.putConf('testConfB',SConf,testVer);
52 [SRes,resVer]=self.cm.getConf('testConfB');
53 self.verifyEqual(isequaln(SConf,SRes),true);
54 self.verifyEqual(testVer,resVer);
56 function self=test_deployConfTemplate(self)
57 confNameList=[self.tcm.getConfNameList,{
'testConfD'}];
58 self.tcm.copyConf(
'testConfA',
'testConfD');
59 self.cm.deployConfTemplate(
'*');
60 isEqual=isequal(confNameList,...
61 sort(
self.cm.getConfNameList()));
62 self.verifyEqual(isEqual,
true);
function genteststruct(in inpNum)