{"action":"created","issue":{"url":"https://api.github.com/repos/ReactiveX/RxScala/issues/167","labels_url":"https://api.github.com/repos/ReactiveX/RxScala/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/RxScala/issues/167/comments","events_url":"https://api.github.com/repos/ReactiveX/RxScala/issues/167/events","html_url":"https://github.com/ReactiveX/RxScala/issues/167","id":82500219,"number":167,"title":"Observers constructor for tests","user":{"login":"hermanbanken","id":791189,"avatar_url":"https://avatars.githubusercontent.com/u/791189?v=3","gravatar_id":"","url":"https://api.github.com/users/hermanbanken","html_url":"https://github.com/hermanbanken","followers_url":"https://api.github.com/users/hermanbanken/followers","following_url":"https://api.github.com/users/hermanbanken/following{/other_user}","gists_url":"https://api.github.com/users/hermanbanken/gists{/gist_id}","starred_url":"https://api.github.com/users/hermanbanken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hermanbanken/subscriptions","organizations_url":"https://api.github.com/users/hermanbanken/orgs","repos_url":"https://api.github.com/users/hermanbanken/repos","events_url":"https://api.github.com/users/hermanbanken/events{/privacy}","received_events_url":"https://api.github.com/users/hermanbanken/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-29T16:44:49Z","updated_at":"2015-05-30T18:07:32Z","closed_at":null,"body":"Looking at [examples/src/test/scala/rx/lang/scala/examples/TestSchedulerExample.scala](https://github.com/ReactiveX/RxScala/blob/0.24.0/examples/src/test/scala/rx/lang/scala/examples/TestSchedulerExample.scala#L38) I figured I could create my Observer like this:\r\n\r\n```    \r\nval observer = mock(classOf[rx.Observer[Long]])\r\nval obs: rx.lang.scala.Observer = Observer(new rx.observers.TestObserver(observer))\r\n```\r\n\r\nBut it seems that this is not the case as [this `apply` method](https://github.com/ReactiveX/RxScala/blob/0.x/src/main/scala/rx/lang/scala/Observer.scala#L66) is private. \r\n\r\nAre we supposed to not write tests? Or am I missing something?\r\n\r\nPS: The documentation for TestScheduler published at [reactivex.io](http://reactivex.io/rxscala/scaladoc/index.html#rx.lang.scala.schedulers.TestScheduler) shows the same example, which uses more unknown things like `inOrder` with a single argument. If I take an up to date Mockito version, this method does have multiple arguments... would be helpful to either fix this or document the version."},"comment":{"url":"https://api.github.com/repos/ReactiveX/RxScala/issues/comments/107072627","html_url":"https://github.com/ReactiveX/RxScala/issues/167#issuecomment-107072627","issue_url":"https://api.github.com/repos/ReactiveX/RxScala/issues/167","id":107072627,"user":{"login":"hermanbanken","id":791189,"avatar_url":"https://avatars.githubusercontent.com/u/791189?v=3","gravatar_id":"","url":"https://api.github.com/users/hermanbanken","html_url":"https://github.com/hermanbanken","followers_url":"https://api.github.com/users/hermanbanken/followers","following_url":"https://api.github.com/users/hermanbanken/following{/other_user}","gists_url":"https://api.github.com/users/hermanbanken/gists{/gist_id}","starred_url":"https://api.github.com/users/hermanbanken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hermanbanken/subscriptions","organizations_url":"https://api.github.com/users/hermanbanken/orgs","repos_url":"https://api.github.com/users/hermanbanken/repos","events_url":"https://api.github.com/users/hermanbanken/events{/privacy}","received_events_url":"https://api.github.com/users/hermanbanken/received_events","type":"User","site_admin":false},"created_at":"2015-05-30T18:07:32Z","updated_at":"2015-05-30T18:07:32Z","body":"@samuelgruetter, I made a pull request for this, see #168 "}}