use of org.eclipse.dataspaceconnector.spi.asset.AssetIndex in project DataSpaceConnector by eclipse-dataspaceconnector.
the class DescriptionRequestHandlerMocks method mockAssetIndex.
public static AssetIndex mockAssetIndex() {
AssetIndex assetIndex = mock(AssetIndex.class);
Asset asset = Asset.Builder.newInstance().id("urn:asset:123456").build();
when(assetIndex.findById(isA(String.class))).thenReturn(asset);
return assetIndex;
}
Aggregations