com.avito.android.test.annotations.TestCasePriority.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of report-api Show documentation
Show all versions of report-api Show documentation
Collection of infrastructure libraries and gradle plugins of Avito Android project
package com.avito.android.test.annotations
// todo move to report-viewer module (avito specific)
public enum class TestCasePriority(public val tmsValue: Int) {
CRITICAL(4), MAJOR(3), NORMAL(2), MINOR(1);
public companion object {
public fun fromId(tmsId: Int): TestCasePriority? = values().find { it.tmsValue == tmsId }
public fun fromName(name: String): TestCasePriority? = values().find { it.name == name.toUpperCase() }
}
}