//TODO remove file with 1.0.0
@file:Suppress(
    "DEPRECATION",
    "OVERRIDE_BY_INLINE",
    "NOTHING_TO_INLINE",
    "JAVA_MODULE_DOES_NOT_READ_UNNAMED_MODULE" /* TODO remove once https://youtrack.jetbrains.com/issue/KT-35343 is fixed */
)

package ch.tutteli.atrium.domain.builders.creating

import ch.tutteli.atrium.core.polyfills.loadSingleService
import ch.tutteli.atrium.creating.Expect
import ch.tutteli.atrium.domain.creating.LocalDateTimeAssertions
import ch.tutteli.atrium.domain.creating.localDateTimeAssertions
import java.time.LocalDateTime

/**
 * Delegates inter alia to the implementation of [LocalDateTimeAssertions].
 * In detail, it implements [LocalDateTimeAssertions] by delegating to [localDateTimeAssertions]
 * which in turn delegates to the implementation via [loadSingleService].
 */
@Deprecated("Use _logic from ch.tutteli.atrium.logic instead; will be removed with 1.0.0")
object LocalDateTimeAssertionsBuilder : LocalDateTimeAssertions {
    override inline fun <T : LocalDateTime> year(expect: Expect<T>) =
        localDateTimeAssertions.year(expect)

    override inline fun <T : LocalDateTime> month(expect: Expect<T>) =
        localDateTimeAssertions.month(expect)

    override inline fun <T : LocalDateTime> day(expect: Expect<T>) =
        localDateTimeAssertions.day(expect)

    override inline fun <T : LocalDateTime> dayOfWeek(expect: Expect<T>) =
        localDateTimeAssertions.dayOfWeek(expect)
}
