Skip to content

Commit 177e673

Browse files
authored
Merge pull request #48 from oracle/added-unit-test-for-jms-get-wlst-attr
Added unit test for online and offline JMS attribute check in get_wls…
2 parents 9318a1e + 33c4763 commit 177e673

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

core/src/test/python/aliases_test.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,24 @@ def testGetWlstAttributeName(self):
455455
self.assertEqual(wlst_attribute_name, 'RowPrefetch')
456456
return
457457

458+
def testGetWlstAttributeName2(self):
459+
location=LocationContext().append_location(FOLDERS.JMS_SYSTEM_RESOURCE)
460+
token = self.aliases.get_name_token(location)
461+
location.add_name_token(token, 'TheModule')
462+
location.append_location(FOLDERS.JMS_RESOURCE)
463+
location.append_location(FOLDERS.DISTRIBUTED_TOPIC)
464+
token = self.aliases.get_name_token(location)
465+
location.add_name_token(token, 'TheTopic')
466+
467+
model_attribute_name = 'SafExportPolicy'
468+
result = self.aliases.get_wlst_attribute_name(location, model_attribute_name)
469+
self.assertEqual(result, 'SafExportPolicy')
470+
471+
result = self.online_aliases.get_wlst_attribute_name(location, model_attribute_name)
472+
self.assertEqual(result, 'SAFExportPolicy')
473+
474+
return
475+
458476
def testIsWlstModelAttributeName(self):
459477
wls_version = '10.3.4'
460478
online_aliases = Aliases(self.model_context, WlstModes.ONLINE, wls_version)

0 commit comments

Comments
 (0)