Open ndushay opened 7 years ago
refactor to WasapiDownloader.getWasapiCrawlSelector() method
(e.g. instead of inline, make this a private method:
List<Integer> desiredCrawlIds = new ArrayList<Integer>(); desiredCrawlIds.add(Integer.valueOf("666")); PowerMockito.when(mockCrawlSelector.getSelectedCrawlIds(0)).thenReturn(desiredCrawlIds); PowerMockito.whenNew(WasapiCrawlSelector.class).withArguments(wasapiRespList).thenReturn(mockCrawlSelector)
maybe something similar with
refactor to WasapiDownloader.getWasapiCrawlSelector() method
(e.g. instead of inline, make this a private method:
maybe something similar with