@Test public void testHandleGetNoValue() { String key = "a"; doReturn(null).when(mockRepository).get(key); assertEquals(SiriusResult.none(), underTest.handleGet(key)); }
@Override public SiriusResult handleGet(String key) { String value = RefAppState.repository.get(key); if (value == null) { return SiriusResult.none(); } return SiriusResult.some(value); }
DefaultRequestHandler implements RequestHandler { @Override public SiriusResult handleGet(String key) { String value = RefAppState.repository.get(key); if (value == null) { return SiriusResult.none(); } return SiriusResult.some(value); } }
DefaultRequestHandler implements RequestHandler { @Override public SiriusResult handleGet(String key) { String value = RefAppState.repository.get(key); if (value == null) { return SiriusResult.none(); } return SiriusResult.some(value); }  }
DefaultRequestHandler implements RequestHandler { @Override public SiriusResult handleGet(String key) { String value = RefAppState.repository.get(key); if (value == null) { return SiriusResult.none(); } return SiriusResult.some(value); }  @Override SiriusResult handleGet(String key); @Override SiriusResult handlePut(String key, byte[] body); @Override SiriusResult handleDelete(String key); }
DefaultRequestHandler implements RequestHandler { @Override public SiriusResult handleGet(String key) { String value = RefAppState.repository.get(key); if (value == null) { return SiriusResult.none(); } return SiriusResult.some(value); }  @Override SiriusResult handleGet(String key); @Override SiriusResult handlePut(String key, byte[] body); @Override SiriusResult handleDelete(String key);  }