com.avito.android.test.annotations.TestCaseBehavior.kt Maven / Gradle / Ivy
package com.avito.android.test.annotations
// todo move to report-viewer module (avito specific)
public enum class TestCaseBehavior(public val tmsValue: Int) {
POSITIVE(2), NEGATIVE(3), UNDEFINED(1);
public companion object {
public fun fromId(tmsId: Int): TestCaseBehavior? =
values().find { it.tmsValue == tmsId }
public fun fromName(name: String): TestCaseBehavior? =
values().find { it.name == name.uppercase() }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy