Packages

class MockDatasyncClient extends DatasyncClient with LazyLogging

Linear Supertypes
LazyLogging, DatasyncClient, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MockDatasyncClient
  2. LazyLogging
  3. DatasyncClient
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MockDatasyncClient()(implicit materializer: ActorMaterializer)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def authenticate(token: String): Future[Source[AuthMessage, SourceQueueWithComplete[Any]]]

    Scala API.

    Scala API. Mock the Datasync 'authenticate' method. This method is called by any application under test instead of DatasyncClient.authenticate method.

    token

    a token used to authenticate on that application.

    returns

    a Future[Source[AuthMessage, SourceQueueWithComplete[Any]]] that may fail if operation fails.

    Definition Classes
    MockDatasyncClientDatasyncClient
  6. def authenticateJ(token: String): CompletionStage[Source[AuthMessage, SourceQueueWithComplete[Any]]]

    Java API.

    Java API. Mock the Datasync 'authenticateJ' method. This method is called by any application under test instead of DatasyncClient.authenticateJ method.

    token

    a token used to authenticate on that application.

    returns

    a CompletionStage<Source<AuthMessage, SourceQueueWithComplete<Any>>> that may fail if operation fails.

    Definition Classes
    MockDatasyncClientDatasyncClient
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. def close(): Unit

    Ends this client's Web Socket connection to Datasync, and therefore cancels all pending operations if any.

    Ends this client's Web Socket connection to Datasync, and therefore cancels all pending operations if any.

    Definition Classes
    MockDatasyncClientDatasyncClient
  9. def connectionStatus(): Future[Source[CnxStatusMessage, SourceQueueWithComplete[Any]]]

    Scala API.

    Scala API. Mock the 'connectionStatus' method. This method is called by any application under test instead of DatasyncClient.connectionStatus method. As this is useless in a mock, it always return a successful empty Source.

    returns

    a Future[Source[CnxStatusMessage, SourceQueueWithComplete[Any]]] that may fail if operation fails.

    Definition Classes
    MockDatasyncClientDatasyncClient
  10. def connectionStatusJ(): CompletionStage[Source[CnxStatusMessage, SourceQueueWithComplete[Any]]]

    Java API.

    Java API. Mock the 'connectionStatus' method. This method is called by any application under test instead of DatasyncClient.connectionStatus method. As this is useless in a mock, it always return a successful empty Source.

    returns

    a CompletionStage<Source<CnxStatusMessage, SourceQueueWithComplete<Any>>> that may fail if operation fails.

    Definition Classes
    MockDatasyncClientDatasyncClient
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def invalidate_authentication: Future[Unit]

    Scala API.

    Scala API. Mock the Datasync 'invalidate_authentication' method. This method is called by any application under test instead of DatasyncClient.invalidate_authentication method.

    returns

    a Future[Unit] that may fail if operation fails.

    Definition Classes
    MockDatasyncClientDatasyncClient
  17. def invalidate_authenticationJ: CompletionStage[Unit]

    Java API.

    Java API. Mock the Datasync 'invalidate_authenticationJ' method. This method is called by any application under test instead of DatasyncClient.invalidate_authenticationJ method.

    returns

    a CompletionStage<BoxedUnit> that may fail if operation fails.

    Definition Classes
    MockDatasyncClientDatasyncClient
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def listen(path: String, sendCache: Boolean): Future[Source[ListenMessage, SourceQueueWithComplete[Any]]]

    Scala API.

    Scala API. Mock the Datasync 'listen' method. This method is called by any application under test instead of DatasyncClient.listen method.

    path

    the path where to get notifications, formatted as "some/path/where/to/get notifications".

    sendCache

    if true, returned Source receives a first UpdateMessage notification containing data stored on the path. Defaults to true.

    returns

    a Future[Source[ListenMessage, SourceQueueWithComplete[Any]]]

    Definition Classes
    MockDatasyncClientDatasyncClient
  20. def listenJ(path: String): CompletionStage[Source[ListenMessage, SourceQueueWithComplete[Any]]]

    Java API.

    Java API. Mock the Datasync 'listenJ' method. This method is called by any application under test instead of DatasyncClient.listenJ method.

    path

    the path where to get notifications, formatted as "some/path/where/to/get notifications".

    returns

    a CompletionStage<Source<ListenMessage, SourceQueueWithComplete<Any>>>

    Definition Classes
    MockDatasyncClientDatasyncClient
  21. def listenJ(path: String, sendCache: Boolean): CompletionStage[Source[ListenMessage, SourceQueueWithComplete[Any]]]

    Java API.

    Java API. Mock the Datasync 'listenJ' method. This method is called by any application under test instead of DatasyncClient.listenJ method.

    path

    the path where to get notifications, formatted as "some/path/where/to/get notifications".

    sendCache

    if true, returned Source receives a first UpdateMessage notification containing data stored on the path.

    returns

    a CompletionStage<Source<ListenMessage, SourceQueueWithComplete<Any>>>

    Definition Classes
    MockDatasyncClientDatasyncClient
  22. lazy val logger: Logger
    Attributes
    protected
    Definition Classes
    LazyLogging
    Annotations
    @volatile()
  23. def mockAuthenticate(): Unit

    Scala API.

    Scala API. Define successful authentication behavior for any token, where given response is sent immediately.

  24. def mockAuthenticate(delay: Long): Unit

    Scala API.

    Scala API. Define successful authentication behavior for any token.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  25. def mockAuthenticate(response: (List[AuthMessage], String)): Unit

    Scala API.

    Scala API. Define authentication behavior for any token, where given response is sent immediately.

    response

    a (List[AuthMessage], String) tuple that should be null to remove some existing authentication behavior, or should define the expected authentication process for this token. First element of this tuple represents successful response, second one the error message of a failing response.

  26. def mockAuthenticate(response: (List[AuthMessage], String), delay: Long): Unit

    Scala API.

    Scala API. Define authentication behavior for any token.

    response

    a (List[AuthMessage], String) tuple that should be null to remove some existing authentication behavior, or should define the expected authentication process for this token. First element of this tuple represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  27. def mockAuthenticate(token: String): Unit

    Scala API.

    Scala API. Define successful authentication behavior for a given token, where given response is sent immediately.

    token

    a non empty String.

  28. def mockAuthenticate(token: String, delay: Long): Unit

    Scala API.

    Scala API. Define successful authentication behavior for a given token.

    token

    a non empty String.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  29. def mockAuthenticate(token: String, response: (List[AuthMessage], String)): Unit

    Scala API.

    Scala API. Define authentication behavior for a given token, where given response is sent immediately.

    token

    a non empty String.

    response

    a (List[AuthMessage], String) tuple that should be null to remove some existing authentication behavior, or should define the expected authentication process for this token. First element of this tuple represents successful response, second one the error message of a failing response.

  30. def mockAuthenticate(token: String, response: (List[AuthMessage], String), delay: Long): Unit

    Scala API.

    Scala API. Define authentication behavior for a given token.

    token

    a non empty String.

    response

    a (List[AuthMessage], String) tuple that should be null to remove some existing authentication behavior, or should define the expected authentication process for this token. First element of this tuple represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  31. def mockAuthenticateJ(): Unit

    Java API.

    Java API. Define successful authentication behavior for any token, where given response is sent immediately.

  32. def mockAuthenticateJ(delay: Long): Unit

    Java API.

    Java API. Define successful authentication behavior for any token.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  33. def mockAuthenticateJ(response: Pair[List[AuthMessage], String]): Unit

    Java API.

    Java API. Define authentication behavior for any token, where given response is sent immediately.

    response

    a Pair<List<AuthMessage>, String> that should be null to remove some existing authentication behavior, or should define the expected authentication process for this token. First element of this pair represents successful response, second one the error message of a failing response.

  34. def mockAuthenticateJ(response: Pair[List[AuthMessage], String], delay: Long): Unit

    Java API.

    Java API. Define authentication behavior for any token.

    response

    a Pair<List<AuthMessage>, String> that should be null to remove some existing authentication behavior, or should define the expected authentication process for this token. First element of this pair represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  35. def mockAuthenticateJ(token: String): Unit

    Java API.

    Java API. Define successful authentication behavior for a given token, where given response is sent immediately.

    token

    a non empty String.

  36. def mockAuthenticateJ(token: String, delay: Long): Unit

    Java API.

    Java API. Define successful authentication behavior for a given token.

    token

    a non empty String.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  37. def mockAuthenticateJ(token: String, response: Pair[List[AuthMessage], String]): Unit

    Java API.

    Java API. Define authentication behavior for a given token, where given response is sent immediately.

    token

    a non empty String.

    response

    a Pair<List<AuthMessage>, String> that should be null to remove some existing authentication behavior, or should define the expected authentication process for this token. First element of this pair represents successful response, second one the error message of a failing response.

  38. def mockAuthenticateJ(token: String, response: Pair[List[AuthMessage], String], delay: Long): Unit

    Java API.

    Java API. Define authentication behavior for a given token.

    token

    a non empty String.

    response

    a Pair<List<AuthMessage>, String> that should be null to remove some existing authentication behavior, or should define the expected authentication process for this token. First element of this pair represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  39. def mockInvalidateAuthentication(): Unit

    Scala API.

    Scala API. Define successful invalidate authentication behavior, where response is sent immediately.

  40. def mockInvalidateAuthentication(delay: Long): Unit

    Scala API.

    Scala API. Define successful invalidate authentication behavior.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  41. def mockInvalidateAuthentication(response: (AnyRef, String)): Unit

    Scala API.

    Scala API. Define invalidate authentication behavior, where given response is sent immediately.

    response

    a (AnyRef, String) tuple that should be null to remove some existing invalidate authentication behavior, or should define the expected invalidate authentication process. First element of this tuple represents successful response, second one the error message of a failing response.

  42. def mockInvalidateAuthentication(response: (AnyRef, String), delay: Long): Unit

    Scala API.

    Scala API. Define invalidate authentication behavior.

    response

    a (AnyRef, String) tuple that should be null to remove some existing invalidate authentication behavior, or should define the expected invalidate authentication process. First element of this tuple represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  43. def mockInvalidateAuthenticationJ(): Unit

    Java API.

    Java API. Define successful invalidate authentication behavior, where response is sent immediately.

  44. def mockInvalidateAuthenticationJ(delay: Long): Unit

    Java API.

    Java API. Define successful invalidate authentication behavior.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  45. def mockInvalidateAuthenticationJ(response: Pair[AnyRef, String]): Unit

    Java API.

    Java API. Define invalidate authentication behavior, where given response is sent immediately.

    response

    a Pair<Object, String> that should be null to remove some existing invalidate authentication behavior, or should define the expected invalidate authentication process. First element of this pair represents successful response, second one the error message of a failing response.

  46. def mockInvalidateAuthenticationJ(response: Pair[AnyRef, String], delay: Long): Unit

    Java API.

    Java API. Define invalidate authentication behavior.

    response

    a Pair<Object, String> that should be null to remove some existing invalidate authentication behavior, or should define the expected invalidate authentication process. First element of this pair represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  47. def mockListen(): Unit

    Scala API.

    Scala API. Define successful listen behavior for any path, where given response is sent immediately.

  48. def mockListen(delay: Long): Unit

    Scala API.

    Scala API. Define successful listen behavior for any path.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  49. def mockListen(response: (List[ListenMessage], String)): Unit

    Scala API.

    Scala API. Define listen behavior for any path, where given response is sent immediately.

    response

    a (List[ListenMessage], String) tuple that should be null to remove some existing listen behavior, or should define the expected listen process for this path. First element of this tuple represents successful response, second one the error message of a failing response.

  50. def mockListen(response: (List[ListenMessage], String), delay: Long): Unit

    Scala API.

    Scala API. Define listen behavior for any path.

    response

    a (List[ListenMessage], String) tuple that should be null to remove some existing listen behavior, or should define the expected listen process for this path. First element of this tuple represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  51. def mockListen(path: String): Unit

    Define successful listen behavior for a given path, where given response is sent immediately.

    Define successful listen behavior for a given path, where given response is sent immediately.

    path

    a non empty String, formatted as "some/path/where/to/listen".

  52. def mockListen(path: String, delay: Long): Unit

    Scala API.

    Scala API. Define successful listen behavior for a given path.

    path

    a non empty String, formatted as "some/path/where/to/listen".

    delay

    a Long representing the delay in milliseconds before response should be sent.

  53. def mockListen(path: String, response: (List[ListenMessage], String)): Unit

    Scala API.

    Scala API. Define listen behavior for a given path, where given response is sent immediately.

    path

    a non empty String, formatted as "some/path/where/to/listen".

    response

    a (List[ListenMessage], String) tuple that should be null to remove some existing listen behavior, or should define the expected listen process for this path. First element of this tuple represents successful response, second one the error message of a failing response.

  54. def mockListen(path: String, response: (List[ListenMessage], String), delay: Long): Unit

    Scala API.

    Scala API. Define listen behavior for a given path.

    path

    a non empty String, formatted as "some/path/where/to/listen".

    response

    a (List[ListenMessage], String) tuple that should be null to remove some existing listen behavior, or should define the expected listen process for this path. First element of this tuple represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  55. def mockListenJ(): Unit

    Java API.

    Java API. Define successful listen behavior for any path, where given response is sent immediately.

  56. def mockListenJ(delay: Long): Unit

    Java API.

    Java API. Define successful listen behavior for any path.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  57. def mockListenJ(response: Pair[List[ListenMessage], String]): Unit

    Java API.

    Java API. Define listen behavior for any path, where given response is sent immediately.

    response

    a Pair<List<ListenMessage>, String> that should be null to remove some existing listen behavior, or should define the expected listen process for this path. First element of this pair represents successful response, second one the error message of a failing response.

  58. def mockListenJ(response: Pair[List[ListenMessage], String], delay: Long): Unit

    Java API.

    Java API. Define listen behavior for any path.

    response

    a Pair<List<ListenMessage>, String> that should be null to remove some existing listen behavior, or should define the expected listen process for this path. First element of this pair represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  59. def mockListenJ(path: String): Unit

    Java API.

    Java API. Define successful listen behavior for a given path, where given response is sent immediately.

    path

    a non empty String, formatted as "some/path/where/to/listen".

  60. def mockListenJ(path: String, delay: Long): Unit

    Java API.

    Java API. Define successful listen behavior for a given path.

    path

    a non empty String, formatted as "some/path/where/to/listen".

    delay

    a Long representing the delay in milliseconds before response should be sent.

  61. def mockListenJ(path: String, response: Pair[List[ListenMessage], String]): Unit

    Java API.

    Java API. Define listen behavior for a given path, where given response is sent immediately.

    path

    a non empty String, formatted as "some/path/where/to/listen".

    response

    a Pair<List<ListenMessage>, String> that should be null to remove some existing listen behavior, or should define the expected listen process for this path. First element of this pair represents successful response, second one the error message of a failing response.

  62. def mockListenJ(path: String, response: Pair[List[ListenMessage], String], delay: Long): Unit

    Java API.

    Java API. Define listen behavior for a given path.

    path

    a non empty String, formatted as "some/path/where/to/listen".

    response

    a Pair<List<ListenMessage>, String> that should be null to remove some existing listen behavior, or should define the expected listen process for this path. First element of this pair represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  63. def mockOnce(): Unit

    Scala API.

    Scala API. Define successful once behavior for any path, where given response is sent immediately.

  64. def mockOnce(delay: Long): Unit

    Scala API.

    Scala API. Define successful once behavior for any path.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  65. def mockOnce(response: (String, String)): Unit

    Scala API.

    Scala API. Define once behavior for any path, where given response is sent immediately.

    response

    a (String, String) tuple that should be null to remove some existing once behavior, or should define the expected once process for this path. First element of this tuple represents successful response, second one the error message of a failing response.

  66. def mockOnce(response: (String, String), delay: Long): Unit

    Scala API.

    Scala API. Define once behavior for any path.

    response

    a (String, String) tuple that should be null to remove some existing once behavior, or should define the expected once process for this path. First element of this tuple represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  67. def mockOnce(path: String): Unit

    Scala API.

    Scala API. Define successful once behavior for a given path, where given response is sent immediately.

    path

    a non empty String, formatted as "some/path/where/to/retrieve/data".

  68. def mockOnce(path: String, delay: Long): Unit

    Scala API.

    Scala API. Define successful once behavior for a given path.

    path

    a non empty String, formatted as "some/path/where/to/retrieve/data".

    delay

    a Long representing the delay in milliseconds before response should be sent.

  69. def mockOnce(path: String, response: (String, String)): Unit

    Scala API.

    Scala API. Define once behavior for a given path, where given response is sent immediately.

    path

    a non empty String, formatted as "some/path/where/to/retrieve/data".

    response

    a (String, String) tuple that should be null to remove some existing once behavior, or should define the expected once process for this path. First element of this tuple represents successful response, second one the error message of a failing response.

  70. def mockOnce(path: String, response: (String, String), delay: Long): Unit

    Scala API.

    Scala API. Define once behavior for a given path.

    path

    a non empty String, formatted as "some/path/where/to/retrieve/data".

    response

    a (String, String) tuple that should be null to remove some existing once behavior, or should define the expected once process for this path. First element of this tuple represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  71. def mockOnceJ(): Unit

    Java API.

    Java API. Define successful once behavior for any path, where given response is sent immediately.

  72. def mockOnceJ(delay: Long): Unit

    Java API.

    Java API. Define successful once behavior for any path.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  73. def mockOnceJ(response: Pair[String, String]): Unit

    Java API.

    Java API. Define once behavior for any path, where given response is sent immediately.

    response

    a Pair<String, String> that should be null to remove some existing once behavior, or should define the expected once process for this path. First element of this pair represents successful response, second one the error message of a failing response.

  74. def mockOnceJ(response: Pair[String, String], delay: Long): Unit

    Java API.

    Java API. Define once behavior for any path.

    response

    a Pair<String, String> that should be null to remove some existing once behavior, or should define the expected once process for this path. First element of this pair represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  75. def mockOnceJ(path: String): Unit

    Java API.

    Java API. Define successful once behavior for a given path, where given response is sent immediately.

    path

    a non empty String, formatted as "some/path/where/to/retrieve/data".

  76. def mockOnceJ(path: String, delay: Long): Unit

    Java API.

    Java API. Define successful once behavior for a given path.

    path

    a non empty String, formatted as "some/path/where/to/retrieve/data".

    delay

    a Long representing the delay in milliseconds before response should be sent.

  77. def mockOnceJ(path: String, response: Pair[String, String]): Unit

    Java API.

    Java API. Define once behavior for a given path, where given response is sent immediately.

    path

    a non empty String, formatted as "some/path/where/to/retrieve/data".

    response

    a Pair<String, String> that should be null to remove some existing once behavior, or should define the expected once process for this path. First element of this pair represents successful response, second one the error message of a failing response.

  78. def mockOnceJ(path: String, response: Pair[String, String], delay: Long): Unit

    Java API.

    Java API. Define once behavior for a given path.

    path

    a non empty String, formatted as "some/path/where/to/retrieve/data".

    response

    a Pair<String, String> that should be null to remove some existing once behavior, or should define the expected once process for this path. First element of this pair represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  79. def mockPush(): Unit

    Scala API.

    Scala API. Define successful PUSH behavior for any (path, JSON string) couple, where response is sent immediately.

  80. def mockPush(delay: Long): Unit

    Scala API.

    Scala API. Define successful PUSH behavior for any (path, JSON string) couple.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  81. def mockPush(response: (String, String)): Unit

    Scala API.

    Scala API. Define PUSH behavior for any (path, JSON string) couple, where given response is sent immediately.

    response

    a (String, String) tuple that should be null to remove some existing PUSH behavior, or should define the expected PUSH process for this (path, JSON string) couple. First element of this tuple represents successful response, second one the error message of a failing response.

  82. def mockPush(response: (String, String), delay: Long): Unit

    Scala API.

    Scala API. Define PUSH behavior for any (path, JSON string) couple.

    response

    a (String, String) tuple that should be null to remove some existing PUSH behavior, or should define the expected PUSH process for this (path, JSON string) couple. First element of this tuple represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  83. def mockPush(path: String, json: String): Unit

    Scala API.

    Scala API. Define successful PUSH behavior for a given (path, JSON string) couple, where response is sent immediately.

    path

    a non empty String, formatted as "some/path/to/put/data".

    json

    a non empty JSON string representing the data to push.

  84. def mockPush(path: String, json: String, delay: Long): Unit

    Scala API.

    Scala API. Define successful PUSH behavior for a given (path, JSON string) couple.

    path

    a non empty String, formatted as "some/path/to/put/data".

    json

    a non empty JSON string representing the data to push.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  85. def mockPush(path: String, json: String, response: (String, String)): Unit

    Scala API.

    Scala API. Define PUSH behavior for a given (path, JSON string) couple, where given response is sent immediately.

    path

    a non empty String, formatted as "some/path/to/put/data".

    json

    a non empty JSON string representing the data to push.

    response

    a (String, String) tuple that should be null to remove some existing PUSH behavior, or should define the expected PUSH process for this (path, JSON string) couple. First element of this tuple represents successful response, second one the error message of a failing response.

  86. def mockPush(path: String, json: String, response: (String, String), delay: Long): Unit

    Scala API.

    Scala API. Define PUSH behavior for a given (path, JSON string) couple.

    path

    a non empty String, formatted as "some/path/to/put/data".

    json

    a non empty JSON string representing the data to push.

    response

    a (String, String) tuple that should be null to remove some existing PUSH behavior, or should define the expected PUSH process for this (path, JSON string) couple. First element of this tuple represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  87. def mockPushJ(): Unit

    Java API.

    Java API. Define successful PUSH behavior for any (path, JSON string) couple, where response is sent immediately.

  88. def mockPushJ(delay: Long): Unit

    Java API.

    Java API. Define successful PUSH behavior for any (path, JSON string) couple.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  89. def mockPushJ(response: Pair[String, String]): Unit

    Java API.

    Java API. Define PUSH behavior for any (path, JSON string) couple, where given response is sent immediately.

    response

    a Pair<String, String> that should be null to remove some existing PUSH behavior, or should define the expected PUSH process for this (path, JSON string) couple. First element of this pair represents successful response, second one the error message of a failing response.

  90. def mockPushJ(response: Pair[String, String], delay: Long): Unit

    Java API.

    Java API. Define PUSH behavior for any (path, JSON string) couple.

    response

    a Pair<String, String> that should be null to remove some existing PUSH behavior, or should define the expected PUSH process for this (path, JSON string) couple. First element of this pair represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  91. def mockPushJ(path: String, json: String): Unit

    Java API.

    Java API. Define successful PUSH behavior for a given (path, JSON string) couple, where response is sent immediately.

    path

    a non empty String, formatted as "some/path/to/put/data".

    json

    a non empty JSON string representing the data to push.

  92. def mockPushJ(path: String, json: String, delay: Long): Unit

    Java API.

    Java API. Define successful PUSH behavior for a given (path, JSON string) couple.

    path

    a non empty String, formatted as "some/path/to/put/data".

    json

    a non empty JSON string representing the data to push.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  93. def mockPushJ(path: String, json: String, response: Pair[String, String]): Unit

    Java API.

    Java API. Define PUSH behavior for a given (path, JSON string) couple, where given response is sent immediately.

    path

    a non empty String, formatted as "some/path/to/put/data".

    json

    a non empty JSON string representing the data to push.

    response

    a Pair<String, String> that should be null to remove some existing PUSH behavior, or should define the expected PUSH process for this (path, JSON string) couple. First element of this pair represents successful response, second one the error message of a failing response.

  94. def mockPushJ(path: String, json: String, response: Pair[String, String], delay: Long): Unit

    Java API.

    Java API. Define PUSH behavior for a given (path, JSON string) couple.

    path

    a non empty String, formatted as "some/path/to/put/data".

    json

    a non empty JSON string representing the data to push.

    response

    a Pair<String, String> that should be null to remove some existing PUSH behavior, or should define the expected PUSH process for this (path, JSON string) couple. First element of this pair represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  95. def mockPut(): Unit

    Scala API.

    Scala API. Define successful PUT behavior for any (path, JSON string) couple, where response is sent immediately.

  96. def mockPut(delay: Long): Unit

    Scala API.

    Scala API. Define successful PUT behavior for any (path, JSON string) couple.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  97. def mockPut(response: (AnyRef, String)): Unit

    Scala API.

    Scala API. Define PUT behavior for any (path, JSON string) couple, where given response is sent immediately.

    response

    a (AnyRef, String) tuple that should be null to remove some existing PUT behavior, or should define the expected PUT process for this (path, JSON string) couple. First element of this tuple represents successful response, second one the error message of a failing response.

  98. def mockPut(response: (AnyRef, String), delay: Long): Unit

    Scala API.

    Scala API. Define PUT behavior for any (path, JSON string) couple.

    response

    a (AnyRef, String) tuple that should be null to remove some existing PUT behavior, or should define the expected PUT process for this (path, JSON string) couple. First element of this tuple represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  99. def mockPut(path: String, json: String): Unit

    Scala API.

    Scala API. Define successful PUT behavior for a given (path, JSON string) couple, where response is sent immediately.

    path

    a non empty String, formatted as "some/path/to/put/data".

    json

    a non empty JSON string representing the data to put.

  100. def mockPut(path: String, json: String, delay: Long): Unit

    Scala API.

    Scala API. Define successful PUT behavior for a given (path, JSON string) couple.

    path

    a non empty String, formatted as "some/path/to/put/data".

    json

    a non empty JSON string representing the data to put.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  101. def mockPut(path: String, json: String, response: (AnyRef, String)): Unit

    Scala API.

    Scala API. Define PUT behavior for a given (path, JSON string) couple, where given response is sent immediately.

    path

    a non empty String, formatted as "some/path/to/put/data".

    json

    a non empty JSON string representing the data to put.

    response

    a (AnyRef, String) tuple that should be null to remove some existing PUT behavior, or should define the expected PUT process for this (path, JSON string) couple. First element of this tuple represents successful response, second one the error message of a failing response.

  102. def mockPut(path: String, json: String, response: (AnyRef, String), delay: Long): Unit

    Scala API.

    Scala API. Define PUT behavior for a given (path, JSON string) couple.

    path

    a non empty String, formatted as "some/path/to/put/data".

    json

    a non empty JSON string representing the data to put.

    response

    a (AnyRef, String) tuple that should be null to remove some existing PUT behavior, or should define the expected PUT process for this (path, JSON string) couple. First element of this tuple represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  103. def mockPutJ(): Unit

    Java API.

    Java API. Define successful PUT behavior for any (path, JSON string) couple, where response is sent immediately.

  104. def mockPutJ(delay: Long): Unit

    Java API.

    Java API. Define successful PUT behavior for any (path, JSON string) couple.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  105. def mockPutJ(response: Pair[AnyRef, String]): Unit

    Java API.

    Java API. Define PUT behavior for any (path, JSON string) couple, where given response is sent immediately.

    response

    a Pair<Object, String> that should be null to remove some existing PUT behavior, or should define the expected PUT process for this (path, JSON string) couple. First element of this pair represents successful response, second one the error message of a failing response.

  106. def mockPutJ(response: Pair[AnyRef, String], delay: Long): Unit

    Java API.

    Java API. Define PUT behavior for any (path, JSON string) couple.

    response

    a Pair<Object, String> that should be null to remove some existing PUT behavior, or should define the expected PUT process for this (path, JSON string) couple. First element of this pair represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  107. def mockPutJ(path: String, json: String): Unit

    Java API.

    Java API. Define successful PUT behavior for a given (path, JSON string) couple, where response is sent immediately.

    path

    a non empty String, formatted as "some/path/to/put/data".

    json

    a non empty JSON string representing the data to put.

  108. def mockPutJ(path: String, json: String, delay: Long): Unit

    Java API.

    Java API. Define successful PUT behavior for a given (path, JSON string) couple.

    path

    a non empty String, formatted as "some/path/to/put/data".

    json

    a non empty JSON string representing the data to put.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  109. def mockPutJ(path: String, json: String, response: Pair[AnyRef, String]): Unit

    Java API.

    Java API. Define PUT behavior for a given (path, JSON string) couple, where given response is sent immediately.

    path

    a non empty String, formatted as "some/path/to/put/data".

    json

    a non empty JSON string representing the data to put.

    response

    a Pair<Object, String> that should be null to remove some existing PUT behavior, or should define the expected PUT process for this (path, JSON string) couple. First element of this pair represents successful response, second one the error message of a failing response.

  110. def mockPutJ(path: String, json: String, response: Pair[AnyRef, String], delay: Long): Unit

    Java API.

    Java API. Define PUT behavior for a given (path, JSON string) couple.

    path

    a non empty String, formatted as "some/path/to/put/data".

    json

    a non empty JSON string representing the data to put.

    response

    a Pair<Object, String> that should be null to remove some existing PUT behavior, or should define the expected PUT process for this (path, JSON string) couple. First element of this pair represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  111. def mockUnlisten(): Unit

    Scala API.

    Scala API. Define successful unlisten behavior for any path, where response is sent immediately.

  112. def mockUnlisten(delay: Long): Unit

    Scala API.

    Scala API. Define successful unlisten behavior for any path.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  113. def mockUnlisten(response: (AnyRef, String)): Unit

    Scala API.

    Scala API. Define unlisten behavior for any path, where given response is sent immediately.

    response

    a (AnyRef, String) tuple that should be null to remove some existing unlisten behavior, or should define the expected unlisten process for this path. First element of this tuple represents successful response, second one the error message of a failing response.

  114. def mockUnlisten(response: (AnyRef, String), delay: Long): Unit

    Scala API.

    Scala API. Define unlisten behavior for any path.

    response

    a (AnyRef, String) tuple that should be null to remove some existing unlisten behavior, or should define the expected unlisten process for this path. First element of this tuple represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  115. def mockUnlisten(path: String): Unit

    Scala API.

    Scala API. Define successful unlisten behavior for a given path, where response is sent immediately.

    path

    a non empty String, formatted as "some/path/where/not/to/listen/anymore".

  116. def mockUnlisten(path: String, delay: Long): Unit

    Scala API.

    Scala API. Define successful unlisten behavior for a given path.

    path

    a non empty String, formatted as "some/path/where/not/to/listen/anymore".

    delay

    a Long representing the delay in milliseconds before response should be sent.

  117. def mockUnlisten(path: String, response: (AnyRef, String)): Unit

    Scala API.

    Scala API. Define unlisten behavior for a given path, where given response is sent immediately.

    path

    a non empty String, formatted as "some/path/where/not/to/listen/anymore".

    response

    a (AnyRef, String) tuple that should be null to remove some existing unlisten behavior, or should define the expected unlisten process for this path. First element of this tuple represents successful response, second one the error message of a failing response.

  118. def mockUnlisten(path: String, response: (AnyRef, String), delay: Long): Unit

    Scala API.

    Scala API. Define unlisten behavior for a given path.

    path

    a non empty String, formatted as "some/path/where/not/to/listen/anymore".

    response

    a (AnyRef, String) tuple that should be null to remove some existing unlisten behavior, or should define the expected unlisten process for this path. First element of this tuple represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  119. def mockUnlistenJ(): Unit

    Java API.

    Java API. Define successful unlisten behavior for any path, where response is sent immediately.

  120. def mockUnlistenJ(delay: Long): Unit

    Java API.

    Java API. Define successful unlisten behavior for any path.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  121. def mockUnlistenJ(response: Pair[AnyRef, String]): Unit

    Java API.

    Java API. Define unlisten behavior for any path, where response is sent immediately.

    response

    a Pair<Object, String> that should be null to remove some existing unlisten behavior, or should define the expected unlisten process for this path. First element of this pair represents successful response, second one the error message of a failing response.

  122. def mockUnlistenJ(response: Pair[AnyRef, String], delay: Long): Unit

    Java API.

    Java API. Define unlisten behavior for any path.

    response

    a Pair<Object, String> that should be null to remove some existing unlisten behavior, or should define the expected unlisten process for this path. First element of this pair represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  123. def mockUnlistenJ(path: String): Unit

    Java API.

    Java API. Define successful unlisten behavior for a given path, where response is sent immediately.

    path

    a non empty String, formatted as "some/path/where/not/to/listen/anymore".

  124. def mockUnlistenJ(path: String, delay: Long): Unit

    Java API.

    Java API. Define successful unlisten behavior for a given path.

    path

    a non empty String, formatted as "some/path/where/not/to/listen/anymore".

    delay

    a Long representing the delay in milliseconds before response should be sent.

  125. def mockUnlistenJ(path: String, response: Pair[AnyRef, String]): Unit

    Java API.

    Java API. Define unlisten behavior for a given path, where given response is sent immediately.

    path

    a non empty String, formatted as "some/path/where/not/to/listen/anymore".

    response

    a Pair<Object, String> that should be null to remove some existing unlisten behavior, or should define the expected unlisten process for this path. First element of this pair represents successful response, second one the error message of a failing response.

  126. def mockUnlistenJ(path: String, response: Pair[AnyRef, String], delay: Long): Unit

    Java API.

    Java API. Define unlisten behavior for a given path.

    path

    a non empty String, formatted as "some/path/where/not/to/listen/anymore".

    response

    a Pair<Object, String> that should be null to remove some existing unlisten behavior, or should define the expected unlisten process for this path. First element of this pair represents successful response, second one the error message of a failing response.

    delay

    a Long representing the delay in milliseconds before response should be sent.

  127. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  128. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  129. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  130. def once(path: String): Future[String]

    Scala API.

    Scala API. Mock the Datasync 'once' method. This method is called by any application under test instead of DatasyncClient.once method.

    path

    the path where to retrieve data, formatted as "some/path/where/to/retrieve/data".

    returns

    a Future[String] that may fail if operation fails.

    Definition Classes
    MockDatasyncClientDatasyncClient
  131. def onceJ(path: String): CompletionStage[String]

    Java API.

    Java API. Mock the Datasync 'onceJ' method. This method is called by any application under test * instead of DatasyncClient.onceJ method.

    path

    the path where to retrieve data, formatted as "some/path/where/to/retrieve/data".

    returns

    a CompletionStage<String> that may fail if operation fails.

    Definition Classes
    MockDatasyncClientDatasyncClient
  132. def push(path: String, json: String): Future[String]

    Scala API.

    Scala API. Mock the Datasync 'push' method. This method is called by any application under test instead of DatasyncClient.push method.

    path

    the path where to push data on that application, formatted as "some/path/to/push/data". If the path does not exist, it will be created in the application's tree. The path is suffixed with a randomly generated level (something like '-KwAf_EG49lohVcG7grO') before data is stored in it. This may be useful to store statistics, for instance.

    json

    a JSON string representing the data to push.

    returns

    a Future[String] containing the unique id added to the path.

    Definition Classes
    MockDatasyncClientDatasyncClient
  133. def pushJ(path: String, json: String): CompletionStage[String]

    Java API.

    Java API. Mock the Datasync 'pushJ' method. This method is called by any application under test instead of DatasyncClient.pushJ method.

    path

    the path where to push data on that application, formatted as "some/path/to/push/data". If the path does not exist, it will be created in the application's tree. The path is suffixed with a randomly generated level (something like '-KwAf_EG49lohVcG7grO') before data is stored in it. This may be useful to store statistics, for instance.

    json

    a JSON string representing the data to push.

    returns

    a CompletionStage<String> containing the unique id added to the path.

    Definition Classes
    MockDatasyncClientDatasyncClient
  134. def put(path: String, json: String): Future[Unit]

    Scala API.

    Scala API. Mock the Datasync 'put' method. This method is called by any application under test instead of DatasyncClient.put method.

    path

    the path where to put data on that application, formatted as "some/path/to/put/data". If the path does not exist, it will be created in the application's tree.

    json

    a JSON string representing the data to put. Notice that existing data, if any, is overwritten by the data to put.

    returns

    a Future[Unit] that may fail if operation fails.

    Definition Classes
    MockDatasyncClientDatasyncClient
  135. def putJ(path: String, json: String): CompletionStage[Unit]

    Java API.

    Java API. Mock the Datasync 'putJ' method. This method is called by any application under test instead of DatasyncClient.putJ method.

    path

    the path where to put data on that application, formatted as "some/path/to/put/data". If the path does not exist, it will be created in the application's tree.

    json

    a JSON string representing the data to put.

    returns

    a CompletionStage<BoxedUnit> that may fail if operation fails.

    Definition Classes
    MockDatasyncClientDatasyncClient
  136. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  137. def toString(): String
    Definition Classes
    AnyRef → Any
  138. def unlisten(path: String): Future[Unit]

    Scala API.

    Scala API. Mock the Datasync 'unlisten' method. This method is called by any application under test instead of DatasyncClient.unlisten method.

    path

    the path where to stop listening to, formatted as "some/path/where/to/stop/listening".

    returns

    a Future[Unit] that may fail if operation fails.

    Definition Classes
    MockDatasyncClientDatasyncClient
  139. def unlistenJ(path: String): CompletionStage[Unit]

    Java API.

    Java API. Mock the Datasync 'unlistenJ' method. This method is called by any application under test instead of DatasyncClient.unlistenJ method.

    path

    the path where to stop listening to, formatted as "some/path/where/to/stop/listening".

    returns

    a CompletionStage<BoxedUnit> that may fail if operation fails.

    Definition Classes
    MockDatasyncClientDatasyncClient
  140. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  141. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  142. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from LazyLogging

Inherited from DatasyncClient

Inherited from AnyRef

Inherited from Any

Ungrouped