LocationSubject


class LocationSubject : Subject


Subject for making assertions about Locations.

Summary

Public functions

FloatSubject!
DoubleSubject!
java-static LocationSubject!
assertThat(location: Location!)
FloatSubject!
FloatSubject!
FloatSubject!
bearingTo(location: Location!)
FloatSubject!
bearingTo(latitude: Double, longitude: Double)
FloatSubject!
distanceTo(location: Location!)
FloatSubject!
distanceTo(latitude: Double, longitude: Double)
Unit
LongSubject!
LongSubject!
BundleSubject!
Unit
Unit
Unit
Unit
Unit
hasProvider(provider: String!)
Unit
Unit
Unit
Unit
isAt(other: Location!)

Verifies that the location is at the same latitude/longitude as another location.

Unit
isAt(latitude: Double, longitude: Double)
Unit
isEqualTo(otherObj: Any?)
Unit
isFaraway(other: Location!, distanceM: Float)

Verifies that the location is at least distanceM meters away from another location.

Unit
Unit
isNearby(other: Location!, distanceM: Float)

Verifies that the location is at most distanceM meters away from another location.

Unit
isNotAt(other: Location!)
Unit
isNotAt(latitude: Double, longitude: Double)
Unit
java-static Subject.Factory<LocationSubject!, Location!>!
FloatSubject!
FloatSubject!
LongSubject!
FloatSubject!

Inherited functions

From com.google.common.truth.Subject
String!
Boolean
equals(o: Any?)

This function is deprecated.

Unit
failWithActual(key: String!, value: Any?)
Unit
failWithoutActual(first: Fact!, rest: Array<Fact!>!)
Int

This function is deprecated.

StandardSubjectBuilder!
Unit
isAnyOf(first: Any?, second: Any?, rest: Array<Any?>?)
Unit
isIn(iterable: (Mutable)Iterable<Any!>?)
Unit
isInstanceOf(clazz: Class<Any!>!)
Unit
isNoneOf(first: Any?, second: Any?, rest: Array<Any?>?)
Unit
isNotEqualTo(unexpected: Any?)
Unit
isNotIn(iterable: (Mutable)Iterable<Any!>?)
Unit
Unit
Unit
isNotSameInstanceAs(unexpected: Any?)
Unit
Unit
isSameInstanceAs(expected: Any?)
String!

This function is deprecated.

Public functions

accuracy

fun accuracy(): FloatSubject!

altitude

fun altitude(): DoubleSubject!

assertThat

java-static fun assertThat(location: Location!): LocationSubject!

bearing

fun bearing(): FloatSubject!

bearingAccuracy

fun bearingAccuracy(): FloatSubject!

bearingTo

fun bearingTo(location: Location!): FloatSubject!

bearingTo

fun bearingTo(latitude: Double, longitude: Double): FloatSubject!

distanceTo

fun distanceTo(location: Location!): FloatSubject!

distanceTo

fun distanceTo(latitude: Double, longitude: Double): FloatSubject!

doesNotHaveProvider

fun doesNotHaveProvider(provider: String!): Unit

elapsedRealtimeMillis

fun elapsedRealtimeMillis(): LongSubject!

elapsedRealtimeNanos

fun elapsedRealtimeNanos(): LongSubject!

extras

fun extras(): BundleSubject!

hasAccuracy

fun hasAccuracy(): Unit

hasAltitude

fun hasAltitude(): Unit

hasBearing

fun hasBearing(): Unit

hasBearingAccuracy

fun hasBearingAccuracy(): Unit

hasProvider

fun hasProvider(provider: String!): Unit

hasSpeed

fun hasSpeed(): Unit

hasSpeedAccuracy

fun hasSpeedAccuracy(): Unit

hasVerticalAccuracy

fun hasVerticalAccuracy(): Unit

isAt

fun isAt(other: Location!): Unit

Verifies that the location is at the same latitude/longitude as another location.

isAt

fun isAt(latitude: Double, longitude: Double): Unit

isEqualTo

fun isEqualTo(otherObj: Any?): Unit

isFaraway

fun isFaraway(other: Location!, distanceM: Float): Unit

Verifies that the location is at least distanceM meters away from another location.

isMock

fun isMock(): Unit

isNearby

fun isNearby(other: Location!, distanceM: Float): Unit

Verifies that the location is at most distanceM meters away from another location.

isNotAt

fun isNotAt(other: Location!): Unit

isNotAt

fun isNotAt(latitude: Double, longitude: Double): Unit

isNotMock

fun isNotMock(): Unit

locations

java-static fun locations(): Subject.Factory<LocationSubject!, Location!>!

speed

fun speed(): FloatSubject!

speedAccuracy

fun speedAccuracy(): FloatSubject!

time

fun time(): LongSubject!

verticalAccuracy

fun verticalAccuracy(): FloatSubject!