
org.bdd.reporting.data.CommonFormat.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bdd-reporting-service Show documentation
Show all versions of bdd-reporting-service Show documentation
BDD Enterprise Reporting Server. This server provides the ability to upload reports from tools like Cucumber,
SpecFlow, Pickles and the information is then aggregated into a central view across all projects.
The newest version!
package org.bdd.reporting.data
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import org.springframework.data.elasticsearch.annotations.Document
import java.io.Serializable
import java.util.*
/**
* Created by Grant Little [email protected]
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@Document(indexName = "features")
data class CommonFeature(@org.springframework.data.annotation.Id var id : String? = null,
var name : String? = null,
var description : String? = "",
val properties: Set? = mutableSetOf(),
val tags : Set = mutableSetOf(),
var timestamp : Date? = null,
var scenarios : List = listOf())
@JsonIgnoreProperties(ignoreUnknown = true)
data class CommonTag(var name : String? = null, var line : Int? = null)
@JsonIgnoreProperties(ignoreUnknown = true)
data class CommonProperty(var key : String? = null, var value : String? = null) {
constructor(keyValue : String) : this(null, null) {
val array = keyValue.split("=")
key = array[0].trim()
value = array[1].trim()
}
}
@JsonIgnoreProperties(ignoreUnknown = true)
data class CommonScenario(var id : String? = null,
var name : String? = null,
var description : String? = null,
var tags : Set = mutableSetOf(),
var type: String? = null,
var keyword: String? = null,
var line : Int? = null,
var steps: List = listOf())
@JsonIgnoreProperties(ignoreUnknown = true)
data class CommonStep(
var line: Int? = 0,
var name: String? = null,
var keyword: String? = null,
var result: String? = null)
//@Entity
//@IdClass(DbEventKey::class)
//open class DbEvent(@Id var topic : String? = null,
// @Id var id: String? = null,
// @Id var timestamp : Date? = null,
// @Lob
// @Column(length = 400000)
// var data : String? = null)
//@Entity
open class DbEvent(var topic : String? = null,
var id: String? = null,
var timestamp : Date? = null,
var data : String? = null)
open class DbEventKey(var topic : String? = null,
var id: String? = null,
var timestamp : Date? = null) : Serializable
© 2015 - 2025 Weber Informatics LLC | Privacy Policy