@Test public void CanExecuteGetDescriptorDirect() { IronMQNotifier notifier = this.StandardTestNotifier(); IronMQNotifier.IronMQNotifierDescriptor result = notifier.getDescriptor(); Assert.assertNotNull(result); }
@Test public void CanExecuteGetDescriptorMocked() { IronMQNotifier notifier = mock(IronMQNotifier.class); when(notifier.getDescriptor()).thenReturn(new IronMQNotifier.IronMQNotifierDescriptor()); IronMQNotifier.IronMQNotifierDescriptor result = notifier.getDescriptor(); Assert.assertNotNull(result); }