package sbt.internal.librarymanagement

import sbt.internal.librarymanagement.ivy.*
import verify.BasicTestSuite

class UpdateOptionsSpec extends BasicTestSuite {
  test("UpdateOptions should have proper toString defined") {
    assert(UpdateOptions().toString() == """|UpdateOptions(
        |  circularDependencyLevel = warn,
        |  latestSnapshots = true,
        |  cachedResolution = false
        |)""".stripMargin)

    assert(
      UpdateOptions()
        .withCircularDependencyLevel(CircularDependencyLevel.Error)
        .withCachedResolution(true)
        .withLatestSnapshots(false)
        .toString() == """|UpdateOptions(
        |  circularDependencyLevel = error,
        |  latestSnapshots = false,
        |  cachedResolution = true
        |)""".stripMargin
    )
  }
}
