|
|
|
@ -55,7 +55,7 @@ class NetworkEntityKtTest {
|
|
|
|
|
url = "url",
|
|
|
|
|
headerImageUrl = "headerImageUrl",
|
|
|
|
|
publishDate = Instant.fromEpochMilliseconds(1),
|
|
|
|
|
type = "Article",
|
|
|
|
|
type = "Article 📚",
|
|
|
|
|
)
|
|
|
|
|
val entity = networkModel.asEntity()
|
|
|
|
|
|
|
|
|
@ -65,7 +65,7 @@ class NetworkEntityKtTest {
|
|
|
|
|
assertEquals("url", entity.url)
|
|
|
|
|
assertEquals("headerImageUrl", entity.headerImageUrl)
|
|
|
|
|
assertEquals(Instant.fromEpochMilliseconds(1), entity.publishDate)
|
|
|
|
|
assertEquals("Article", entity.type)
|
|
|
|
|
assertEquals("Article 📚", entity.type)
|
|
|
|
|
|
|
|
|
|
val expandedNetworkModel =
|
|
|
|
|
NetworkNewsResourceExpanded(
|
|
|
|
@ -75,7 +75,7 @@ class NetworkEntityKtTest {
|
|
|
|
|
url = "url",
|
|
|
|
|
headerImageUrl = "headerImageUrl",
|
|
|
|
|
publishDate = Instant.fromEpochMilliseconds(1),
|
|
|
|
|
type = "Article",
|
|
|
|
|
type = "Article 📚",
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
val entityFromExpanded = expandedNetworkModel.asEntity()
|
|
|
|
@ -86,6 +86,6 @@ class NetworkEntityKtTest {
|
|
|
|
|
assertEquals("url", entityFromExpanded.url)
|
|
|
|
|
assertEquals("headerImageUrl", entityFromExpanded.headerImageUrl)
|
|
|
|
|
assertEquals(Instant.fromEpochMilliseconds(1), entityFromExpanded.publishDate)
|
|
|
|
|
assertEquals("Article", entityFromExpanded.type)
|
|
|
|
|
assertEquals("Article 📚", entityFromExpanded.type)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|