Cleanup code for variable usage. Remvoed dummy test classes.

This commit is contained in:
Admin
2015-09-29 08:48:27 -05:00
parent af1777aeb3
commit 2789d8c180
6 changed files with 17 additions and 57 deletions

View File

@@ -54,11 +54,10 @@ public class HueMulator {
mapper = new ObjectMapper(); //armzilla: work around Echo incorrect content type and breaking mapping. Map manually
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
repository = aDeviceRepository;
setupEndpoints();
}
// This function sets up the sparkjava rest calls for the hue api
private void setupEndpoints() {
public void setupServer() {
log.info("Hue emulator service started....");
// http://ip_address:port/api/{userId}/lights returns json objects of all lights configured
get(HUE_CONTEXT + "/:userid/lights", "application/json", (request, response) -> {