PermissionServiceFixture
serves to provide a way for tests to interact with the PermissioningService providing
trading and view allow or deny permissions on tiles and instruments
Use of the Fixture assumes that a caplin.trading.testing.PermissioningServiceStub is registered as a service on the caplin.core.ServiceRegistry under the namespace "caplin.services.security.PermissionService".
Tests may use the PermissionServiceFixture
to:
when("permissions.deny => ['/FX/GBPUSD', 'TradeProtocol', 'ESP']")
and("permissions.deny => ['/FX/GBPUSD', 'TradeType', 'SPOT']")
...
when("permissions.allow => ['/FX/GBPUSD', null, 'VIEW']")
...
Attributes | Name and Description |
---|---|
|
caplin.services.testing.PermissionServiceFixture()
Constructs a |
Attributes | Name and Description |
---|---|
|
void
canHandleProperty( sProperty)
PermissionServiceFixture handles properties 'allow' and 'deny', |
|
void
doGiven(String sPropertyName, Variant vValue)
This method is used to inform listeners on the PermissioningService about the permissions change on tile or instruments. |
►
caplin.services.testing.PermissionServiceFixture()
Constructs a caplin.services.testing.PermissionServiceFixture
.
►
void
canHandleProperty( sProperty)
PermissionServiceFixture handles properties 'allow' and 'deny',
sProperty |
►
void
doGiven(String sPropertyName, Variant vValue)
This method is used to inform listeners on the PermissioningService about the permissions change on tile or instruments.
String | sPropertyName | The property name |
Variant | vValue | The value to check |