LocationTestKit supports starting HTTP Location Server backed by Pekko cluster and Distributed Data
Example:
private val testKit = LocationTestKit()
// starting Location Server (starts location server on default ports specified in configuration file)
testKit.startLocationServer()
// stopping alarm server
testKit.shutdownLocationServer()
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait MockitoSugarclass Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Shutdown HTTP location server
Shutdown HTTP location server
When the test has completed, make sure you shutdown location server.
Attributes
Start HTTP location server on default port 7654
Start HTTP location server on default port 7654
Location server is required to be running on a machine before starting components. (HCD's, Assemblies etc.)
Attributes
Inherited methods
Invokes the mock(classToMock: Class[T], name: String)
method on the Mockito
companion object (i.e., the static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Invokes the mock(classToMock: Class[T], name: String)
method on the Mockito
companion object (i.e., the static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Using the Mockito API directly, you create a mock with:
val mockCollaborator = mock(classOf[Collaborator], name)
Using this method, you can shorten that to:
val mockCollaborator = mock[Collaborator](name)
Attributes
- Inherited from:
- MockitoSugar
Invokes the mock(classToMock: Class[T], mockSettings: MockSettings)
method on the Mockito
companion object (i.e., the static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Invokes the mock(classToMock: Class[T], mockSettings: MockSettings)
method on the Mockito
companion object (i.e., the static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Using the Mockito API directly, you create a mock with:
val mockCollaborator = mock(classOf[Collaborator], mockSettings)
Using this method, you can shorten that to:
val mockCollaborator = mock[Collaborator](mockSettings)
Attributes
- Inherited from:
- MockitoSugar
Invokes the mock(classToMock: Class[T], defaultAnswer: Answer[_])
method on the Mockito
companion object (i.e., the static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Invokes the mock(classToMock: Class[T], defaultAnswer: Answer[_])
method on the Mockito
companion object (i.e., the static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Using the Mockito API directly, you create a mock with:
val mockCollaborator = mock(classOf[Collaborator], defaultAnswer)
Using this method, you can shorten that to:
val mockCollaborator = mock[Collaborator](defaultAnswer)
Attributes
- Inherited from:
- MockitoSugar
Invokes the mock(classToMock: Class[T])
method on the Mockito
companion object (i.e., the static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Invokes the mock(classToMock: Class[T])
method on the Mockito
companion object (i.e., the static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Using the Mockito API directly, you create a mock with:
val mockCollaborator = mock(classOf[Collaborator])
Using this method, you can shorten that to:
val mockCollaborator = mock[Collaborator]
Attributes
- Inherited from:
- MockitoSugar
Inherited fields
Attributes
- Inherited from:
- MockedAuthentication (hidden)
Attributes
- Inherited from:
- MockedAuthentication (hidden)
Attributes
- Inherited from:
- MockedAuthentication (hidden)