<commit_before>package org.sagebionetworks.bridge.sdk.integration;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.sagebionetworks.bridge.rest.api.AssessmentsApi;
import org.sagebionetworks.bridge.rest.api.OrganizationsApi;
import org.sagebionetworks.bridge.rest.api.PermissionsApi;
import org.sagebionetworks.bridge.rest.api.StudiesApi;
import org.sagebionetworks.bridge.rest.exceptions.ConcurrentModificationException;
import org.sagebionetworks.bridge.rest.exceptions.ConstraintViolationException;
import org.sagebionetworks.bridge.rest.exceptions.EntityNotFoundException;
import org.sagebionetworks.bridge.rest.model.AccessLevel;
import org.sagebionetworks.bridge.rest.model.Assessment;
import org.sagebionetworks.bridge.rest.model.EntityType;
import org.sagebionetworks.bridge.rest.model.Organization;
import org.sagebionetworks.bridge.rest.model.Permission;
import org.sagebionetworks.bridge.rest.model.PermissionDetail;
import org.sagebionetworks.bridge.rest.model.Role;
import org.sagebionetworks.bridge.rest.model.Study;
import org.sagebionetworks.bridge.user.TestUser;
import org.sagebionetworks.bridge.user.TestUserHelper;

import java.util.List;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.sagebionetworks.bridge.rest.model.AccessLevel.ADMIN;
import static org.sagebionetworks.bridge.rest.model.AccessLevel.DELETE;
import static org.sagebionetworks.bridge.rest.model.AccessLevel.EDIT;
import static org.sagebionetworks.bridge.rest.model.AccessLevel.LIST;
import static org.sagebionetworks.bridge.rest.model.AccessLevel.READ;
import static org.sagebionetworks.bridge.rest.model.EntityType.ASSESSMENT;
import static org.sagebionetworks.bridge.rest.model.EntityType.ORGANIZATION;
import static org.sagebionetworks.bridge.rest.model.EntityType.PARTICIPANTS;
import static org.sagebionetworks.bridge.rest.model.EntityType.STUDY;
import static org.sagebionetworks.bridge.rest.model.EntityType.STUDY_PI;
import static org.sagebionetworks.bridge.sdk.integration.Tests.getElement;

public class PermissionsTest {
    
    private TestUser admin;<commit_msg>Removing unused import<commit_after>package org.sagebionetworks.bridge.sdk.integration;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.sagebionetworks.bridge.rest.api.AssessmentsApi;
import org.sagebionetworks.bridge.rest.api.OrganizationsApi;
import org.sagebionetworks.bridge.rest.api.PermissionsApi;
import org.sagebionetworks.bridge.rest.api.StudiesApi;
import org.sagebionetworks.bridge.rest.exceptions.ConcurrentModificationException;
import org.sagebionetworks.bridge.rest.exceptions.ConstraintViolationException;
import org.sagebionetworks.bridge.rest.exceptions.EntityNotFoundException;
import org.sagebionetworks.bridge.rest.model.AccessLevel;
import org.sagebionetworks.bridge.rest.model.Assessment;
import org.sagebionetworks.bridge.rest.model.EntityType;
import org.sagebionetworks.bridge.rest.model.Organization;
import org.sagebionetworks.bridge.rest.model.Permission;
import org.sagebionetworks.bridge.rest.model.PermissionDetail;
import org.sagebionetworks.bridge.rest.model.Study;
import org.sagebionetworks.bridge.user.TestUser;
import org.sagebionetworks.bridge.user.TestUserHelper;

import java.util.List;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.sagebionetworks.bridge.rest.model.AccessLevel.ADMIN;
import static org.sagebionetworks.bridge.rest.model.AccessLevel.DELETE;
import static org.sagebionetworks.bridge.rest.model.AccessLevel.EDIT;
import static org.sagebionetworks.bridge.rest.model.AccessLevel.LIST;
import static org.sagebionetworks.bridge.rest.model.AccessLevel.READ;
import static org.sagebionetworks.bridge.rest.model.EntityType.ASSESSMENT;
import static org.sagebionetworks.bridge.rest.model.EntityType.ORGANIZATION;
import static org.sagebionetworks.bridge.rest.model.EntityType.PARTICIPANTS;
import static org.sagebionetworks.bridge.rest.model.EntityType.STUDY;
import static org.sagebionetworks.bridge.rest.model.EntityType.STUDY_PI;
import static org.sagebionetworks.bridge.sdk.integration.Tests.getElement;

public class PermissionsTest {
    
    private TestUser admin;
{'fraction_non_alphanumeric': 0.09511456982274102, 'fraction_numerical': 0.0, 'mean_word_length': 6.950171821305842, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1893585', 'n_tokens_mistral': 1517, 'n_tokens_neox': 1509, 'n_words': 201}