@Test public void rate() throws Exception { StepVerifier.create(articleService.rate(EIGENWERT_ARTICLE.getName())) .expectNext(5) .verifyComplete(); }
public Mono<Integer> rate(String articleName) { return getParsedArticle(articleName) .map(ratingService::rate); }
ArticleService { public Mono<Integer> rate(String articleName) { return getParsedArticle(articleName) .map(ratingService::rate); } }
ArticleService { public Mono<Integer> rate(String articleName) { return getParsedArticle(articleName) .map(ratingService::rate); } @Autowired  ArticleService(WikiService wikiService, CountService countService, RatingService ratingService,
                          @Value("${article.cache.size}") int cacheSize); }
ArticleService { public Mono<Integer> rate(String articleName) { return getParsedArticle(articleName) .map(ratingService::rate); } @Autowired  ArticleService(WikiService wikiService, CountService countService, RatingService ratingService,
                          @Value("${article.cache.size}") int cacheSize); Mono<String> fetchArticle(String articleName); Mono<Integer> rate(String articleName); Mono<Integer> countWords(String articleName); }
ArticleService { public Mono<Integer> rate(String articleName) { return getParsedArticle(articleName) .map(ratingService::rate); } @Autowired  ArticleService(WikiService wikiService, CountService countService, RatingService ratingService,
                          @Value("${article.cache.size}") int cacheSize); Mono<String> fetchArticle(String articleName); Mono<Integer> rate(String articleName); Mono<Integer> countWords(String articleName);  }