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

com.malinskiy.marathon.test.Test.kt Maven / Gradle / Ivy

There is a newer version: 0.9.1
Show newest version
package com.malinskiy.marathon.test

import java.util.*

data class Test(
    val pkg: String,
    val clazz: String,
    val method: String,
    val metaProperties: Collection
) {
    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (other == null || javaClass != other.javaClass) return false
        val test = other as Test
        return pkg == test.pkg &&
                clazz == test.clazz &&
                method == test.method
    }

    override fun hashCode(): Int {
        return Objects.hash(pkg, clazz, method)
    }
}

fun Test.toTestName(): String = "$pkg.$clazz#$method"
fun Test.toSimpleSafeTestName(): String = "$clazz.$method"
fun Test.toSafeTestName(): String = "$pkg.$clazz.$method"





© 2015 - 2024 Weber Informatics LLC | Privacy Policy