Class Cars

    • Constructor Detail

      • Cars

        public Cars​(MockNeat mockNeat)
    • Method Detail

      • cars

        public static final Cars cars()

        Returns a Cars object that can be used to generate car brands and models.

        Returns:
        A re-usable Cars instance. The class implements MockUnitString.
      • supplier

        public java.util.function.Supplier<java.lang.String> supplier()
        Description copied from interface: MockUnit
        This is the sole abstract method of the interface. Needs to be implemented every-time a MockUnit is implemented.
        Specified by:
        supplier in interface MockUnit<java.lang.String>
        Returns:
        A Supplier<T>.
      • brands

        public MockUnitString brands()

        Returns a MockUnitString object that can be used to generate only car brands (e.g.: "Honda")

        Returns:
        MockUnitString.