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

commonTest.com.apollographql.apollo.api.TestUtils.kt Maven / Gradle / Ivy

There is a newer version: 4.1.0
Show newest version
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