@Test void setTimeout() { final TimeoutCommandDecorator<String> decorator = new TimeoutCommandDecorator<>(command, Duration.ofSeconds(5)); decorator.setTimeout(Duration.ofSeconds(50)); Assertions.assertTrue(decorator.getTimeout().isPresent()); Assertions.assertEquals(Duration.ofSeconds(50), decorator.getTimeout().get()); }
@Override public CanonCommand<R> setTimeout(final Duration timeout) { this.timeout = Objects.requireNonNull(timeout); return this; }
TimeoutCommandDecorator extends AbstractDecoratorCommand<R> { @Override public CanonCommand<R> setTimeout(final Duration timeout) { this.timeout = Objects.requireNonNull(timeout); return this; } }
TimeoutCommandDecorator extends AbstractDecoratorCommand<R> { @Override public CanonCommand<R> setTimeout(final Duration timeout) { this.timeout = Objects.requireNonNull(timeout); return this; } TimeoutCommandDecorator(final CanonCommand<R> delegate, final Duration timeout);  TimeoutCommandDecorator(final FakeClassArgument fake, final TimeoutCommandDecorator<R> toCopy); }
TimeoutCommandDecorator extends AbstractDecoratorCommand<R> { @Override public CanonCommand<R> setTimeout(final Duration timeout) { this.timeout = Objects.requireNonNull(timeout); return this; } TimeoutCommandDecorator(final CanonCommand<R> delegate, final Duration timeout);  TimeoutCommandDecorator(final FakeClassArgument fake, final TimeoutCommandDecorator<R> toCopy); @Override Optional<Duration> getTimeout(); @Override CanonCommand<R> setTimeout(final Duration timeout); }
TimeoutCommandDecorator extends AbstractDecoratorCommand<R> { @Override public CanonCommand<R> setTimeout(final Duration timeout) { this.timeout = Objects.requireNonNull(timeout); return this; } TimeoutCommandDecorator(final CanonCommand<R> delegate, final Duration timeout);  TimeoutCommandDecorator(final FakeClassArgument fake, final TimeoutCommandDecorator<R> toCopy); @Override Optional<Duration> getTimeout(); @Override CanonCommand<R> setTimeout(final Duration timeout);  }