This small tutorial will show you how to establish a programmatic connection to Blue Mind core server with its client APIs.
To do that, you will need to the jar files from the client SDK.
For the purpose of this tutorial, we will setup an eclipse project with junit tests that connect to Blue Mind APIs.
In eclipse menus, select File, New, Project...
Then select "Java project"
And fill in a project name (eg. net.bluemind.tutos.first)
Then click next
In the libraries tab, select add external jars
And select all the jars from our Blue Mind APIs zip
Then select Add library
Junit, as shown belown
And then finish when your setup looks like this:
Now that your project setup is fine, you can create our first unit test that will import Blue Mind APIs. Select the src directory in your brand new project, right click and select "new > class" as shown below.
Then fill the form as indicated in the next screenshot.
An editor opens with the following empty class:
We will add some code into it to ensure everything can run:
To run our (over)simple test, we will right click on our test method in the eclipse outline and select "run as junit test".
An eclipse view should show successfull test execution