Package tbdex.sdk.httpserver.models
Class FakeOfferingsApi
-
- All Implemented Interfaces:
-
tbdex.sdk.httpserver.models.OfferingsApi
public final class FakeOfferingsApi implements OfferingsApi
A fake implementation of the OfferingsApi interface for testing purposes. This class provides mock implementations for retrieving offering information.
-
-
Constructor Summary
Constructors Constructor Description FakeOfferingsApi()
-
Method Summary
Modifier and Type Method Description OfferinggetOffering(String id)Retrieves the offering with the specified ID. List<Offering>getOfferings()Retrieves a list of offerings based on the provided filter. -
-
Method Detail
-
getOffering
Offering getOffering(String id)
Retrieves the offering with the specified ID.
- Parameters:
id- The ID of the offering to retrieve.- Returns:
The Offering instance for testing purposes.
-
getOfferings
List<Offering> getOfferings()
Retrieves a list of offerings based on the provided filter.
- Returns:
A list containing the single Offering instance for testing purposes.
-
-
-
-