Search in sources :

Example 1 with FrontendType

use of org.opendaylight.controller.cluster.access.concepts.FrontendType in project controller by opendaylight.

the class AbstractClientActorTest method setup.

@Before
public void setup() {
    MockitoAnnotations.initMocks(this);
    final FrontendType frontendType = FrontendType.forName(getClass().getSimpleName());
    final FrontendIdentifier frontendId = FrontendIdentifier.create(MEMBER_NAME, frontendType);
    final ClientIdentifier clientId = ClientIdentifier.create(frontendId, 0);
    doReturn(ticker).when(mockActorContext).ticker();
    doReturn(clientId).when(mockActorContext).getIdentifier();
    doReturn(getClass().getSimpleName()).when(mockActorContext).persistenceId();
    doReturn(mockSelf).when(mockActorContext).self();
}
Also used : ClientIdentifier(org.opendaylight.controller.cluster.access.concepts.ClientIdentifier) FrontendType(org.opendaylight.controller.cluster.access.concepts.FrontendType) FrontendIdentifier(org.opendaylight.controller.cluster.access.concepts.FrontendIdentifier) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 ClientIdentifier (org.opendaylight.controller.cluster.access.concepts.ClientIdentifier)1 FrontendIdentifier (org.opendaylight.controller.cluster.access.concepts.FrontendIdentifier)1 FrontendType (org.opendaylight.controller.cluster.access.concepts.FrontendType)1