Search in sources :

Example 1 with ChannelsDataService

use of org.motechproject.tasks.repository.ChannelsDataService in project motech by motech.

the class TasksBundleIT method testChannelService.

private void testChannelService() throws InterruptedException {
    assertNotNull(fromFileChannel);
    ChannelsDataService channelsDataService = getTasksContext().getBean(ChannelsDataService.class);
    Channel fromDB = channelsDataService.findByModuleName(testBundleName);
    assertNotNull(fromDB);
    assertEquals(fromDB, fromFileChannel);
}
Also used : Channel(org.motechproject.tasks.domain.mds.channel.Channel) ChannelsDataService(org.motechproject.tasks.repository.ChannelsDataService)

Aggregations

Channel (org.motechproject.tasks.domain.mds.channel.Channel)1 ChannelsDataService (org.motechproject.tasks.repository.ChannelsDataService)1