All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.serenitybdd.reports.model.TestCaseDuration.kt Maven / Gradle / Ivy

There is a newer version: 4.2.3
Show newest version
package net.serenitybdd.reports.model

import net.thucydides.model.domain.TestOutcome

class TestCaseDuration(val title: String,
                       val duration: Long,
                       val testOutcome: TestOutcome) {

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as TestCaseDuration

        if (title != other.title) return false
        return testOutcome == other.testOutcome
    }

    override fun hashCode(): Int {
        var result = title.hashCode()
        result = 31 * result + testOutcome.hashCode()
        return result
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy