Added testCase for List All Movies and Add a Movie

This commit is contained in:
Giuseppe Bueti
2016-01-30 20:39:28 +01:00
committed by giuseppe.bueti
parent ae772727ce
commit 09c853477e
8 changed files with 184 additions and 31 deletions

View File

@@ -0,0 +1,40 @@
package com.baeldung.server;
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* Created by Admin on 29/01/2016.
*/
@ApplicationPath("/rest")
public class RestEasyServices extends Application {
private Set<Object> singletons = new HashSet<Object>();
public RestEasyServices() {
singletons.add(new MovieCrudService());
}
@Override
public Set<Object> getSingletons() {
return singletons;
}
@Override
public Set<Class<?>> getClasses() {
return super.getClasses();
}
@Override
public Map<String, Object> getProperties() {
return super.getProperties();
}
}