target stringlengths 20 113k | src_fm stringlengths 11 86.3k | src_fm_fc stringlengths 21 86.4k | src_fm_fc_co stringlengths 30 86.4k | src_fm_fc_ms stringlengths 42 86.8k | src_fm_fc_ms_ff stringlengths 43 86.8k |
|---|---|---|---|---|---|
@Betamax(tape = "dataSets_shouldThrowDriverExceptionForAssingRepresentation") @Test(expected = DriverException.class) public void shouldThrowDriverExceptionForAssingRepresentation() throws MCSException { String providerId = "Provider001"; String dataSetId = "dataset000015"; String cloudId = "1DZ6HTS415W"; String repres... | public void assignRepresentationToDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) .resolveTemplate(DATA_SET_ID, dataSetId);... | DataSetServiceClient extends MCSClient { public void assignRepresentationToDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) ... | DataSetServiceClient extends MCSClient { public void assignRepresentationToDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) ... | DataSetServiceClient extends MCSClient { public void assignRepresentationToDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) ... | DataSetServiceClient extends MCSClient { public void assignRepresentationToDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) ... |
@Betamax(tape = "dataSets_shouldThrowRepresentationNotExistsForAssingRepresentation") @Test(expected = RepresentationNotExistsException.class) public void shouldThrowRepresentationNotExistsForAssingRepresentation() throws MCSException { String providerId = "Provider001"; String dataSetId = "dataset000016"; String cloud... | public void assignRepresentationToDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) .resolveTemplate(DATA_SET_ID, dataSetId);... | DataSetServiceClient extends MCSClient { public void assignRepresentationToDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) ... | DataSetServiceClient extends MCSClient { public void assignRepresentationToDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) ... | DataSetServiceClient extends MCSClient { public void assignRepresentationToDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) ... | DataSetServiceClient extends MCSClient { public void assignRepresentationToDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) ... |
@Betamax(tape = "dataSets_shouldThrowDataSetNotExistsForAssingRepresentation") @Test(expected = DataSetNotExistsException.class) public void shouldThrowDataSetNotExistsForAssingRepresentation() throws MCSException { String providerId = "Provider001"; String dataSetId = "noSuchDataSet"; String cloudId = "1DZ6HTS415W"; S... | public void assignRepresentationToDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) .resolveTemplate(DATA_SET_ID, dataSetId);... | DataSetServiceClient extends MCSClient { public void assignRepresentationToDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) ... | DataSetServiceClient extends MCSClient { public void assignRepresentationToDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) ... | DataSetServiceClient extends MCSClient { public void assignRepresentationToDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) ... | DataSetServiceClient extends MCSClient { public void assignRepresentationToDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) ... |
@Betamax(tape = "dataSets_shouldUnassignRepresentation") @Test public void shouldUnassignRepresentation() throws MCSException { String providerId = "Provider002"; String dataSetId = "dataset000002"; String cloudId = "1DZ6HTS415W"; String representationName = "schema66"; String representationVersion = "66404040-0307-11e... | public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) .resolveTemplate(DATA_SET_ID, dataSet... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... |
@Betamax(tape = "dataSets_shouldUnassignNotAssignedRepresentation") @Test public void shouldUnassignNotAssignedRepresentation() throws MCSException { String providerId = "Provider002"; String dataSetId = "dataset000002"; String cloudId = "1DZ6HTS415W"; String representationName = "schema66"; String representationVersio... | public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) .resolveTemplate(DATA_SET_ID, dataSet... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... |
@Test public void moreLikeThisTest() throws IndexerException, IOException { boolean ok = false; int i = 0; do { try { XContentBuilder mapping = XContentFactory.jsonBuilder().startObject().startObject("type1").startObject("properties") .startObject("field3").field("type", "string").field("term_vector", "yes") .endObject... | @Override public SearchResult getMoreLikeThis(String documentId) throws ConnectionException, IndexerException { return getMoreLikeThis(documentId, null, MAX_QUERY_TERMS, MIN_TERM_FREQ, MIN_DOC_FREQ, MAX_DOC_FREQ, MIN_WORD_LENGTH, MAX_WORD_LENGTH, PAGE_SIZE, 0, false); } | Elasticsearch implements Indexer { @Override public SearchResult getMoreLikeThis(String documentId) throws ConnectionException, IndexerException { return getMoreLikeThis(documentId, null, MAX_QUERY_TERMS, MIN_TERM_FREQ, MIN_DOC_FREQ, MAX_DOC_FREQ, MIN_WORD_LENGTH, MAX_WORD_LENGTH, PAGE_SIZE, 0, false); } } | Elasticsearch implements Indexer { @Override public SearchResult getMoreLikeThis(String documentId) throws ConnectionException, IndexerException { return getMoreLikeThis(documentId, null, MAX_QUERY_TERMS, MIN_TERM_FREQ, MIN_DOC_FREQ, MAX_DOC_FREQ, MIN_WORD_LENGTH, MAX_WORD_LENGTH, PAGE_SIZE, 0, false); } Elasticsearch(... | Elasticsearch implements Indexer { @Override public SearchResult getMoreLikeThis(String documentId) throws ConnectionException, IndexerException { return getMoreLikeThis(documentId, null, MAX_QUERY_TERMS, MIN_TERM_FREQ, MIN_DOC_FREQ, MAX_DOC_FREQ, MIN_WORD_LENGTH, MAX_WORD_LENGTH, PAGE_SIZE, 0, false); } Elasticsearch(... | Elasticsearch implements Indexer { @Override public SearchResult getMoreLikeThis(String documentId) throws ConnectionException, IndexerException { return getMoreLikeThis(documentId, null, MAX_QUERY_TERMS, MIN_TERM_FREQ, MIN_DOC_FREQ, MAX_DOC_FREQ, MIN_WORD_LENGTH, MAX_WORD_LENGTH, PAGE_SIZE, 0, false); } Elasticsearch(... |
@Betamax(tape = "dataSets_shouldUnassignRepresentationWithVersion") @Test public void shouldUnassignRepresentationWithVersion() throws MCSException { String providerId = "Provider001"; String dataSetId = "dataset000023"; String cloudId = "1DZ6HTS415W"; String representationName = "schema66"; String representationVersio... | public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) .resolveTemplate(DATA_SET_ID, dataSet... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... |
@Betamax(tape = "dataSets_shouldUnassignNonExistingRepresentation") @Test public void shouldUnassignNonExistingRepresentation() throws MCSException { String providerId = "Provider002"; String dataSetId = "dataset000007"; String cloudId = "1DZ6HTS415W"; String representationName = "noSuchSchema"; String representationVe... | public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) .resolveTemplate(DATA_SET_ID, dataSet... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... |
@Betamax(tape = "dataSets_shouldThrowDriverExceptionForUnassingRepresentation") @Test(expected = DriverException.class) public void shouldThrowDriverExceptionForUnassingRepresentation() throws MCSException { String providerId = "Provider001"; String dataSetId = "dataset000058"; String cloudId = "1DZ6HTS415W"; String re... | public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) .resolveTemplate(DATA_SET_ID, dataSet... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... |
@Betamax(tape = "dataSets_shouldThrowDataSetNotExistsForUnassingRepresentation") @Test(expected = DataSetNotExistsException.class) public void shouldThrowDataSetNotExistsForUnassingRepresentation() throws MCSException { String providerId = "Provider002"; String dataSetId = "noSuchDataSet"; String cloudId = "1DZ6HTS415W... | public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, providerId) .resolveTemplate(DATA_SET_ID, dataSet... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... | DataSetServiceClient extends MCSClient { public void unassignRepresentationFromDataSet( String providerId, String dataSetId, String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_ASSIGNMENTS) .resolveTemplate(PROVIDER_ID, provider... |
@Betamax(tape = "dataSets_shouldProvideDataSetIterator") @Test public void shouldProvideDataSetIterator() throws MCSException { String providerId = "Provider001"; int numberOfDataSets = 200; DataSetServiceClient instance = new DataSetServiceClient(baseUrl); DataSetIterator iterator = instance.getDataSetIteratorForProvi... | public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } | DataSetServiceClient extends MCSClient { public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } } | DataSetServiceClient extends MCSClient { public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServiceClient(String baseUrl, final String u... | DataSetServiceClient extends MCSClient { public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServiceClient(String baseUrl, final String u... | DataSetServiceClient extends MCSClient { public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServiceClient(String baseUrl, final String u... |
@Betamax(tape = "dataSets_shouldProvideEmptyDataSetIteratorWhenNoSuchProvider") @Test public void shouldProvideEmptyDataSetIteratorWhenNoSuchProvider() throws MCSException { String providerId = "noSuchProvider"; DataSetServiceClient instance = new DataSetServiceClient(baseUrl); DataSetIterator iterator = instance.getDa... | public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } | DataSetServiceClient extends MCSClient { public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } } | DataSetServiceClient extends MCSClient { public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServiceClient(String baseUrl, final String u... | DataSetServiceClient extends MCSClient { public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServiceClient(String baseUrl, final String u... | DataSetServiceClient extends MCSClient { public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServiceClient(String baseUrl, final String u... |
@Betamax(tape = "dataSets_shouldProvideDataSetIteratorThatThrowsNoSuchElementException") @Test(expected = NoSuchElementException.class) public void shouldProvideDataSetIteratorThatThrowsNoSuchElementException() throws MCSException { String providerId = "Provider001"; int numberOfDataSets = 200; DataSetServiceClient ins... | public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } | DataSetServiceClient extends MCSClient { public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } } | DataSetServiceClient extends MCSClient { public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServiceClient(String baseUrl, final String u... | DataSetServiceClient extends MCSClient { public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServiceClient(String baseUrl, final String u... | DataSetServiceClient extends MCSClient { public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServiceClient(String baseUrl, final String u... |
@Betamax(tape = "dataSets_shouldProvideDataSetIteratorThatThrowsDriverException") @Test(expected = DriverException.class) public void shouldProvideDataSetIteratorThatThrowsDriverException() throws MCSException { String providerId = "Provider001"; int numberOfDataSets = 200; DataSetServiceClient instance = new DataSetSe... | public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } | DataSetServiceClient extends MCSClient { public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } } | DataSetServiceClient extends MCSClient { public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServiceClient(String baseUrl, final String u... | DataSetServiceClient extends MCSClient { public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServiceClient(String baseUrl, final String u... | DataSetServiceClient extends MCSClient { public DataSetIterator getDataSetIteratorForProvider(String providerId) { return new DataSetIterator(this, providerId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServiceClient(String baseUrl, final String u... |
@Betamax(tape = "dataSets_shouldProvideRepresentationIterator") @Test public void shouldProvideRepresentationIterator() throws MCSException { String providerId = "Provider001"; String dataSetId = "dataset3"; int numberOfRepresentations = 200; DataSetServiceClient instance = new DataSetServiceClient(baseUrl); Representa... | public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } } | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServi... | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServi... | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServi... |
@Betamax(tape = "dataSets_shouldProvideRepresentationIteratorThatThrowsDataSetNotExistsExceptionWhenNoDataSet") @Test(expected = DataSetNotExistsException.class) public void shouldProvideRepresentationIteratorThatThrowsExceptionWhenNoDataSet() throws Exception, Throwable { String providerId = "Provider001"; String data... | public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } } | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServi... | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServi... | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServi... |
@Test public void testCreateCloudUser() throws Exception { Mockito.doReturn(new User(username, password)).when(authenticationService).getUser(username); mockMvc.perform(post("/create-user") .param(AASParamConstants.P_USER_NAME, username) .param(AASParamConstants.P_PASS_TOKEN, password)) .andExpect(status().isOk()); } | @PostMapping(value = "/create-user", produces = {MediaType.APPLICATION_JSON_VALUE, MediaType.APPLICATION_XML_VALUE}) @PreAuthorize("hasRole('ROLE_ADMIN')") public ResponseEntity<String> createCloudUser( @RequestParam(AASParamConstants.P_USER_NAME) String username, @RequestParam(AASParamConstants.P_PASS_TOKEN) String pa... | AuthenticationResource { @PostMapping(value = "/create-user", produces = {MediaType.APPLICATION_JSON_VALUE, MediaType.APPLICATION_XML_VALUE}) @PreAuthorize("hasRole('ROLE_ADMIN')") public ResponseEntity<String> createCloudUser( @RequestParam(AASParamConstants.P_USER_NAME) String username, @RequestParam(AASParamConstant... | AuthenticationResource { @PostMapping(value = "/create-user", produces = {MediaType.APPLICATION_JSON_VALUE, MediaType.APPLICATION_XML_VALUE}) @PreAuthorize("hasRole('ROLE_ADMIN')") public ResponseEntity<String> createCloudUser( @RequestParam(AASParamConstants.P_USER_NAME) String username, @RequestParam(AASParamConstant... | AuthenticationResource { @PostMapping(value = "/create-user", produces = {MediaType.APPLICATION_JSON_VALUE, MediaType.APPLICATION_XML_VALUE}) @PreAuthorize("hasRole('ROLE_ADMIN')") public ResponseEntity<String> createCloudUser( @RequestParam(AASParamConstants.P_USER_NAME) String username, @RequestParam(AASParamConstant... | AuthenticationResource { @PostMapping(value = "/create-user", produces = {MediaType.APPLICATION_JSON_VALUE, MediaType.APPLICATION_XML_VALUE}) @PreAuthorize("hasRole('ROLE_ADMIN')") public ResponseEntity<String> createCloudUser( @RequestParam(AASParamConstants.P_USER_NAME) String username, @RequestParam(AASParamConstant... |
@Betamax(tape = "dataSets_shouldProvideRepresentationIteratorThatThrowsDataSetNotExistsExceptionWhenNoProvider") @Test(expected = DataSetNotExistsException.class) public void shouldProvideRepresentationIteratorThatThrowsExceptionWhenNoProvider() throws MCSException, Throwable { String providerId = "noSuchProvider"; Str... | public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } } | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServi... | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServi... | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServi... |
@Betamax(tape = "dataSets_shouldProvideRepresentationIteratorThatThrowsNoSuchElementException") @Test(expected = NoSuchElementException.class) public void shouldProvideRepresentationIteratorThatThrowsNoSuchElementException() throws MCSException { String providerId = "Provider001"; String dataSetId = "dataset3"; int num... | public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } } | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServi... | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServi... | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServi... |
@Betamax(tape = "dataSets_shouldProvideRepresentationIteratorThatThrowsDriverException") @Test(expected = DriverException.class) public void shouldProvideRepresentationIteratorThatThrowsDriverException() throws MCSException { String providerId = "Provider001"; String dataSetId = "dataset3"; DataSetServiceClient instanc... | public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } } | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServi... | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServi... | DataSetServiceClient extends MCSClient { public RepresentationIterator getRepresentationIterator(String providerId, String dataSetId) { return new RepresentationIterator(this, providerId, dataSetId); } DataSetServiceClient(String baseUrl); DataSetServiceClient(String baseUrl, final String authorization); DataSetServi... |
@Betamax(tape = "dataSets_shouldRetrieveDataSetCloudIdsByRepresentationFirstChunk") @Test public void shouldRetrieveDataSetCloudIdsByRepresentationFirstChunk() throws MCSException { String providerId = "provider"; String dataSet = "dataset"; String representationName = "representation"; String dateFrom = "2016-08-21T11... | public ResultSlice<CloudVersionRevisionResponse> getDataSetCloudIdsByRepresentationChunk(String dataSetId, String providerId, String representationName, String dateFrom, String tag, String startFrom) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_BY_REPRESENTATION) .resolveTemplate... | DataSetServiceClient extends MCSClient { public ResultSlice<CloudVersionRevisionResponse> getDataSetCloudIdsByRepresentationChunk(String dataSetId, String providerId, String representationName, String dateFrom, String tag, String startFrom) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DAT... | DataSetServiceClient extends MCSClient { public ResultSlice<CloudVersionRevisionResponse> getDataSetCloudIdsByRepresentationChunk(String dataSetId, String providerId, String representationName, String dateFrom, String tag, String startFrom) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DAT... | DataSetServiceClient extends MCSClient { public ResultSlice<CloudVersionRevisionResponse> getDataSetCloudIdsByRepresentationChunk(String dataSetId, String providerId, String representationName, String dateFrom, String tag, String startFrom) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DAT... | DataSetServiceClient extends MCSClient { public ResultSlice<CloudVersionRevisionResponse> getDataSetCloudIdsByRepresentationChunk(String dataSetId, String providerId, String representationName, String dateFrom, String tag, String startFrom) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DAT... |
@Betamax(tape = "dataSets_shouldRetrieveDataSetCloudIdsByRepresentationAllChunks") @Test public void shouldRetrieveDataSetCloudIdsByRepresentationAllChunks() throws MCSException { String providerId = "provider"; String dataSet = "dataset"; String representationName = "representation"; String dateFrom = "2016-08-21T11:0... | public ResultSlice<CloudVersionRevisionResponse> getDataSetCloudIdsByRepresentationChunk(String dataSetId, String providerId, String representationName, String dateFrom, String tag, String startFrom) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_BY_REPRESENTATION) .resolveTemplate... | DataSetServiceClient extends MCSClient { public ResultSlice<CloudVersionRevisionResponse> getDataSetCloudIdsByRepresentationChunk(String dataSetId, String providerId, String representationName, String dateFrom, String tag, String startFrom) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DAT... | DataSetServiceClient extends MCSClient { public ResultSlice<CloudVersionRevisionResponse> getDataSetCloudIdsByRepresentationChunk(String dataSetId, String providerId, String representationName, String dateFrom, String tag, String startFrom) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DAT... | DataSetServiceClient extends MCSClient { public ResultSlice<CloudVersionRevisionResponse> getDataSetCloudIdsByRepresentationChunk(String dataSetId, String providerId, String representationName, String dateFrom, String tag, String startFrom) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DAT... | DataSetServiceClient extends MCSClient { public ResultSlice<CloudVersionRevisionResponse> getDataSetCloudIdsByRepresentationChunk(String dataSetId, String providerId, String representationName, String dateFrom, String tag, String startFrom) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DAT... |
@Betamax(tape = "dataSets_shouldRetrieveCloudIdsForSpecificRevision") @Test public void shouldRetrieveCloudIdsForSpecificRevision() throws MCSException { String providerId = "LFT"; String dataSetId = "set1"; String representationName = "t1"; String revisionName = "IMPORT"; String revisionProviderId = "EU"; String revis... | public List<CloudTagsResponse> getDataSetRevisions( String providerId, String dataSetId, String representationName, String revisionName, String revisionProviderId, String revisionTimestamp) throws MCSException { List<CloudTagsResponse> resultList = new ArrayList<>(); ResultSlice<CloudTagsResponse> resultSlice; String s... | DataSetServiceClient extends MCSClient { public List<CloudTagsResponse> getDataSetRevisions( String providerId, String dataSetId, String representationName, String revisionName, String revisionProviderId, String revisionTimestamp) throws MCSException { List<CloudTagsResponse> resultList = new ArrayList<>(); ResultSlice... | DataSetServiceClient extends MCSClient { public List<CloudTagsResponse> getDataSetRevisions( String providerId, String dataSetId, String representationName, String revisionName, String revisionProviderId, String revisionTimestamp) throws MCSException { List<CloudTagsResponse> resultList = new ArrayList<>(); ResultSlice... | DataSetServiceClient extends MCSClient { public List<CloudTagsResponse> getDataSetRevisions( String providerId, String dataSetId, String representationName, String revisionName, String revisionProviderId, String revisionTimestamp) throws MCSException { List<CloudTagsResponse> resultList = new ArrayList<>(); ResultSlice... | DataSetServiceClient extends MCSClient { public List<CloudTagsResponse> getDataSetRevisions( String providerId, String dataSetId, String representationName, String revisionName, String revisionProviderId, String revisionTimestamp) throws MCSException { List<CloudTagsResponse> resultList = new ArrayList<>(); ResultSlice... |
@Betamax(tape = "dataSets_shouldRetrievCloudIdsChunkForSpecificRevision") @Test public void shouldRetrievCloudIdsChunkForSpecificRevision() throws MCSException { String providerId = "LFT"; String dataSetId = "set1"; String representationName = "t1"; String revisionName = "IMPORT"; String revisionProviderId = "EU"; Stri... | public ResultSlice<CloudTagsResponse> getDataSetRevisionsChunk( String providerId, String dataSetId, String representationName, String revisionName, String revisionProviderId, String revisionTimestamp, String startFrom, Integer limit) throws MCSException { WebTarget target = client.target(baseUrl) .path(DATA_SET_REVISI... | DataSetServiceClient extends MCSClient { public ResultSlice<CloudTagsResponse> getDataSetRevisionsChunk( String providerId, String dataSetId, String representationName, String revisionName, String revisionProviderId, String revisionTimestamp, String startFrom, Integer limit) throws MCSException { WebTarget target = cli... | DataSetServiceClient extends MCSClient { public ResultSlice<CloudTagsResponse> getDataSetRevisionsChunk( String providerId, String dataSetId, String representationName, String revisionName, String revisionProviderId, String revisionTimestamp, String startFrom, Integer limit) throws MCSException { WebTarget target = cli... | DataSetServiceClient extends MCSClient { public ResultSlice<CloudTagsResponse> getDataSetRevisionsChunk( String providerId, String dataSetId, String representationName, String revisionName, String revisionProviderId, String revisionTimestamp, String startFrom, Integer limit) throws MCSException { WebTarget target = cli... | DataSetServiceClient extends MCSClient { public ResultSlice<CloudTagsResponse> getDataSetRevisionsChunk( String providerId, String dataSetId, String representationName, String revisionName, String revisionProviderId, String revisionTimestamp, String startFrom, Integer limit) throws MCSException { WebTarget target = cli... |
@Betamax(tape = "dataSets_shouldRetrieveLatelyTaggedRecordsVersion") @Test public void shouldReturnSpecificVersion() throws MCSException { String providerId = "provider"; String dataSetId = "dataset"; String cloudId = "cloudId"; String representationName = "representation"; String revisionName = "revision"; String revi... | public String getLatelyTaggedRecords( String dataSetId, String providerId, String cloudId, String representationName, String revisionName, String revisionProviderId) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_LATELY_REVISIONED_VERSION) .resolveTemplate(PROVIDER_ID, providerId) ... | DataSetServiceClient extends MCSClient { public String getLatelyTaggedRecords( String dataSetId, String providerId, String cloudId, String representationName, String revisionName, String revisionProviderId) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_LATELY_REVISIONED_VERSION) .... | DataSetServiceClient extends MCSClient { public String getLatelyTaggedRecords( String dataSetId, String providerId, String cloudId, String representationName, String revisionName, String revisionProviderId) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_LATELY_REVISIONED_VERSION) .... | DataSetServiceClient extends MCSClient { public String getLatelyTaggedRecords( String dataSetId, String providerId, String cloudId, String representationName, String revisionName, String revisionProviderId) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_LATELY_REVISIONED_VERSION) .... | DataSetServiceClient extends MCSClient { public String getLatelyTaggedRecords( String dataSetId, String providerId, String cloudId, String representationName, String revisionName, String revisionProviderId) throws MCSException { WebTarget target = client .target(this.baseUrl) .path(DATA_SET_LATELY_REVISIONED_VERSION) .... |
@Test(expected = DriverException.class) public void shouldThrowDriverExceptionWhenNullErrorInfoPassed() { ErrorInfo errorInfo = null; MCSExceptionProvider.generateException(errorInfo); } | public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e) { throw new DriverExc... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... |
@Test(expected = DriverException.class) public void shouldThrowDriverExceptionWhenUnknownErrorInfoCodePassed() { ErrorInfo errorInfo = new ErrorInfo("THIS_IS_REALLY_WRONG_CODE", null); MCSExceptionProvider.generateException(errorInfo); } | public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e) { throw new DriverExc... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... |
@Test(expected = UserDoesNotExistException.class) public void testUserDoesNotExist() throws Exception { service.getUser("test2"); } | @Override public User getUser(String userName) throws DatabaseConnectionException, UserDoesNotExistException { return userDao.getUser(userName); } | CassandraAuthenticationService implements UserDetailsService, AuthenticationService { @Override public User getUser(String userName) throws DatabaseConnectionException, UserDoesNotExistException { return userDao.getUser(userName); } } | CassandraAuthenticationService implements UserDetailsService, AuthenticationService { @Override public User getUser(String userName) throws DatabaseConnectionException, UserDoesNotExistException { return userDao.getUser(userName); } CassandraAuthenticationService(); CassandraAuthenticationService(CassandraUserDAO user... | CassandraAuthenticationService implements UserDetailsService, AuthenticationService { @Override public User getUser(String userName) throws DatabaseConnectionException, UserDoesNotExistException { return userDao.getUser(userName); } CassandraAuthenticationService(); CassandraAuthenticationService(CassandraUserDAO user... | CassandraAuthenticationService implements UserDetailsService, AuthenticationService { @Override public User getUser(String userName) throws DatabaseConnectionException, UserDoesNotExistException { return userDao.getUser(userName); } CassandraAuthenticationService(); CassandraAuthenticationService(CassandraUserDAO user... |
@Test @Parameters(method = "statusCodes") public void shouldReturnCorrectException(Throwable ex, String errorCode) { ErrorInfo errorInfo = new ErrorInfo(errorCode, "details"); MCSException exception = MCSExceptionProvider.generateException(errorInfo); Assert.assertEquals(ex.getClass(), exception.getClass()); assertThat... | public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e) { throw new DriverExc... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... |
@Test public void shouldReturnRecordNotExistsException() { ErrorInfo errorInfo = new ErrorInfo(McsErrorCode.RECORD_NOT_EXISTS.toString(), "details"); MCSException exception = MCSExceptionProvider.generateException(errorInfo); assertTrue(exception instanceof RecordNotExistsException); assertThat(exception.getMessage(), ... | public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e) { throw new DriverExc... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... |
@Test(expected = DriverException.class) public void shouldThrowDriverException() { ErrorInfo errorInfo = new ErrorInfo(McsErrorCode.OTHER.toString(), "details"); MCSExceptionProvider.generateException(errorInfo); } | public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e) { throw new DriverExc... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... | MCSExceptionProvider { public static MCSException generateException(ErrorInfo errorInfo) { if (errorInfo == null) { throw new DriverException("Null errorInfo passed to generating exception."); } McsErrorCode errorCode; try { errorCode = McsErrorCode.valueOf(errorInfo.getErrorCode()); } catch (IllegalArgumentException e... |
@Betamax(tape = "files/shouldGetFileWithoutRange") @Test public void shouldGetFileWithoutRange() throws UnsupportedEncodingException, MCSException, IOException { byte[] contentBytes = MODIFIED_FILE_CONTENTS.getBytes("UTF-8"); String contentChecksum = Hashing.md5().hashBytes(contentBytes).toString(); FileServiceClient i... | public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... |
@Betamax(tape = "files/shouldThrowWrongContentRangeExceptionForGetFileWithRangeWhenIncorrectFormat") @Test(expected = WrongContentRangeException.class) public void shouldThrowWrongContentRangeExceptionForGetFileWithRangeWhenIncorrectFormat() throws UnsupportedEncodingException, MCSException, IOException { int rangeStar... | public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... |
@Betamax(tape = "files/shouldThrowWrongContentRangeExceptionForGetFileWithRangeWhenIncorrectRangeValues") @Test(expected = WrongContentRangeException.class) public void shouldThrowWrongContentRangeExceptionForGetFileWithRangeWhenIncorrectRangeValues() throws UnsupportedEncodingException, MCSException, IOException { int... | public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... |
@Betamax(tape = "files/shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForGetFileWithoutRange") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForGetFileWithoutRange() throws UnsupportedEncodingException, MCSException, IOException { ... | public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... |
@Betamax(tape = "files/shouldThrowRepresentationNotExistsForGetFileWithoutRangeWhenIncorrectCloudId") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowRepresentationNotExistsForGetFileWithoutRangeWhenIncorrectCloudId() throws UnsupportedEncodingException, MCSException, IOExceptio... | public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... |
@Betamax(tape = "files/shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForGetFileWithoutRangeWhenIncorrectRepresentationName") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForGetFileWithoutRangeWhenIncorrectRepresentationName() thr... | public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... |
@Betamax(tape = "files/shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForGetFileWithoutRangeWhenIncorrectVersion") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForGetFileWithoutRangeWhenIncorrectVersion() throws UnsupportedEncodin... | public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... | FileServiceClient extends MCSClient { public InputStream getFile(String cloudId, String representationName, String version, String fileName) throws MCSException, IOException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, repres... |
@Test(expected = UserDoesNotExistException.class) public void testDeleteUser() throws Exception { dao.createUser(new SpringUser("test3", "test3")); service.deleteUser("test3"); service.getUser("test3"); } | @Override public void deleteUser(final String userName) throws DatabaseConnectionException, UserDoesNotExistException { userDao.deleteUser(userName); } | CassandraAuthenticationService implements UserDetailsService, AuthenticationService { @Override public void deleteUser(final String userName) throws DatabaseConnectionException, UserDoesNotExistException { userDao.deleteUser(userName); } } | CassandraAuthenticationService implements UserDetailsService, AuthenticationService { @Override public void deleteUser(final String userName) throws DatabaseConnectionException, UserDoesNotExistException { userDao.deleteUser(userName); } CassandraAuthenticationService(); CassandraAuthenticationService(CassandraUserDAO... | CassandraAuthenticationService implements UserDetailsService, AuthenticationService { @Override public void deleteUser(final String userName) throws DatabaseConnectionException, UserDoesNotExistException { userDao.deleteUser(userName); } CassandraAuthenticationService(); CassandraAuthenticationService(CassandraUserDAO... | CassandraAuthenticationService implements UserDetailsService, AuthenticationService { @Override public void deleteUser(final String userName) throws DatabaseConnectionException, UserDoesNotExistException { userDao.deleteUser(userName); } CassandraAuthenticationService(); CassandraAuthenticationService(CassandraUserDAO... |
@Test public void shouldSuccessfullyRemoveNotifications() { doNothing().when(subTaskInfoDAO).removeNotifications(eq(TASK_ID)); removerImpl.removeNotifications(TASK_ID); verify(subTaskInfoDAO, times(1)).removeNotifications((eq(TASK_ID))); } | @Override public void removeNotifications(long taskId) { int retries = DEFAULT_RETRIES; while (true) { try { subTaskInfoDAO.removeNotifications(taskId); break; } catch (Exception e) { if (retries-- > 0) { LOGGER.warn("Error while removing the logs. Retries left: " + retries); waitForTheNextCall(); } else { LOGGER.error... | RemoverImpl implements Remover { @Override public void removeNotifications(long taskId) { int retries = DEFAULT_RETRIES; while (true) { try { subTaskInfoDAO.removeNotifications(taskId); break; } catch (Exception e) { if (retries-- > 0) { LOGGER.warn("Error while removing the logs. Retries left: " + retries); waitForThe... | RemoverImpl implements Remover { @Override public void removeNotifications(long taskId) { int retries = DEFAULT_RETRIES; while (true) { try { subTaskInfoDAO.removeNotifications(taskId); break; } catch (Exception e) { if (retries-- > 0) { LOGGER.warn("Error while removing the logs. Retries left: " + retries); waitForThe... | RemoverImpl implements Remover { @Override public void removeNotifications(long taskId) { int retries = DEFAULT_RETRIES; while (true) { try { subTaskInfoDAO.removeNotifications(taskId); break; } catch (Exception e) { if (retries-- > 0) { LOGGER.warn("Error while removing the logs. Retries left: " + retries); waitForThe... | RemoverImpl implements Remover { @Override public void removeNotifications(long taskId) { int retries = DEFAULT_RETRIES; while (true) { try { subTaskInfoDAO.removeNotifications(taskId); break; } catch (Exception e) { if (retries-- > 0) { LOGGER.warn("Error while removing the logs. Retries left: " + retries); waitForThe... |
@Betamax(tape = "files/shouldUploadFile") @Test public void shouldUploadFile() throws UnsupportedEncodingException, MCSException, IOException { String contentString = UPLOADED_FILE_CONTENTS; byte[] contentBytes = contentString.getBytes("UTF-8"); InputStream contentStream = new ByteArrayInputStream(contentBytes); String... | public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = client .target(baseUrl) .path(FILES_RESOUR... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... |
@Betamax(tape = "files/shouldThrowRepresentationNotExistsExceptionForUploadFileWhenIncorrectCloudId") @Test(expected = RepresentationNotExistsException.class) public void shouldThrowRepresentationNotExistsExceptionForUploadFileWhenIncorrectCloudId() throws MCSException, IOException { String contentString = "Test_123456... | public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = client .target(baseUrl) .path(FILES_RESOUR... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... |
@Betamax(tape = "files/shouldThrowRepresentationNotExistsExceptionForUploadFileWhenIncorrectRepresentationName") @Test(expected = RepresentationNotExistsException.class) public void shouldThrowRepresentationNotExistsExceptionForUploadFileWhenIncorrectRepresentationName() throws MCSException, IOException { String conten... | public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = client .target(baseUrl) .path(FILES_RESOUR... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... |
@Betamax(tape = "files/shouldThrowRepresentationNotExistsExceptionForUploadFileWhenIncorrectVersion") @Test(expected = RepresentationNotExistsException.class) public void shouldThrowRepresentationNotExistsExceptionForUploadFileWhenIncorrectVersion() throws MCSException, IOException { String contentString = "Test_123456... | public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = client .target(baseUrl) .path(FILES_RESOUR... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... |
@Betamax(tape = "files/shouldThrowCannotModifyPersistentRepresentationExceptionForUploadFile") @Test(expected = CannotModifyPersistentRepresentationException.class) public void shouldThrowCannotModifyPersistentRepresentationExceptionForUploadFile() throws MCSException, IOException { String contentString = "Test_1234567... | public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = client .target(baseUrl) .path(FILES_RESOUR... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... |
@Betamax(tape = "files/shouldUploadFileWithChecksum") @Test public void shouldUploadFileWithChecksum() throws UnsupportedEncodingException, MCSException, IOException { String contentString = "Test_123456789_1"; byte[] contentBytes = contentString.getBytes("UTF-8"); InputStream contentStream = new ByteArrayInputStream(c... | public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = client .target(baseUrl) .path(FILES_RESOUR... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... |
@Betamax(tape = "files/shouldThrowRepresentationNotExistsExceptionForUploadFileWithChecksumWhenIncorrectCloudId") @Test(expected = RepresentationNotExistsException.class) public void shouldThrowRepresentationNotExistsExceptionForUploadFileWithChecksumWhenIncorrectCloudId() throws UnsupportedEncodingException, MCSExcept... | public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = client .target(baseUrl) .path(FILES_RESOUR... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... |
@Betamax(tape = "files/shouldThrowRepresentationNotExistsExceptionForUploadFileWithChecksumWhenIncorrectRepresentationName") @Test(expected = RepresentationNotExistsException.class) public void shouldThrowRepresentationNotExistsExceptionForUploadFileWithChecksumWhenIncorrectRepresentationName() throws UnsupportedEncodi... | public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = client .target(baseUrl) .path(FILES_RESOUR... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... |
@Betamax(tape = "files/shouldThrowRepresentationNotExistsExceptionForUploadFileWithChecksumWhenIncorrectVersion") @Test(expected = RepresentationNotExistsException.class) public void shouldThrowRepresentationNotExistsExceptionForUploadFileWithChecksumWhenIncorrectVersion() throws UnsupportedEncodingException, MCSExcept... | public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = client .target(baseUrl) .path(FILES_RESOUR... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... |
@Betamax(tape = "files/shouldThrowCannotModifyPersistentRepresentationExceptionForUploadFileWithChecksum") @Test(expected = CannotModifyPersistentRepresentationException.class) public void shouldThrowCannotModifyPersistentRepresentationExceptionForUploadFileWithChecksum() throws UnsupportedEncodingException, MCSExcepti... | public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = client .target(baseUrl) .path(FILES_RESOUR... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... |
@Test(expected = UserDoesNotExistException.class) public void testDeleteUserException() throws Exception { service.deleteUser("test4"); } | @Override public void deleteUser(final String userName) throws DatabaseConnectionException, UserDoesNotExistException { userDao.deleteUser(userName); } | CassandraAuthenticationService implements UserDetailsService, AuthenticationService { @Override public void deleteUser(final String userName) throws DatabaseConnectionException, UserDoesNotExistException { userDao.deleteUser(userName); } } | CassandraAuthenticationService implements UserDetailsService, AuthenticationService { @Override public void deleteUser(final String userName) throws DatabaseConnectionException, UserDoesNotExistException { userDao.deleteUser(userName); } CassandraAuthenticationService(); CassandraAuthenticationService(CassandraUserDAO... | CassandraAuthenticationService implements UserDetailsService, AuthenticationService { @Override public void deleteUser(final String userName) throws DatabaseConnectionException, UserDoesNotExistException { userDao.deleteUser(userName); } CassandraAuthenticationService(); CassandraAuthenticationService(CassandraUserDAO... | CassandraAuthenticationService implements UserDetailsService, AuthenticationService { @Override public void deleteUser(final String userName) throws DatabaseConnectionException, UserDoesNotExistException { userDao.deleteUser(userName); } CassandraAuthenticationService(); CassandraAuthenticationService(CassandraUserDAO... |
@Betamax(tape = "files/shouldThrowIOExceptionForUploadFile") @Test(expected = IOException.class) public void shouldThrowIOExceptionForUploadFile() throws UnsupportedEncodingException, MCSException, IOException { String contentString = "Test_123456789_1"; byte[] contentBytes = contentString.getBytes("UTF-8"); InputStrea... | public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = client .target(baseUrl) .path(FILES_RESOUR... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... | FileServiceClient extends MCSClient { public URI uploadFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = clie... |
@Betamax(tape = "files/shouldModifyFile") @Test public void shouldModifyFile() throws UnsupportedEncodingException, IOException, MCSException { String contentString = MODIFIED_FILE_CONTENTS; byte[] contentBytes = contentString.getBytes("UTF-8"); InputStream contentStream = new ByteArrayInputStream(contentBytes); String... | public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = client .target(baseUrl) ... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... |
@Betamax(tape = "files/shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForModifyFileWhenIncorrectCloudId") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForModifyFileWhenIncorrectCloudId() throws UnsupportedEncodingException, IOExce... | public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = client .target(baseUrl) ... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... |
@Betamax(tape = "files/shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForModifyFileWhenIncorrectRepresentationName") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForModifyFileWhenIncorrectRepresentationName() throws UnsupportedEnc... | public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = client .target(baseUrl) ... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... |
@Betamax(tape = "files/shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForModifyFileWhenIncorrectVersion") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForModifyFileWhenIncorrectVersion() throws UnsupportedEncodingException, IOExce... | public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = client .target(baseUrl) ... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... |
@Betamax(tape = "files/shouldThrowIOExceptionForModifyFile") @Test(expected = IOException.class) public void shouldThrowIOExceptionForModifyFile() throws UnsupportedEncodingException, IOException, MCSException { String contentString = "Test_123456789_123456"; byte[] contentBytes = contentString.getBytes("UTF-8"); Input... | public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTarget target = client .target(baseUrl) ... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... | FileServiceClient extends MCSClient { public URI modyfiyFile(String cloudId, String representationName, String version, InputStream data, String mediaType, String fileName, String expectedMd5) throws IOException, MCSException { Response response = null; FormDataMultiPart multipart = new FormDataMultiPart(); try { WebTa... |
@Betamax(tape = "files/shouldDeleteFile") public void shouldDeleteFile() throws MCSException { FileServiceClient instance = new FileServiceClient(baseUrl, username, password); instance.deleteFile(TEST_CLOUD_ID, TEST_REPRESENTATION_NAME, TEST_VERSION, UPLOADED_FILE_CONTENTS); Response response = BuildWebTarget(cloudId, ... | public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION, version) .resol... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... |
@Betamax(tape = "files/shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForDeleteFileWhenIncorrectCloudId") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForDeleteFileWhenIncorrectCloudId() throws MCSException { String incorrectCloud... | public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION, version) .resol... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... |
@Betamax(tape = "files/shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForDeleteFileWhenIncorrectRepresentationName") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForDeleteFileWhenIncorrectRepresentationName() throws MCSException {... | public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION, version) .resol... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... |
@Betamax(tape = "files/shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForDeleteFileWhenIncorrectVersion") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForDeleteFileWhenIncorrectVersion() throws MCSException { String incorrectVersi... | public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION, version) .resol... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... |
@Test(expected = NotFoundException.class) public void testCreateAndRetrieve() throws Exception { TestingAuthenticationToken auth = new TestingAuthenticationToken(creator, creator); auth.setAuthenticated(true); SecurityContextHolder.getContext().setAuthentication(auth); ObjectIdentity obj = new ObjectIdentityImpl(testKe... | @Override public Acl readAclById(ObjectIdentity object) throws NotFoundException { return readAclById(object, null); } | CassandraAclService implements AclService { @Override public Acl readAclById(ObjectIdentity object) throws NotFoundException { return readAclById(object, null); } } | CassandraAclService implements AclService { @Override public Acl readAclById(ObjectIdentity object) throws NotFoundException { return readAclById(object, null); } CassandraAclService(AclRepository aclRepository, AclCache aclCache, PermissionGrantingStrategy grantingStrategy,
AclAuthorizationStrategy aclAuth... | CassandraAclService implements AclService { @Override public Acl readAclById(ObjectIdentity object) throws NotFoundException { return readAclById(object, null); } CassandraAclService(AclRepository aclRepository, AclCache aclCache, PermissionGrantingStrategy grantingStrategy,
AclAuthorizationStrategy aclAuth... | CassandraAclService implements AclService { @Override public Acl readAclById(ObjectIdentity object) throws NotFoundException { return readAclById(object, null); } CassandraAclService(AclRepository aclRepository, AclCache aclCache, PermissionGrantingStrategy grantingStrategy,
AclAuthorizationStrategy aclAuth... |
@Betamax(tape = "files/shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForDeleteFile") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForDeleteFile() throws MCSException { String notExistDeletedFileName = "d64b423b-1018-4526-ab4b-353... | public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION, version) .resol... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... |
@Betamax(tape = "files/shouldThrowCannotModifyPersistentRepresentationExceptionForDeleteFile") @Test(expected = CannotModifyPersistentRepresentationException.class) public void shouldThrowCannotModifyPersistentRepresentationExceptionForDeleteFile() throws MCSException, UnsupportedEncodingException { FileServiceClient i... | public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION, version) .resol... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... | FileServiceClient extends MCSClient { public void deleteFile(String cloudId, String representationName, String version, String fileName) throws MCSException { WebTarget target = client .target(baseUrl) .path(FILE_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .re... |
@Betamax(tape = "records_shouldRetrieveRecord") @Test public void shouldRetrieveRecord() throws MCSException { RecordServiceClient instance = new RecordServiceClient(baseUrl, username, password); Record record = instance.getRecord(CLOUD_ID); assertNotNull(record); assertEquals(CLOUD_ID, record.getCloudId()); } | public Record getRecord(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(RECORDS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Builder request = target.request(); Response response = null; try { response = request.get(); if (response.getStatus() == Response.Status.OK.getStatusCode... | RecordServiceClient extends MCSClient { public Record getRecord(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(RECORDS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Builder request = target.request(); Response response = null; try { response = request.get(); if (response.getStat... | RecordServiceClient extends MCSClient { public Record getRecord(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(RECORDS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Builder request = target.request(); Response response = null; try { response = request.get(); if (response.getStat... | RecordServiceClient extends MCSClient { public Record getRecord(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(RECORDS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Builder request = target.request(); Response response = null; try { response = request.get(); if (response.getStat... | RecordServiceClient extends MCSClient { public Record getRecord(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(RECORDS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Builder request = target.request(); Response response = null; try { response = request.get(); if (response.getStat... |
@Betamax(tape = "records_shouldThrowRecordNotExistsForGetRecord") @Test(expected = RecordNotExistsException.class) public void shouldThrowRecordNotExistsForGetRecord() throws MCSException { String cloudId = "noSuchRecord"; RecordServiceClient instance = new RecordServiceClient(baseUrl, username, password); instance.get... | public Record getRecord(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(RECORDS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Builder request = target.request(); Response response = null; try { response = request.get(); if (response.getStatus() == Response.Status.OK.getStatusCode... | RecordServiceClient extends MCSClient { public Record getRecord(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(RECORDS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Builder request = target.request(); Response response = null; try { response = request.get(); if (response.getStat... | RecordServiceClient extends MCSClient { public Record getRecord(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(RECORDS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Builder request = target.request(); Response response = null; try { response = request.get(); if (response.getStat... | RecordServiceClient extends MCSClient { public Record getRecord(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(RECORDS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Builder request = target.request(); Response response = null; try { response = request.get(); if (response.getStat... | RecordServiceClient extends MCSClient { public Record getRecord(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(RECORDS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Builder request = target.request(); Response response = null; try { response = request.get(); if (response.getStat... |
@Betamax(tape = "records_shouldThrowRecordNotExistsForDeleteRecord") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowRecordNotExistsForDeleteRecord() throws MCSException { String cloudId = "noSuchRecord"; RecordServiceClient instance = new RecordServiceClient(baseUrl, username, ... | public void deleteRecord(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(RECORDS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Builder request = target.request(); handleDeleteRequest(request); } | RecordServiceClient extends MCSClient { public void deleteRecord(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(RECORDS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Builder request = target.request(); handleDeleteRequest(request); } } | RecordServiceClient extends MCSClient { public void deleteRecord(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(RECORDS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Builder request = target.request(); handleDeleteRequest(request); } RecordServiceClient(String baseUrl); RecordS... | RecordServiceClient extends MCSClient { public void deleteRecord(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(RECORDS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Builder request = target.request(); handleDeleteRequest(request); } RecordServiceClient(String baseUrl); RecordS... | RecordServiceClient extends MCSClient { public void deleteRecord(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(RECORDS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Builder request = target.request(); handleDeleteRequest(request); } RecordServiceClient(String baseUrl); RecordS... |
@Betamax(tape = "records_shouldRetrieveRepresentations") @Test public void shouldRetrieveRepresentations() throws MCSException { RecordServiceClient instance = new RecordServiceClient(baseUrl, username, password); List<Representation> representationList = instance .getRepresentations(CLOUD_ID); assertNotNull(representa... | public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.getStatus() == Response.Status.OK.getStatus... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... |
@Betamax(tape = "records_shouldThrowRecordNotExistsForGetRepresentations") @Test(expected = RecordNotExistsException.class) public void shouldThrowRecordNotExistsForGetRepresentations() throws MCSException { String cloudId = "noSuchRecord"; RecordServiceClient instance = new RecordServiceClient(baseUrl, username, passw... | public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.getStatus() == Response.Status.OK.getStatus... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... |
@Betamax(tape = "records_shouldRetrieveLastPersistentRepresentationForRepresentationName") @Test public void shouldRetrieveLastPersistentRepresentationForRepresentationName() throws MCSException { RecordServiceClient instance = new RecordServiceClient(baseUrl, username, password); Representation representation = instan... | public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder request = target.request(); Response r... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... |
@Betamax(tape = "records_shouldThrowRepresentationNotExistsForGetRepresentationForRepresentationNameWhenNoRepresentationName") @Test(expected = RepresentationNotExistsException.class) public void shouldThrowRepresentationNotExistsForGetRepresentationForRepresentationNameWhenNoRepresentationName() throws MCSException { ... | public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder request = target.request(); Response r... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... |
@Betamax(tape = "records_shouldThrowRepresentationNotExistsForGetRepresentationForRepresentationNameWhenNoPersistent") @Test(expected = RepresentationNotExistsException.class) public void shouldThrowRepresentationNotExistsForGetRepresentationForRepresentationNameWhenNoPersistent() throws MCSException { String cloudId =... | public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder request = target.request(); Response r... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... |
@Test(expected = IllegalArgumentException.class) public void testFindAclListEmpty() { service.findAcls(new ArrayList<AclObjectIdentity>()); } | @Override public Map<AclObjectIdentity, Set<AclEntry>> findAcls(List<AclObjectIdentity> objectIdsToLookup) { assertAclObjectIdentityList(objectIdsToLookup); if (LOG.isDebugEnabled()) { LOG.debug("BEGIN findAcls: objectIdentities: " + objectIdsToLookup); } List<String> ids = new ArrayList<>(objectIdsToLookup.size()); fo... | CassandraAclRepository implements AclRepository { @Override public Map<AclObjectIdentity, Set<AclEntry>> findAcls(List<AclObjectIdentity> objectIdsToLookup) { assertAclObjectIdentityList(objectIdsToLookup); if (LOG.isDebugEnabled()) { LOG.debug("BEGIN findAcls: objectIdentities: " + objectIdsToLookup); } List<String> i... | CassandraAclRepository implements AclRepository { @Override public Map<AclObjectIdentity, Set<AclEntry>> findAcls(List<AclObjectIdentity> objectIdsToLookup) { assertAclObjectIdentityList(objectIdsToLookup); if (LOG.isDebugEnabled()) { LOG.debug("BEGIN findAcls: objectIdentities: " + objectIdsToLookup); } List<String> i... | CassandraAclRepository implements AclRepository { @Override public Map<AclObjectIdentity, Set<AclEntry>> findAcls(List<AclObjectIdentity> objectIdsToLookup) { assertAclObjectIdentityList(objectIdsToLookup); if (LOG.isDebugEnabled()) { LOG.debug("BEGIN findAcls: objectIdentities: " + objectIdsToLookup); } List<String> i... | CassandraAclRepository implements AclRepository { @Override public Map<AclObjectIdentity, Set<AclEntry>> findAcls(List<AclObjectIdentity> objectIdsToLookup) { assertAclObjectIdentityList(objectIdsToLookup); if (LOG.isDebugEnabled()) { LOG.debug("BEGIN findAcls: objectIdentities: " + objectIdsToLookup); } List<String> i... |
@Betamax(tape = "records_shouldThrowRecordNotExistsForCreateRepresentation") @Test(expected = RecordNotExistsException.class) public void shouldThrowRecordNotExistsForCreateRepresentation() throws MCSException { String cloudId = "noSuchRecord"; String representationName = "schema_000001"; String providerId = "Provider0... | public URI createRepresentation(String cloudId, String representationName, String providerId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder request = target.request();... | RecordServiceClient extends MCSClient { public URI createRepresentation(String cloudId, String representationName, String providerId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNa... | RecordServiceClient extends MCSClient { public URI createRepresentation(String cloudId, String representationName, String providerId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNa... | RecordServiceClient extends MCSClient { public URI createRepresentation(String cloudId, String representationName, String providerId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNa... | RecordServiceClient extends MCSClient { public URI createRepresentation(String cloudId, String representationName, String providerId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNa... |
@Betamax(tape = "records_shouldThrowProviderNotExistsForCreateRepresentation") @Test(expected = ProviderNotExistsException.class) public void shouldThrowProviderNotExistsForCreateRepresentation() throws MCSException { String cloudId = "7MZWQJF8P84"; String representationName = "schema_000001"; String providerId = "noSu... | public URI createRepresentation(String cloudId, String representationName, String providerId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder request = target.request();... | RecordServiceClient extends MCSClient { public URI createRepresentation(String cloudId, String representationName, String providerId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNa... | RecordServiceClient extends MCSClient { public URI createRepresentation(String cloudId, String representationName, String providerId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNa... | RecordServiceClient extends MCSClient { public URI createRepresentation(String cloudId, String representationName, String providerId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNa... | RecordServiceClient extends MCSClient { public URI createRepresentation(String cloudId, String representationName, String providerId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNa... |
@Betamax(tape = "records_shouldThrowRepresentationNotExistsForDeleteRepresentationNameWhenNoRepresentationName") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowRepresentationNotExistsForDeleteRepresentationNameWhenNoRepresentationName() throws MCSException { String cloudId = "J... | public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder request = target.request(); handleDeleteReque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... |
@Betamax(tape = "records_shouldThrowRepresentationNotExistsForDeleteRepresentationNameWhenNoRecord") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowRepresentationNotExistsForDeleteRepresentationNameWhenNoRecord() throws MCSException { String cloudId = "noSuchRecord"; String rep... | public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder request = target.request(); handleDeleteReque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... |
@Betamax(tape = "records_shouldRetrieveSchemaVersions") @Test public void shouldRetrieveSchemaVersions() throws RepresentationNotExistsException, MCSException { RecordServiceClient instance = new RecordServiceClient(baseUrl, username, password); List<Representation> result = instance.getRepresentations(CLOUD_ID, REPRES... | public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.getStatus() == Response.Status.OK.getStatus... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... |
@Betamax(tape = "records_shouldThrowRepresentationNotExistsForGetRepresentationNameVersionsWhenNoRepresentationName") @Test(expected = RepresentationNotExistsException.class) public void shouldThrowRepresentationNotExistsForGetRepresentationNameVersionsWhenNoRepresentationName() throws MCSException { String cloudId = "... | public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.getStatus() == Response.Status.OK.getStatus... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... |
@Betamax(tape = "records_shouldThrowRepresentationNotExistsForGetRepresentationNameVersionsWhenNoRecord") @Test(expected = RepresentationNotExistsException.class) public void shouldThrowRepresentationNotExistsForGetRepresentationNameVersionsWhenNoRecord() throws MCSException { String cloudId = "noSuchRecord"; String re... | public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.getStatus() == Response.Status.OK.getStatus... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... | RecordServiceClient extends MCSClient { public List<Representation> getRepresentations(String cloudId) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATIONS_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId); Response response = null; try { response = target.request().get(); if (response.get... |
@Betamax(tape = "records_shouldRetrieveRepresentationVersion") @Test public void shouldRetrieveRepresentationVersion() throws MCSException { RecordServiceClient instance = new RecordServiceClient(baseUrl, username, password); Representation representation = instance.getRepresentation(CLOUD_ID, REPRESENTATION_NAME, VERS... | public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder request = target.request(); Response r... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... |
@Ignore @Test public void shouldRetrieveLatestRepresentationVersion() throws MCSException { String cloudId = "J93T5R6615H"; String representationName = "schema22"; String version = "LATEST"; String versionCode = "88edb4d0-a2ef-11e3-89f5-1c6f653f6012"; RecordServiceClient instance = new RecordServiceClient(baseUrl, user... | public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder request = target.request(); Response r... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... |
@Betamax(tape = "records_shouldThrowRepresentationNotExistsForGetRepresentationVersionWhenNoRecord") @Test(expected = RepresentationNotExistsException.class) public void shouldThrowRepresentationNotExistsForGetRepresentationVersionWhenNoRecord() throws MCSException { String cloudId = "noSuchRecord"; String representati... | public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder request = target.request(); Response r... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... |
@Test(expected = IllegalArgumentException.class) public void testFindNullAclList() { service.findAcls(null); } | @Override public Map<AclObjectIdentity, Set<AclEntry>> findAcls(List<AclObjectIdentity> objectIdsToLookup) { assertAclObjectIdentityList(objectIdsToLookup); if (LOG.isDebugEnabled()) { LOG.debug("BEGIN findAcls: objectIdentities: " + objectIdsToLookup); } List<String> ids = new ArrayList<>(objectIdsToLookup.size()); fo... | CassandraAclRepository implements AclRepository { @Override public Map<AclObjectIdentity, Set<AclEntry>> findAcls(List<AclObjectIdentity> objectIdsToLookup) { assertAclObjectIdentityList(objectIdsToLookup); if (LOG.isDebugEnabled()) { LOG.debug("BEGIN findAcls: objectIdentities: " + objectIdsToLookup); } List<String> i... | CassandraAclRepository implements AclRepository { @Override public Map<AclObjectIdentity, Set<AclEntry>> findAcls(List<AclObjectIdentity> objectIdsToLookup) { assertAclObjectIdentityList(objectIdsToLookup); if (LOG.isDebugEnabled()) { LOG.debug("BEGIN findAcls: objectIdentities: " + objectIdsToLookup); } List<String> i... | CassandraAclRepository implements AclRepository { @Override public Map<AclObjectIdentity, Set<AclEntry>> findAcls(List<AclObjectIdentity> objectIdsToLookup) { assertAclObjectIdentityList(objectIdsToLookup); if (LOG.isDebugEnabled()) { LOG.debug("BEGIN findAcls: objectIdentities: " + objectIdsToLookup); } List<String> i... | CassandraAclRepository implements AclRepository { @Override public Map<AclObjectIdentity, Set<AclEntry>> findAcls(List<AclObjectIdentity> objectIdsToLookup) { assertAclObjectIdentityList(objectIdsToLookup); if (LOG.isDebugEnabled()) { LOG.debug("BEGIN findAcls: objectIdentities: " + objectIdsToLookup); } List<String> i... |
@Betamax(tape = "records_shouldThrowRepresentationNotExistsForGetRepresentationVersionWhenNoRepresentationName") @Test(expected = RepresentationNotExistsException.class) public void shouldThrowRepresentationNotExistsForGetRepresentationVersionWhenNoRepresentationName() throws MCSException { String cloudId = "J93T5R6615... | public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder request = target.request(); Response r... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... |
@Betamax(tape = "records_shouldThrowRepresentationNotExistsForGetRepresentationVersionWhenNoSuchVersion") @Test(expected = RepresentationNotExistsException.class) public void shouldThrowRepresentationNotExistsForGetRepresentationVersionWhenNoSuchVersion() throws MCSException { String cloudId = "J93T5R6615H"; String rep... | public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder request = target.request(); Response r... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... | RecordServiceClient extends MCSClient { public Representation getRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builde... |
@Betamax(tape = "records_shouldThrowRepresentationNotExistsForDeleteRepresentationVersionWhenNoRecord") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowRepresentationNotExistsForDeleteRepresentationVersionWhenNoRecord() throws MCSException { String cloudId = "noSuchRecord"; Stri... | public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder request = target.request(); handleDeleteReque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... |
@Betamax(tape = "records_shouldThrowRepresentationNotExistsForDeleteRepresentationVersionWhenNoRepresentationName") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowRepresentationNotExistsForDeleteRepresentationVersionWhenNoRepresentationName() throws MCSException { String cloudI... | public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder request = target.request(); handleDeleteReque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... |
@Betamax(tape = "records_shouldThrowRepresentationNotExistsForDeleteRepresentationVersionWhenNoSuchVersion") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowRepresentationNotExistsForDeleteRepresentationVersionWhenNoSuchVersion() throws MCSException { String cloudId = "J93T5R661... | public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder request = target.request(); handleDeleteReque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... |
@Betamax(tape = "records_shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForDeleteRepresentationVersionWhenInvalidVersion") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForDeleteRepresentationVersionWhenInvalidVersion() throws MCSE... | public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder request = target.request(); handleDeleteReque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... | RecordServiceClient extends MCSClient { public void deleteRepresentation(String cloudId, String representationName) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_RESOURCE) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName); Builder reque... |
@Betamax(tape = "records_shouldThrowRepresentationNotExistsForCopyRepresentationWhenNoRecord") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowRepresentationNotExistsForCopyRepresentationWhenNoRecord() throws MCSException { String cloudId = "noSuchRecord"; String representationN... | public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION, version); B... | RecordServiceClient extends MCSClient { public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNam... | RecordServiceClient extends MCSClient { public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNam... | RecordServiceClient extends MCSClient { public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNam... | RecordServiceClient extends MCSClient { public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNam... |
@Betamax(tape = "records_shouldThrowRepresentationNotExistsForCopyRepresentationWhenNoRepresentationName") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowRepresentationNotExistsForCopyRepresentationWhenNoRepresentationName() throws MCSException { String cloudId = "J93T5R6615H";... | public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION, version); B... | RecordServiceClient extends MCSClient { public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNam... | RecordServiceClient extends MCSClient { public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNam... | RecordServiceClient extends MCSClient { public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNam... | RecordServiceClient extends MCSClient { public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNam... |
@Betamax(tape = "records_shouldThrowRepresentationNotExistsForCopyRepresentationVersionWhenNoSuchVersion") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowRepresentationNotExistsForCopyRepresentationVersionWhenNoSuchVersion() throws MCSException { String cloudId = "J93T5R6615H";... | public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION, version); B... | RecordServiceClient extends MCSClient { public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNam... | RecordServiceClient extends MCSClient { public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNam... | RecordServiceClient extends MCSClient { public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNam... | RecordServiceClient extends MCSClient { public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNam... |
@Betamax(tape = "records_shouldThrowAccessDeniedForCopyRepresentationVersionWhenInvalidVersion") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowAccessDeniedForCopyRepresentationVersionWhenInvalidVersion() throws MCSException { String cloudId = "J93T5R6615H"; String representati... | public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION, version); B... | RecordServiceClient extends MCSClient { public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNam... | RecordServiceClient extends MCSClient { public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNam... | RecordServiceClient extends MCSClient { public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNam... | RecordServiceClient extends MCSClient { public URI copyRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_COPY) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationNam... |
@Test(expected = IllegalArgumentException.class) public void testFindNullAcl() { service.findAclObjectIdentity(null); } | @Override public AclObjectIdentity findAclObjectIdentity(AclObjectIdentity objectId) { assertAclObjectIdentity(objectId); if (LOG.isDebugEnabled()) { LOG.debug("BEGIN findAclObjectIdentity: objectIdentity: " + objectId); } Row row = session .execute(QueryBuilder.select().all().from(keyspace, AOI_TABLE) .where(QueryBuil... | CassandraAclRepository implements AclRepository { @Override public AclObjectIdentity findAclObjectIdentity(AclObjectIdentity objectId) { assertAclObjectIdentity(objectId); if (LOG.isDebugEnabled()) { LOG.debug("BEGIN findAclObjectIdentity: objectIdentity: " + objectId); } Row row = session .execute(QueryBuilder.select(... | CassandraAclRepository implements AclRepository { @Override public AclObjectIdentity findAclObjectIdentity(AclObjectIdentity objectId) { assertAclObjectIdentity(objectId); if (LOG.isDebugEnabled()) { LOG.debug("BEGIN findAclObjectIdentity: objectIdentity: " + objectId); } Row row = session .execute(QueryBuilder.select(... | CassandraAclRepository implements AclRepository { @Override public AclObjectIdentity findAclObjectIdentity(AclObjectIdentity objectId) { assertAclObjectIdentity(objectId); if (LOG.isDebugEnabled()) { LOG.debug("BEGIN findAclObjectIdentity: objectIdentity: " + objectId); } Row row = session .execute(QueryBuilder.select(... | CassandraAclRepository implements AclRepository { @Override public AclObjectIdentity findAclObjectIdentity(AclObjectIdentity objectId) { assertAclObjectIdentity(objectId); if (LOG.isDebugEnabled()) { LOG.debug("BEGIN findAclObjectIdentity: objectIdentity: " + objectId); } Row row = session .execute(QueryBuilder.select(... |
@Betamax(tape = "records_shouldThrowRepresentationNotExistsExceptionForPersistRepresentationWhenNoRecord") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowRepresentationNotExistsExceptionForPersistRepresentationWhenNoRecord() throws MCSException, IOException { String cloudId = "... | public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION, versi... | RecordServiceClient extends MCSClient { public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representat... | RecordServiceClient extends MCSClient { public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representat... | RecordServiceClient extends MCSClient { public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representat... | RecordServiceClient extends MCSClient { public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representat... |
@Betamax(tape = "records_shouldThrowRepresentationNotExistsExceptionForPersistRepresentationWhenNoRepresentationName") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowRepresentationNotExistsExceptionForPersistRepresentationWhenNoRepresentationName() throws MCSException, IOExcept... | public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION, versi... | RecordServiceClient extends MCSClient { public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representat... | RecordServiceClient extends MCSClient { public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representat... | RecordServiceClient extends MCSClient { public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representat... | RecordServiceClient extends MCSClient { public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representat... |
@Betamax(tape = "records_shouldThrowRepresentationNotExistsExceptionForPersistRepresentationWhenNoSuchVersion") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowRepresentationNotExistsExceptionForPersistRepresentationWhenNoSuchVersion() throws MCSException, IOException { String c... | public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION, versi... | RecordServiceClient extends MCSClient { public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representat... | RecordServiceClient extends MCSClient { public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representat... | RecordServiceClient extends MCSClient { public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representat... | RecordServiceClient extends MCSClient { public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representat... |
@Betamax(tape = "records_shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForPersistRepresentationVersionWhenInvalidVersion") @Test(expected = AccessDeniedOrObjectDoesNotExistException.class) public void shouldThrowAccessDeniedOrObjectDoesNotExistExceptionForPersistRepresentationVersionWhenInvalidVersion() throws MC... | public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representationName) .resolveTemplate(VERSION, versi... | RecordServiceClient extends MCSClient { public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representat... | RecordServiceClient extends MCSClient { public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representat... | RecordServiceClient extends MCSClient { public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representat... | RecordServiceClient extends MCSClient { public URI persistRepresentation(String cloudId, String representationName, String version) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_VERSION_PERSIST) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representat... |
@Test(expected = AccessDeniedOrObjectDoesNotExistException.class) @Betamax(tape = "records_shouldThrowAccessDeniedOrObjectDoesNotExistExceptionWhileTryingToUpdatePermissions") public void shouldThrowAccessDeniedOrObjectDoesNotExistExceptionWhileTryingToUpdatePermissions() throws MCSException, IOException { RecordServic... | public void grantPermissionsToVersion(String cloudId, String representationName, String version, String userName, Permission permission) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_PERMISSION) .resolveTemplate(CLOUD_ID, cloudId) .resolveTemplate(REPRESENTATION_NAME, representat... | RecordServiceClient extends MCSClient { public void grantPermissionsToVersion(String cloudId, String representationName, String version, String userName, Permission permission) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_PERMISSION) .resolveTemplate(CLOUD_ID, cloudId) .resolveT... | RecordServiceClient extends MCSClient { public void grantPermissionsToVersion(String cloudId, String representationName, String version, String userName, Permission permission) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_PERMISSION) .resolveTemplate(CLOUD_ID, cloudId) .resolveT... | RecordServiceClient extends MCSClient { public void grantPermissionsToVersion(String cloudId, String representationName, String version, String userName, Permission permission) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_PERMISSION) .resolveTemplate(CLOUD_ID, cloudId) .resolveT... | RecordServiceClient extends MCSClient { public void grantPermissionsToVersion(String cloudId, String representationName, String version, String userName, Permission permission) throws MCSException { WebTarget target = client .target(baseUrl) .path(REPRESENTATION_PERMISSION) .resolveTemplate(CLOUD_ID, cloudId) .resolveT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.