dana-i2cat/opennaas — pull request #975 by adrian-rosello (2014-11-18 11:11:57+00:00)
Title: Fix several bugs in nclprovisioner capability and ncl provisioner tests.

NCLProvisionerCapability:

- If SLA Manager information did not exists, it launches a capability exception. This capability exception was caught by the Resource when starting its capabilities, and the capability was shut down. But NCLProvisioner capability should work even when there's no need to push information to SLA.

- Solve nullpointers regarding SLA notification and event listener when they're not initialized (nullpointer resided in deactivate method, which assumed they are not null -> they were initialized)

NCLProvisionerTest

- Mock sdnNotification client with powermockito.