Class Countries

    • Constructor Detail

      • Countries

        public Countries​(MockNeat mockNeat)
    • Method Detail

      • countries

        public static Countries countries()

        Returns a Countries object that can be used to generate country names or country ISO2 codes.

        Returns:
        A re-usable Countries object.
      • names

        public MockUnitString names()
        The method returns a new MockUnitString that can be used to generate country names. (Eg.: "Romania")
        Returns:
        A new MockUnitString.
      • iso2

        public MockUnitString iso2()
        The method returns a new MockUnitString that can be used to generate country ISO2 codes. (Eg.: "RO")
        Returns:
        A new 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 Supplier<String> that when it's called returns an arbitrary country name. (Eg.: "France")