Skip to content

Commit

Permalink
Correct code for checkstyle issues
Browse files Browse the repository at this point in the history
  • Loading branch information
farhin23 committed Nov 29, 2024
1 parent 246b424 commit d733d95
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
import static org.eclipse.edc.samples.common.PrerequisitesCommon.API_KEY_HEADER_KEY;
import static org.eclipse.edc.samples.common.PrerequisitesCommon.API_KEY_HEADER_VALUE;
import static org.eclipse.edc.samples.util.TransferUtil.post;
import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.Matchers.emptyString;

public class FederatedCatalogCommon {
Expand Down Expand Up @@ -64,11 +65,11 @@ public class FederatedCatalogCommon {
public static final String DATASET_ASSET_ID = "[0].'dcat:dataset'.@id";

public static RuntimeExtension getFcEmbeddedConnector() {
return getRuntime(FC_CONNECTOR_MODULE_PATH, CONSUMER,FC_CONNECTOR_CONFIG_PROPERTIES_FILE_PATH);
return getRuntime(FC_CONNECTOR_MODULE_PATH, CONSUMER, FC_CONNECTOR_CONFIG_PROPERTIES_FILE_PATH);
}

public static RuntimeExtension getStandaloneFc() {
return getRuntime(STANDALONE_FC_MODULE_PATH, STANDALONE_FC,STANDALONE_FC_CONFIG_PROPERTIES_FILE_PATH);
return getRuntime(STANDALONE_FC_MODULE_PATH, STANDALONE_FC, STANDALONE_FC_CONFIG_PROPERTIES_FILE_PATH);
}

private static RuntimeExtension getRuntime(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
*/

package org.eclipse.edc.samples.federatedCatalog;
package org.eclipse.edc.samples.federated.catalog;

import org.assertj.core.api.Assertions;
import org.eclipse.edc.junit.annotations.EndToEndTest;
Expand All @@ -24,20 +24,28 @@
import java.time.Duration;

import static org.awaitility.Awaitility.await;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.*;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.CRAWLER_EXECUTION_DELAY_VALUE;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.CRAWLER_EXECUTION_PERIOD_VALUE;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.DATASET_ASSET_ID;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.EMBEDDED_FC_CATALOG_API_ENDPOINT;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.EMPTY_QUERY_FILE_PATH;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.TIMEOUT;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.createAsset;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.getFcEmbeddedConnector;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.postAndAssertType;
import static org.eclipse.edc.samples.common.FileTransferCommon.getFileContentFromRelativePath;
import static org.eclipse.edc.samples.common.NegotiationCommon.createContractDefinition;
import static org.eclipse.edc.samples.common.NegotiationCommon.createPolicy;
import static org.eclipse.edc.samples.common.PrerequisitesCommon.*;
import static org.eclipse.edc.samples.common.PrerequisitesCommon.getProvider;

@EndToEndTest
public class FederatedCatalog01embeddedTest {

@RegisterExtension
static RuntimeExtension participantConnector = getProvider();
static final RuntimeExtension participantConnector = getProvider();

@RegisterExtension
static RuntimeExtension fcConnector = getFcEmbeddedConnector();
static final RuntimeExtension fcConnector = getFcEmbeddedConnector();

@Test
void shouldStartConnector() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
*/

package org.eclipse.edc.samples.federatedCatalog;
package org.eclipse.edc.samples.federated.catalog;

import org.assertj.core.api.Assertions;
import org.eclipse.edc.junit.annotations.EndToEndTest;
Expand All @@ -24,19 +24,27 @@
import java.time.Duration;

import static org.awaitility.Awaitility.await;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.*;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.CRAWLER_EXECUTION_DELAY_VALUE;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.CRAWLER_EXECUTION_PERIOD_VALUE;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.DATASET_ASSET_ID;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.EMPTY_QUERY_FILE_PATH;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.STANDALONE_FC_CATALOG_API_ENDPOINT;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.TIMEOUT;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.createAsset;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.getStandaloneFc;
import static org.eclipse.edc.samples.common.FederatedCatalogCommon.postAndAssertType;
import static org.eclipse.edc.samples.common.FileTransferCommon.getFileContentFromRelativePath;
import static org.eclipse.edc.samples.common.NegotiationCommon.createContractDefinition;
import static org.eclipse.edc.samples.common.NegotiationCommon.createPolicy;
import static org.eclipse.edc.samples.common.PrerequisitesCommon.*;
import static org.eclipse.edc.samples.common.PrerequisitesCommon.getProvider;

@EndToEndTest
public class FederatedCatalog02standaloneTest {
@RegisterExtension
static RuntimeExtension participantConnector = getProvider();
static final RuntimeExtension participantConnector = getProvider();

@RegisterExtension
static RuntimeExtension standaloneFcRuntime = getStandaloneFc();
static final RuntimeExtension standaloneFcRuntime = getStandaloneFc();

@Test
void shouldStartRuntimes() {
Expand Down

0 comments on commit d733d95

Please sign in to comment.