@Test void testGetExceptionResponseGenerator() { assertThrows( UnexpectedEnumException.class, () -> exceptionResponseGeneratorRegistryImpl.getExceptionResponseGenerator(PROBLEM)); }
@Override public ExceptionResponseGenerator getExceptionResponseGenerator(ExceptionResponseType type) { ExceptionResponseGenerator<?> exceptionResponseGenerator = responseGeneratorMap.get(type); if (exceptionResponseGenerator == null) { throw new UnexpectedEnumException(type); } return exceptionResponseGenerator; }
ExceptionResponseGeneratorRegistryImpl implements ExceptionResponseGeneratorRegistry { @Override public ExceptionResponseGenerator getExceptionResponseGenerator(ExceptionResponseType type) { ExceptionResponseGenerator<?> exceptionResponseGenerator = responseGeneratorMap.get(type); if (exceptionResponseGenerator == null) { throw new UnexpectedEnumException(type); } return exceptionResponseGenerator; } }
ExceptionResponseGeneratorRegistryImpl implements ExceptionResponseGeneratorRegistry { @Override public ExceptionResponseGenerator getExceptionResponseGenerator(ExceptionResponseType type) { ExceptionResponseGenerator<?> exceptionResponseGenerator = responseGeneratorMap.get(type); if (exceptionResponseGenerator == null) { throw new UnexpectedEnumException(type); } return exceptionResponseGenerator; } ExceptionResponseGeneratorRegistryImpl(); }
ExceptionResponseGeneratorRegistryImpl implements ExceptionResponseGeneratorRegistry { @Override public ExceptionResponseGenerator getExceptionResponseGenerator(ExceptionResponseType type) { ExceptionResponseGenerator<?> exceptionResponseGenerator = responseGeneratorMap.get(type); if (exceptionResponseGenerator == null) { throw new UnexpectedEnumException(type); } return exceptionResponseGenerator; } ExceptionResponseGeneratorRegistryImpl(); @Override void registerExceptionResponseGenerator(
      ExceptionResponseGenerator exceptionResponseGenerator); @Override ExceptionResponseGenerator getExceptionResponseGenerator(ExceptionResponseType type); }
ExceptionResponseGeneratorRegistryImpl implements ExceptionResponseGeneratorRegistry { @Override public ExceptionResponseGenerator getExceptionResponseGenerator(ExceptionResponseType type) { ExceptionResponseGenerator<?> exceptionResponseGenerator = responseGeneratorMap.get(type); if (exceptionResponseGenerator == null) { throw new UnexpectedEnumException(type); } return exceptionResponseGenerator; } ExceptionResponseGeneratorRegistryImpl(); @Override void registerExceptionResponseGenerator(
      ExceptionResponseGenerator exceptionResponseGenerator); @Override ExceptionResponseGenerator getExceptionResponseGenerator(ExceptionResponseType type);  }