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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Offering getOffering(String id) Retrieves the offering with the specified ID.
      List<Offering> getOfferings() Retrieves a list of offerings based on the provided filter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FakeOfferingsApi

        FakeOfferingsApi()
    • 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.