touchConfiguration();
}
- public PostCreated postCreated() {
- return new PostCreated() {
+ public Optional<PostCreated> postCreated() {
+ return Optional.<PostCreated>of(new PostCreated() {
@Override
public void postCreated(final Post post) {
if (post.isKnown()) {
}, 10, TimeUnit.SECONDS);
}
}
- };
+ });
}
}