3 function self = mlunit_test_hashmapxmlmetadata(varargin)
7 properties (MethodSetupParameter)
10 {
'verxml'},[
true,
false]);
13 function self=test_putGetWithMetaData(
self)
16 metaData1=struct('version','1.0','author','test1');
17 metaData2=struct('version','2.0','author','test2',...
18 'application','testApplication');
19 self.map=self.mapFactory.getInstance('storageBranchKey',...
20 'aaa',self.testParamList{:});
21 inpObjList={rel1,rel2};
22 keyList={
'rel1',
'rel2'};
23 metaDataList={metaData1,metaData2};
24 self.map.put(keyList,inpObjList,metaDataList);
25 [valueObjList,metaDataGetList]=
self.map.get(...
26 fliplr(keyList),
'UniformOutput',
false);
27 valueObjList=fliplr(valueObjList);
28 metaDataGetList=fliplr(metaDataGetList);
30 isEqual=all(cellfun(@isequal,inpObjList,valueObjList));
31 self.verifyEqual(isEqual,
true);
33 isEqual=all(cellfun(@isequal,metaDataList,metaDataGetList));
34 self.verifyEqual(isEqual,
true);