@Test public void testExecute() throws Exception { assertNull(new ExtractScreenshotFunction(converter).execute(Collections.singletonList(null))); verify(converter, never()).convert(any()); }
@Override protected Object execute(List<Object> arguments) { return Optional.ofNullable((AbstractTestDataEntity) arguments.get(0)) .map(entity -> screenshotDivConverter.convert(entity.getException())) .orElse(null); }
ExtractScreenshotFunction extends AbstractFunction { @Override protected Object execute(List<Object> arguments) { return Optional.ofNullable((AbstractTestDataEntity) arguments.get(0)) .map(entity -> screenshotDivConverter.convert(entity.getException())) .orElse(null); } }
ExtractScreenshotFunction extends AbstractFunction { @Override protected Object execute(List<Object> arguments) { return Optional.ofNullable((AbstractTestDataEntity) arguments.get(0)) .map(entity -> screenshotDivConverter.convert(entity.getException())) .orElse(null); } ExtractScreenshotFunction(ScreenshotDivConverter screenshotDivConverter); }
ExtractScreenshotFunction extends AbstractFunction { @Override protected Object execute(List<Object> arguments) { return Optional.ofNullable((AbstractTestDataEntity) arguments.get(0)) .map(entity -> screenshotDivConverter.convert(entity.getException())) .orElse(null); } ExtractScreenshotFunction(ScreenshotDivConverter screenshotDivConverter); @Override String name(); }
ExtractScreenshotFunction extends AbstractFunction { @Override protected Object execute(List<Object> arguments) { return Optional.ofNullable((AbstractTestDataEntity) arguments.get(0)) .map(entity -> screenshotDivConverter.convert(entity.getException())) .orElse(null); } ExtractScreenshotFunction(ScreenshotDivConverter screenshotDivConverter); @Override String name();  }