smalltalk
/
osmo-st-msc
Archived
1
0
Fork 0

bsc: Fix the test failure by initializing the osmoExtension

This commit is contained in:
Holger Hans Peter Freyther 2012-04-06 19:46:55 +02:00
parent 889e86d488
commit 66e565df5e
2 changed files with 10 additions and 5 deletions

View File

@ -27,7 +27,12 @@ peer address, the lac, if it is connected'>
BSCConfigItem class >> initWith: aPeer name: aName [
^ self new
peer: aPeer; name: aName; lac: -1; connected: false; yourself
peer: aPeer;
name: aName;
connected: false;
sendOsmoRSIP: false;
lac: -1;
yourself
]
BSCConfigItem class >> resolveAddress: aPeer [

View File

@ -91,16 +91,16 @@ TestCase subclass: BSCConfigTest [
cfg := BSCConfig new.
self shouldnt:
[cfg addBSC: '127.0.0.1' withName: 'abc1' andLac: 2311]
[cfg addBSC: '127.0.0.1' withName: 'abc1' andLac: 2311 sendOsmoRSIP: false]
raise: Exception description: 'Simply adding it'.
self should:
[cfg addBSC: '127.0.0.1' withName: 'abc2' andLac: 1123]
[cfg addBSC: '127.0.0.1' withName: 'abc2' andLac: 1123 sendOsmoRSIP: false]
raise: Exception description: 'Same IP is forbidden'.
self should:
[cfg addBSC: '127.0.0.2' withName: 'abc3' andLac: 2311]
[cfg addBSC: '127.0.0.2' withName: 'abc3' andLac: 2311 sendOsmoRSIP: false]
raise: Exception description: 'Different IP same lac'.
self shouldnt:
[cfg addBSC: '127.0.0.2' withName: 'abc4' andLac: 1123]
[cfg addBSC: '127.0.0.2' withName: 'abc4' andLac: 1123 sendOsmoRSIP: false]
raise: Exception description: 'Different IP, different lac'.
self assert: cfg bscList size = 2 description: 'Two BSCs should be registered'.