Skip to content
Snippets Groups Projects
Commit c509141e authored by Shreya Shah's avatar Shreya Shah
Browse files

Schema test refactoring

parent e0b718e8
Branches
Tags
1 merge request!529Schema test refactoring
File moved
package org.opengroup.osdu.schema.security;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertEquals;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
......@@ -12,13 +12,12 @@ import org.mockito.Mockito;
import org.opengroup.osdu.core.common.entitlements.EntitlementsService;
import org.opengroup.osdu.core.common.entitlements.IEntitlementsFactory;
import org.opengroup.osdu.core.common.logging.JaxRsDpsLog;
import org.opengroup.osdu.core.common.model.entitlements.EntitlementsException;
import org.opengroup.osdu.core.common.model.http.DpsHeaders;
import org.opengroup.osdu.schema.exceptions.BadRequestException;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
public class AuthorizationFilterSAtest {
public class AuthorizationFilterSATest {
@Mock
IEntitlementsFactory entitlementsFactory;
......@@ -42,7 +41,7 @@ public class AuthorizationFilterSAtest {
@Test
public void testRuntimeException_when_DataPartitionIsPresentInSystemHeader() throws BadRequestException, EntitlementsException {
public void testRuntimeException_when_DataPartitionIsPresentInSystemHeader() {
Mockito.when(headers.getAuthorization()).thenReturn("test");
Mockito.when(headers.getPartitionId()).thenReturn("test");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment