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

io.specmatic.stub.FoundStubbedResponse.kt Maven / Gradle / Ivy

Go to download

Turn your contracts into executable specifications. Contract Driven Development - Collaboratively Design & Independently Deploy MicroServices & MicroFrontends.

There is a newer version: 2.0.37
Show newest version
package io.specmatic.stub

import io.specmatic.core.HttpRequest
import io.specmatic.stub.report.StubEndpoint

class FoundStubbedResponse(override val response: HttpStubResponse) : StubbedResponseResult {
    override fun log(logs: MutableList, httpRequest: HttpRequest) {
        logs.add(
            StubEndpoint(
                response.scenario?.path,
                httpRequest.method,
                response.response.status,
                response.feature?.sourceProvider,
                response.feature?.sourceRepository,
                response.feature?.sourceRepositoryBranch,
                response.feature?.specification,
                response.feature?.serviceType,
            )
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy