@Test public void testGetSigneringsStatus() { when(redisTicketTracker.findBiljett(TICKET_ID)).thenReturn(createSignaturBiljett(SignaturStatus.BEARBETAR)); SignaturBiljett signaturBiljett = testee.signeringsStatus(TICKET_ID); assertNotNull(signaturBiljett); }
@Override public SignaturBiljett signeringsStatus(String ticketId) { SignaturBiljett sb = redisTicketTracker.findBiljett(ticketId); if (sb == null) { LOG.error("No SignaturBiljett found for ticketId '{}'", ticketId); throw new WebCertServiceException(WebCertServiceErrorCodeEnum.DATA_NOT_FOUND, "No SignaturBiljett found for ticketId '" + ticketId + "'"); } return sb; }
UnderskriftServiceImpl implements UnderskriftService { @Override public SignaturBiljett signeringsStatus(String ticketId) { SignaturBiljett sb = redisTicketTracker.findBiljett(ticketId); if (sb == null) { LOG.error("No SignaturBiljett found for ticketId '{}'", ticketId); throw new WebCertServiceException(WebCertServiceErrorCodeEnum.DATA_NOT_FOUND, "No SignaturBiljett found for ticketId '" + ticketId + "'"); } return sb; } }
UnderskriftServiceImpl implements UnderskriftService { @Override public SignaturBiljett signeringsStatus(String ticketId) { SignaturBiljett sb = redisTicketTracker.findBiljett(ticketId); if (sb == null) { LOG.error("No SignaturBiljett found for ticketId '{}'", ticketId); throw new WebCertServiceException(WebCertServiceErrorCodeEnum.DATA_NOT_FOUND, "No SignaturBiljett found for ticketId '" + ticketId + "'"); } return sb; }  }
UnderskriftServiceImpl implements UnderskriftService { @Override public SignaturBiljett signeringsStatus(String ticketId) { SignaturBiljett sb = redisTicketTracker.findBiljett(ticketId); if (sb == null) { LOG.error("No SignaturBiljett found for ticketId '{}'", ticketId); throw new WebCertServiceException(WebCertServiceErrorCodeEnum.DATA_NOT_FOUND, "No SignaturBiljett found for ticketId '" + ticketId + "'"); } return sb; }  @Override SignaturBiljett startSigningProcess(String intygsId, String intygsTyp, long version, SignMethod signMethod,
        String ticketId); @Override SignaturBiljett fakeSignature(String intygsId, String intygsTyp, long version, String ticketId); @Override SignaturBiljett netidSignature(String biljettId, byte[] signatur, String certifikat); @Override SignaturBiljett grpSignature(String biljettId, byte[] signatur); @Override SignaturBiljett signeringsStatus(String ticketId); }
UnderskriftServiceImpl implements UnderskriftService { @Override public SignaturBiljett signeringsStatus(String ticketId) { SignaturBiljett sb = redisTicketTracker.findBiljett(ticketId); if (sb == null) { LOG.error("No SignaturBiljett found for ticketId '{}'", ticketId); throw new WebCertServiceException(WebCertServiceErrorCodeEnum.DATA_NOT_FOUND, "No SignaturBiljett found for ticketId '" + ticketId + "'"); } return sb; }  @Override SignaturBiljett startSigningProcess(String intygsId, String intygsTyp, long version, SignMethod signMethod,
        String ticketId); @Override SignaturBiljett fakeSignature(String intygsId, String intygsTyp, long version, String ticketId); @Override SignaturBiljett netidSignature(String biljettId, byte[] signatur, String certifikat); @Override SignaturBiljett grpSignature(String biljettId, byte[] signatur); @Override SignaturBiljett signeringsStatus(String ticketId);  }