rrva
02/23/2018, 2:39 PMcopy()
on to create different input to the test cases. Anything else? Examples appreciated!raniejade
02/23/2018, 2:42 PMrrva
02/23/2018, 2:51 PMdata class LegacyEpisodeAttributes(
val seasonNumber: Int,
val episodeBroadcastNumber: Int,
val numberOfEpisodesInSeason: Int,
val shortEpisodeSynopsis: String?,
val longEpisodeSynopsis: String?,
val images: LegacyImages?
)
data class TvSeries(
val id: String,
val name: String,
val shortDescription: String?,
val longDescription: String?,
val image: Image,
val seasons: List<Season>
)
data class Season(
val id: String,
val name: String,
val number: Int,
val episodes: List<Episode>,
val numberOfProducedEpisodes: Int
)
data class Episode(
val id: String,
val name: String?,
val longDescription: String?,
val shortDescription: String?,
val tags: List<Tag>,
val image: Image?,
val number: Int?,
val live: Live?
)
lets say I have a bunch of instances LegacyEpisodeAttributes
which I want to convert to TvSeries
Season
and Episode
classes. There are many variations of indata which I need to test, to assert that the converter code works.raniejade
02/24/2018, 11:10 AM