@Test public void givenMockConfExistWhenAccessExternalSelectObjectbyIDThenReturnResult() throws Exception { assertNotNull(client.selectObjectMetadatasByUnitId(new VitamContext(TENANT_ID).setAccessContract(CONTRACT), JsonHandler.getFromString(queryDsql), ID)); }
@Override public RequestResponse<JsonNode> selectObjectMetadatasByUnitId(VitamContext vitamContext, JsonNode selectQuery, String unitId) throws VitamClientException { return ClientMockResultHelper.getGotSimpleResult(selectQuery); }
AccessExternalClientMock extends AbstractMockClient implements AccessExternalClient { @Override public RequestResponse<JsonNode> selectObjectMetadatasByUnitId(VitamContext vitamContext, JsonNode selectQuery, String unitId) throws VitamClientException { return ClientMockResultHelper.getGotSimpleResult(selectQuery); } }
AccessExternalClientMock extends AbstractMockClient implements AccessExternalClient { @Override public RequestResponse<JsonNode> selectObjectMetadatasByUnitId(VitamContext vitamContext, JsonNode selectQuery, String unitId) throws VitamClientException { return ClientMockResultHelper.getGotSimpleResult(selectQuery); }  }
AccessExternalClientMock extends AbstractMockClient implements AccessExternalClient { @Override public RequestResponse<JsonNode> selectObjectMetadatasByUnitId(VitamContext vitamContext, JsonNode selectQuery, String unitId) throws VitamClientException { return ClientMockResultHelper.getGotSimpleResult(selectQuery); }  @Override RequestResponse<JsonNode> selectUnits(VitamContext vitamContext, JsonNode selectQuery); @Override RequestResponse<JsonNode> selectUnitbyId(VitamContext vitamContext, JsonNode selectQuery, String unitId); @Override RequestResponse<JsonNode> updateUnitbyId(VitamContext vitamContext, JsonNode updateQuery,
        String unitId); @Override RequestResponse<JsonNode> selectObjectMetadatasByUnitId(VitamContext vitamContext, JsonNode selectQuery,
        String unitId); @Override RequestResponse<LogbookOperation> selectOperations(VitamContext vitamContext,
        JsonNode select); @Override RequestResponse<LogbookOperation> selectOperationbyId(VitamContext vitamContext,
        String processId, JsonNode select); @Override RequestResponse<LogbookLifecycle> selectUnitLifeCycleById(
        VitamContext vitamContext, String idUnit, JsonNode select); @Override RequestResponse<LogbookLifecycle> selectObjectGroupLifeCycleById(
        VitamContext vitamContext, String idObject, JsonNode select); @Override Response getObjectStreamByUnitId(VitamContext vitamContext,
        String unitId,
        String usage, int version); @Override RequestResponse<JsonNode> exportDIP(VitamContext vitamContext,
        JsonNode dslRequest); @Override RequestResponse<JsonNode> transfer(VitamContext vitamContext, TransferRequest transferRequest); @Override Response getTransferById(VitamContext vitamContext, String transferId); @Override Response getDIPById(VitamContext vitamContext, String dipId); @Override RequestResponse<JsonNode> reclassification(VitamContext vitamContext, JsonNode reclassificationRequest); @Override RequestResponse<JsonNode> massUpdateUnits(VitamContext vitamContext, JsonNode updateQuery); @Override RequestResponse<JsonNode> massUpdateUnitsRules(VitamContext vitamContext, JsonNode queryJson); @Override RequestResponse<JsonNode> selectObjects(VitamContext vitamContext, JsonNode selectQuery); @Override RequestResponse<JsonNode> selectUnitsWithInheritedRules(VitamContext vitamContext, JsonNode selectQuery); @Override Response getAccessLog(VitamContext vitamContext, JsonNode params); @Override RequestResponse<JsonNode> computedInheritedRules(VitamContext vitamContext, JsonNode updateRulesQuery); @Override RequestResponse<JsonNode> deleteComputedInheritedRules(VitamContext vitamContext,
        JsonNode deleteComputedInheritedRulesQuery); @Override RequestResponse<JsonNode> launchPreservation(VitamContext vitamContext,
        PreservationRequest preservationRequest); @Override RequestResponse<JsonNode> startEliminationAnalysis(VitamContext vitamContext,
        EliminationRequestBody eliminationRequestBody); @Override RequestResponse<JsonNode> startEliminationAction(VitamContext vitamContext,
        EliminationRequestBody eliminationRequestBody); @Override RequestResponse<JsonNode> transferReply(VitamContext vitamContext, InputStream transferReply); }
AccessExternalClientMock extends AbstractMockClient implements AccessExternalClient { @Override public RequestResponse<JsonNode> selectObjectMetadatasByUnitId(VitamContext vitamContext, JsonNode selectQuery, String unitId) throws VitamClientException { return ClientMockResultHelper.getGotSimpleResult(selectQuery); }  @Override RequestResponse<JsonNode> selectUnits(VitamContext vitamContext, JsonNode selectQuery); @Override RequestResponse<JsonNode> selectUnitbyId(VitamContext vitamContext, JsonNode selectQuery, String unitId); @Override RequestResponse<JsonNode> updateUnitbyId(VitamContext vitamContext, JsonNode updateQuery,
        String unitId); @Override RequestResponse<JsonNode> selectObjectMetadatasByUnitId(VitamContext vitamContext, JsonNode selectQuery,
        String unitId); @Override RequestResponse<LogbookOperation> selectOperations(VitamContext vitamContext,
        JsonNode select); @Override RequestResponse<LogbookOperation> selectOperationbyId(VitamContext vitamContext,
        String processId, JsonNode select); @Override RequestResponse<LogbookLifecycle> selectUnitLifeCycleById(
        VitamContext vitamContext, String idUnit, JsonNode select); @Override RequestResponse<LogbookLifecycle> selectObjectGroupLifeCycleById(
        VitamContext vitamContext, String idObject, JsonNode select); @Override Response getObjectStreamByUnitId(VitamContext vitamContext,
        String unitId,
        String usage, int version); @Override RequestResponse<JsonNode> exportDIP(VitamContext vitamContext,
        JsonNode dslRequest); @Override RequestResponse<JsonNode> transfer(VitamContext vitamContext, TransferRequest transferRequest); @Override Response getTransferById(VitamContext vitamContext, String transferId); @Override Response getDIPById(VitamContext vitamContext, String dipId); @Override RequestResponse<JsonNode> reclassification(VitamContext vitamContext, JsonNode reclassificationRequest); @Override RequestResponse<JsonNode> massUpdateUnits(VitamContext vitamContext, JsonNode updateQuery); @Override RequestResponse<JsonNode> massUpdateUnitsRules(VitamContext vitamContext, JsonNode queryJson); @Override RequestResponse<JsonNode> selectObjects(VitamContext vitamContext, JsonNode selectQuery); @Override RequestResponse<JsonNode> selectUnitsWithInheritedRules(VitamContext vitamContext, JsonNode selectQuery); @Override Response getAccessLog(VitamContext vitamContext, JsonNode params); @Override RequestResponse<JsonNode> computedInheritedRules(VitamContext vitamContext, JsonNode updateRulesQuery); @Override RequestResponse<JsonNode> deleteComputedInheritedRules(VitamContext vitamContext,
        JsonNode deleteComputedInheritedRulesQuery); @Override RequestResponse<JsonNode> launchPreservation(VitamContext vitamContext,
        PreservationRequest preservationRequest); @Override RequestResponse<JsonNode> startEliminationAnalysis(VitamContext vitamContext,
        EliminationRequestBody eliminationRequestBody); @Override RequestResponse<JsonNode> startEliminationAction(VitamContext vitamContext,
        EliminationRequestBody eliminationRequestBody); @Override RequestResponse<JsonNode> transferReply(VitamContext vitamContext, InputStream transferReply);  }