Skip to content

Commit

Permalink
Ktfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram-- committed Feb 22, 2024
1 parent bd33ab4 commit 16bbb38
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/main/kotlin/org/audux/bgg/response/Plays.kt
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ data class PlayItem(
/** A SubType of a thing e.g. board game. */
data class SubType(
@JsonDeserialize(using = WrappedSubTypeDeserializer::class)
val subtype: org.audux.bgg.common.SubType)
val subtype: org.audux.bgg.common.SubType
)

/**
* Represents a person in the play i.e. their username, id, what color they played, how they did
Expand Down
3 changes: 1 addition & 2 deletions src/main/kotlin/org/audux/bgg/response/Things.kt
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,7 @@ data class Comment(
/** A single listing for the thing i.e. a 'for sale'-listing. */
data class MarketplaceListing(
/** When the listing was created. */
@JsonDeserialize(using = WrappedLocalDateTimeDeserializer::class)
val listDate: LocalDateTime,
@JsonDeserialize(using = WrappedLocalDateTimeDeserializer::class) val listDate: LocalDateTime,

/** The requested price for the listing. */
val price: Price,
Expand Down
3 changes: 1 addition & 2 deletions src/test/kotlin/org/audux/bgg/response/PlaysResponseTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ class PlaysResponseTest {
name = "Sid Meier's Civilization: The Board Game",
objectType = PlayThingType.THING,
objectId = 77130,
subTypes =
listOf(SubType(org.audux.bgg.common.SubType.BOARD_GAME))
subTypes = listOf(SubType(org.audux.bgg.common.SubType.BOARD_GAME))
)
)
assertThat(civGame.players)
Expand Down
6 changes: 3 additions & 3 deletions src/test/kotlin/org/audux/bgg/response/ThingsResponseTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ package org.audux.bgg.response

import com.fasterxml.jackson.databind.ObjectMapper
import com.google.common.truth.Truth.assertThat
import java.net.URI
import java.time.LocalDate
import java.time.LocalDateTime
import org.audux.bgg.common.ThingType
import org.audux.bgg.util.TestUtils
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
import java.net.URI
import java.time.LocalDate
import java.time.LocalDateTime

/** Test class for [Things] data classes. */
class ThingsResponseTest {
Expand Down

0 comments on commit 16bbb38

Please sign in to comment.