payload: {"action":"created","issue":{"url":"https://api.github.com/repos/nats-io/nats.java/issues/183","repository_url":"https://api.github.com/repos/nats-io/nats.java","labels_url":"https://api.github.com/repos/nats-io/nats.java/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/nats-io/nats.java/issues/183/comments","events_url":"https://api.github.com/repos/nats-io/nats.java/issues/183/events","html_url":"https://github.com/nats-io/nats.java/issues/183","id":370012842,"node_id":"MDU6SXNzdWUzNzAwMTI4NDI=","number":183,"title":"[question] Embedded nats for java projects?","user":{"login":"kkocel","id":454412,"node_id":"MDQ6VXNlcjQ1NDQxMg==","avatar_url":"https://avatars2.githubusercontent.com/u/454412?v=4","gravatar_id":"","url":"https://api.github.com/users/kkocel","html_url":"https://github.com/kkocel","followers_url":"https://api.github.com/users/kkocel/followers","following_url":"https://api.github.com/users/kkocel/following{/other_user}","gists_url":"https://api.github.com/users/kkocel/gists{/gist_id}","starred_url":"https://api.github.com/users/kkocel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkocel/subscriptions","organizations_url":"https://api.github.com/users/kkocel/orgs","repos_url":"https://api.github.com/users/kkocel/repos","events_url":"https://api.github.com/users/kkocel/events{/privacy}","received_events_url":"https://api.github.com/users/kkocel/received_events","type":"User","site_admin":false},"labels":[{"id":344430915,"node_id":"MDU6TGFiZWwzNDQ0MzA5MTU=","url":"https://api.github.com/repos/nats-io/nats.java/labels/idea","name":"idea","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-10-15T06:12:55Z","updated_at":"2019-08-08T07:59:26Z","closed_at":null,"author_association":"NONE","body":"In other solutions (eg mongo: https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo) there are libraries that allow to run embedded version of server in order to write integration tests that check things like serialization, correct setup of subjects etc. So my question is - is there such library available for nats?\r\nIt would be a great idea to have such library - now in my tests just need to mock whole java-nats which does not give me any clue whether this logic works :)"},"comment":{"url":"https://api.github.com/repos/nats-io/nats.java/issues/comments/519412293","html_url":"https://github.com/nats-io/nats.java/issues/183#issuecomment-519412293","issue_url":"https://api.github.com/repos/nats-io/nats.java/issues/183","id":519412293,"node_id":"MDEyOklzc3VlQ29tbWVudDUxOTQxMjI5Mw==","user":{"login":"CarloWakefield","id":16901569,"node_id":"MDQ6VXNlcjE2OTAxNTY5","avatar_url":"https://avatars3.githubusercontent.com/u/16901569?v=4","gravatar_id":"","url":"https://api.github.com/users/CarloWakefield","html_url":"https://github.com/CarloWakefield","followers_url":"https://api.github.com/users/CarloWakefield/followers","following_url":"https://api.github.com/users/CarloWakefield/following{/other_user}","gists_url":"https://api.github.com/users/CarloWakefield/gists{/gist_id}","starred_url":"https://api.github.com/users/CarloWakefield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CarloWakefield/subscriptions","organizations_url":"https://api.github.com/users/CarloWakefield/orgs","repos_url":"https://api.github.com/users/CarloWakefield/repos","events_url":"https://api.github.com/users/CarloWakefield/events{/privacy}","received_events_url":"https://api.github.com/users/CarloWakefield/received_events","type":"User","site_admin":false},"created_at":"2019-08-08T07:59:26Z","updated_at":"2019-08-08T07:59:26Z","author_association":"NONE","body":"> The tests use this class - https://github.com/nats-io/java-nats/blob/master/src/test/java/io/nats/client/NatsTestServer.java which hopefully does what you want. It runs a gnatsd - see the env var for setting the path if necessary - and can be set to debug mode, or to take a config file or custom config settings.\r\n> \r\n> There is also https://github.com/nats-io/java-nats/blob/master/src/test/java/io/nats/client/NatsServerProtocolMock.java which is a fake server but performs some of the protocol so we can test raw protocol messages.\r\n\r\nMay it be that `NatsTestServer.java` is no longer working?\r\nIt still uses the `gnatsd` command, but according to the release notes https://github.com/nats-io/nats-server/releases/tag/v2.0.0 and my current MacOS setup the command is now named `nats-server`.\r\n\r\nIs my analysis correct?"}}
other: {"actor":{"display_login":"CarloWakefield"}}