summaryrefslogtreecommitdiff
path: root/core/src/test/java
AgeCommit message (Collapse)Author
2020-03-25Removed unused codeByteHamster
2020-02-02Enforce SeparatorWrapByteHamster
2020-01-25Always mock full feedMediaByteHamster
2020-01-25Converted to EventBus instead of broadcastByteHamster
2019-12-21resolve review remarks w.r.t naming: volume reduction -> volume adaptionMax Bechtold
2019-12-21Merge remote-tracking branch 'upstream/develop' into ↵Max Bechtold
feat/simple-adjust-volume-per-feed
2019-11-15Added pubDate testByteHamster
2019-11-05enqueue respect download order: add test case for download failures.orionlee
2019-11-05code style / comment tweak per revieworionlee
2019-11-05refactor - make enqueue position logic more readable per review.orionlee
2019-11-05code style fixes: naming, indentation.orionlee
2019-11-05enqueue location: use the new 3-value settingsorionlee
2019-11-05refactor move generic Collection helpers to CollectionTestUtilorionlee
2019-11-05refactor extract common FeedItem List to IDs methodorionlee
2019-11-05code style fixes - naming, indentation, etc.orionlee
2019-11-05Enqueue tweaks - replace custom stub DownloadStateProvider with mockito ↵orionlee
mocks in test
2019-11-05refactor - rename FeedFileDownloadStatusRequesterInterface to a more generic ↵orionlee
DownloadStateProvider.
2019-11-05refactor - move ItemEnqueuePositionCalculator to top-level per review.orionlee
2019-11-05fix imports post androidX migrationorionlee
2019-11-05test case tweak: preserve download order test, fix test case nameorionlee
(remove the incomplete expected from test case name)
2019-11-05test case bug fix: Bulk download 2nd item position should be 1orionlee
2019-11-05refactoring test - factor out common operations of calc position,orionlee
add to queue and verify result into common helper.
2019-11-05Test cases readability: change expected format from position to the actual queueorionlee
(list of IDs), to make the test case more readable.
2019-11-05#2448: make podcast episode enqueue position respect download start orderorionlee
2019-11-05refactor test - break ItemEnqueuePositionCalculatorTest to be more modularorionlee
to prepare for testing more complex enqueue options.
2019-11-05#2652 (part of): The in-progress podcast at the front of the queueorionlee
should remain at the front.
2019-11-05refactor - DBWriterTest: parametrize the set of testsorionlee
2019-11-05refactor - DBWriter.addQueueItem() : refactor enqueue position calculationorionlee
to be a unit-testable component (static inner class)
2019-10-24Misc code style fixes.orionlee
2019-10-24Test to ensure Feed only accepts INTRA_FEED sort orderorionlee
2019-10-24feeditem sort - handle boundary conditionsorionlee
2019-10-24rename + refactor QueueSorter to FeedItemPermutors, to support both queue ↵orionlee
and podcast screen.
2019-10-18unit test for get feeditem link with fallbackorionlee
2019-10-17#3248 Merge FeedVolumeReduction into VolumeReductionSettingMax Bechtold
2019-10-17#3248 Rename PlaybackVolumeAdaptor -> ..UpdaterMax Bechtold
2019-08-26#3248 Refactor enum mapping for more refactoring safetyMax Bechtold
2019-08-18#3248 Adapt volume for playing media if its volume reduction setting is changedMax Bechtold
2019-08-18#3248 Review findingsMax Bechtold
2019-08-18#3248 Add unit testMax Bechtold
2019-08-11Changes due to feedback in pull request #3315damoasda
2019-07-09Queue: Keep sorted #1556damoasda
2019-05-05Handle iTunes single-number duration formatAnderson Mesquita
Apple says this [1] about the `<itunes:duration>` tag: If you specify a single number as a value (without colons), Apple Podcasts displays the value as seconds. This commit makes it also handle this single-number format. Closes: #3024 [1]: https://help.apple.com/itc/podcasts_connect/#/itcb54353390
2019-05-05Extract DurationParserAnderson Mesquita
This makes it easier to test the logic of parsing duration strings. References: #3024
2019-03-31Validate that the *new* and *not played* are also exclusiveBorjan Tchakaloff
The FeedItem state is actually a tri-state, complement the test coverage by checking that the state changes from *new* to *not played*.
2019-03-31Validate that the item state is only changed when neededBorjan Tchakaloff
Follow-up to commit 8172d87477dd593745d4776417ef3dd7884d17fb (#3067) that adds test coverage for the resolved issue. Also, fix that commit by making the update condition more explicit: the FeedItem state is only changed when a state switch is necessary. In other words, an item marked as *new* that gets downloaded should lose the *new* mark and gain the *unplayed* mark instead.
2019-03-31Validate that the *new* and *played* states are exclusiveBorjan Tchakaloff
2019-03-03Moved some implementation tests to unit testsByteHamster
2019-01-04fix code formattingorionlee
2019-01-04episode cleanup 12 hour option - use hours internally part 2 (persisted ↵orionlee
shared preference) requires data migartion: app versionCode increased to 1070196
2019-01-04episode cleanup 12 hour option: add unit test to prepare for using hoursorionlee
rather than days as data structure