Skip to content

CampusLabs/orgsync-api-java

Repository files navigation

Java OrgSync API Client

Build Status

Java REST client for the OrgSync API Version 2

Dev setup

  • Eclipse: run gradle eclipse to create the eclipse files and then import into eclipse
  • IntelliJ: read this
  • NetBeans: read this
  • Others probably available. Check out the gradle documentation

Integration Tests

To run integration tests you need a running instance of the OrgSync server. The db_template.conf file provides the layout of the community we are testing against. We need to load a staging database for the OrgSync server to be running against. Here are the steps:

  • gradle generateDbTemplate to create a db_template.json in the build/ directory
  • Make this file available to orgsync so you can create the template db (see DB_TEMPLATE.md in the OrgSync repo)
  • Start the OrgSync server pointing at this database
  • gradle integrationTest to run the tests against localhost:8080