use of com.hortonworks.streamline.streams.catalog.Notifier in project streamline by hortonworks.
the class StreamCatalogService method removeNotifierInfo.
public Notifier removeNotifierInfo(Long notifierId) {
Notifier notifier = new Notifier();
notifier.setId(notifierId);
return dao.remove(new StorableKey(NOTIFIER_INFO_NAMESPACE, notifier.getPrimaryKey()));
}
use of com.hortonworks.streamline.streams.catalog.Notifier in project streamline by hortonworks.
the class NotifierInfoCatalogResourceTest method testGetNotifierById.
@Test
public void testGetNotifierById() throws Exception {
final Notifier notifier = new Notifier();
new Expectations() {
{
mockCatalogService.getNotifierInfo(anyLong);
times = 1;
result = notifier;
}
};
Notifier result = (Notifier) resource.getNotifierById(1L, securityContext).getEntity();
assertEquals(notifier, result);
}
Aggregations