GerritSimulation: Remove unnecessary use of 'this'
Change-Id: Ifb4b75797e97a4c280aa90c26bfef3a87f03a3db
This commit is contained in:
committed by
Marco Miller
parent
ee28fb0f81
commit
40673fe66c
@@ -23,13 +23,13 @@ import io.gatling.http.request.builder.HttpRequestBuilder
|
|||||||
class GerritSimulation extends Simulation {
|
class GerritSimulation extends Simulation {
|
||||||
implicit val conf: GatlingGitConfiguration = GatlingGitConfiguration()
|
implicit val conf: GatlingGitConfiguration = GatlingGitConfiguration()
|
||||||
|
|
||||||
private val pack = this.getClass.getPackage.getName
|
private val pack = getClass.getPackage.getName
|
||||||
private val path = pack.replaceAllLiterally(".", "/")
|
private val path = pack.replaceAllLiterally(".", "/")
|
||||||
protected val name: String = this.getClass.getSimpleName
|
protected val name: String = getClass.getSimpleName
|
||||||
private val pathName = s"data/$path/$name"
|
private val pathName = s"data/$path/$name"
|
||||||
protected val resource = s"$pathName.json"
|
protected val resource = s"$pathName.json"
|
||||||
protected val body = s"$pathName-body.json"
|
protected val body = s"$pathName-body.json"
|
||||||
protected val unique: String = name + "-" + this.hashCode()
|
protected val unique: String = name + "-" + hashCode()
|
||||||
protected val single = 1
|
protected val single = 1
|
||||||
|
|
||||||
val replicationDelay: Int = replaceProperty("replication_delay", 15).toInt
|
val replicationDelay: Int = replaceProperty("replication_delay", 15).toInt
|
||||||
|
|||||||
Reference in New Issue
Block a user