27 lines
775 B
Java
27 lines
775 B
Java
package org.gcube.application.geoportal.service;
|
|
|
|
import org.gcube.application.geoportal.common.rest.InterfaceConstants;
|
|
import org.junit.Test;
|
|
|
|
import javax.ws.rs.client.WebTarget;
|
|
import javax.ws.rs.core.Response;
|
|
|
|
import static org.junit.Assert.assertEquals;
|
|
|
|
public class InexistentProfileTests extends AbstractProfiledDocumentsTests {
|
|
|
|
@Override
|
|
protected WebTarget baseTarget() {
|
|
String testProfileId="profiledConcessioni";
|
|
return target(InterfaceConstants.Methods.PROJECTS).path(testProfileId);
|
|
}
|
|
|
|
// GET
|
|
@Test
|
|
public void testMissingProfile(){
|
|
Response resp = target(InterfaceConstants.Methods.PROJECTS)
|
|
.path("non-existent-profile").request().get();
|
|
assertEquals(404,resp.getStatus());
|
|
}
|
|
}
|