commonTest.com.apollographql.apollo.api.TestUtils.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apollo-api Show documentation
Show all versions of apollo-api Show documentation
Apollo GraphQL API classes
package com.apollographql.apollo.api
import okio.BufferedSource
import okio.ByteString
val EMPTY_OPERATION: Operation<*, *, *> = object : Operation {
override fun variables(): Operation.Variables {
return Operation.EMPTY_VARIABLES
}
override fun name(): OperationName = object : OperationName {
override fun name() = "test"
}
override fun operationId() = ""
override fun queryDocument() = throw UnsupportedOperationException()
override fun responseFieldMapper() = throw UnsupportedOperationException()
override fun wrapData(data: Operation.Data?) = throw UnsupportedOperationException()
override fun parse(source: BufferedSource) = throw UnsupportedOperationException()
override fun parse(source: BufferedSource, scalarTypeAdapters: ScalarTypeAdapters) = throw UnsupportedOperationException()
override fun parse(byteString: ByteString) = throw UnsupportedOperationException()
override fun parse(byteString: ByteString, scalarTypeAdapters: ScalarTypeAdapters) = throw UnsupportedOperationException()
override fun composeRequestBody() = throw UnsupportedOperationException()
override fun composeRequestBody(scalarTypeAdapters: ScalarTypeAdapters) = throw UnsupportedOperationException()
override fun composeRequestBody(autoPersistQueries: Boolean, withQueryDocument: Boolean, scalarTypeAdapters: ScalarTypeAdapters) = throw UnsupportedOperationException()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy