2 properties (Access=
private)
12 properties (MethodSetupParameter)
13 factoryParam=
struct(
'versioned',...
16 methods (TestMethodSetup)
17 function self = setUp(
self,factoryParam)
19 SConfC=
struct(
'alpha',0,
'beta',0);
20 self.cm1=
self.
factory.getInstance(
'repoSubFolderName',
'confRepoVersioned');
22 self.tcm1=
self.cm1.getTemplateRepo();
23 self.tcm1.putConf(
'testConfC',
struct());
24 self.tcm1.removeAll();
26 self.tcm1.putConf(
'testConfC',SConfC,0);
27 self.tcm1.putConf(
'testConfCK',SConfC,0);
28 self.cm1.putConf(
'testConfK',SConfC,0);
29 self.cm1.putConf(
'testConfCK',SConfC,0);
31 self.cm2=
self.factory.getInstance(
'repoSubFolderName',
'confRepoFixedExamples');
35 function self=aux_test_updateConf(
self,confName)
36 [SConf,confVersion]=
self.cm1.getConf(confName);
37 self.verifyEqual(103,confVersion);
38 self.verifyEqual(2,SConf.beta);
42 function self=test_updateConfFromTemplate(
self)
43 self.aux_test_updateConf('testConfC');
45 function self=test_updateConfLocally(self)
46 self.cm1.updateConf('testConfK');
47 self.aux_test_updateConf('testConfK');
49 function self=test_updateConfOnSelect(self)
50 self.cm1.selectConf('testConfK');
51 self.aux_test_updateConf('testConfK');
52 self.cm1.selectConf('testConfC');
53 self.aux_test_updateConf('testConfC');
55 function self=test_updateAll(self)
57 self.aux_test_updateConf('testConfK');
58 self.aux_test_updateConf('testConfC');
59 self.aux_test_updateConf('testConfCK');
61 function self=test_updateAll_wrongKey(self)
64 self.verifyEqual(false,true);
66 self.verifyEqual(false,...
67 isempty(strfind(meObj.identifier,':badConfRepo')));