class MockBigQuery extends AnyRef
Mock BigQuery environment for integration test.
Use mockTable to feed data into live BigQuery service and queryResult to query them.
- Source
- MockBigQuery.scala
- Alphabetic
- By Inheritance
- MockBigQuery
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mockTable(original: TableReference): MockTable
Mock a BigQuery table.
Mock a BigQuery table. Each table can be mocked only once in a test class.
- def mockTable(original: String): MockTable
Mock a BigQuery table.
Mock a BigQuery table. Each table can be mocked only once in a test class.
- def mockWildcardTable(prefix: String, suffix: String): MockTable
Mock a BigQuery wildcard table using the table prefix and the suffix matched by the wildcard.
Mock a BigQuery wildcard table using the table prefix and the suffix matched by the wildcard. Each table can be mocked only once in a test class.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def queryResult(sqlQuery: String, flattenResults: Boolean = false): Seq[TableRow]
Get result of a live query against BigQuery service, substituting mocked tables with test data.
- def runDML(dmlStatement: String): TableReference
Run live DML statement against BigQuery service, substituting mocked tables with test data.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def typedQueryResult[T <: HasAnnotation](sqlQuery: String, flattenResults: Boolean = false)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Seq[T]
Get result of a live query against BigQuery service, substituting mocked tables with test data.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()