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();
}
Aggregations