public void testGetServiceForThrowsException() throws Exception { try { operationAccessor.getServiceFor(OperationType.BLIP_CONTINUE_THREAD); fail("Expected non registered OperationType to throw exception"); } catch (InvalidRequestException e) { // expected } }
public void testRegister() throws Exception { OperationType operationType = OperationType.BLIP_CONTINUE_THREAD; DoNothingService doNothingService = DoNothingService.create(); operationAccessor.register(operationType, doNothingService); OperationService service = operationAccessor.getServiceFor(operationType); assertEquals(doNothingService, service); } }
public void testRegister() throws Exception { OperationType operationType = OperationType.BLIP_CONTINUE_THREAD; DoNothingService doNothingService = DoNothingService.create(); operationAccessor.register(operationType, doNothingService); OperationService service = operationAccessor.getServiceFor(operationType); assertEquals(doNothingService, service); } }
public void testGetServiceForThrowsException() throws Exception { try { operationAccessor.getServiceFor(OperationType.BLIP_CONTINUE_THREAD); fail("Expected non registered OperationType to throw exception"); } catch (InvalidRequestException e) { // expected } }