Skip to content

Releases: daniel-frak/dummy4j

0.11.0

22 May 10:13
Compare
Choose a tag to compare

Features and API changes

  • Rename dummy4j.of to dummy4j.oneOf for better clarity

0.10.1

22 May 09:27
acb2709
Compare
Choose a tag to compare

Preventative maintenance

  • Remove dependency on Guava from DefaultExpressionResolver
  • Update reflections version to 0.10.2 (removes Guava transitive dependency)
  • Update snakeyaml version to 1.3.0

0.10.0

10 May 15:57
Compare
Choose a tag to compare

Features and API changes

  • Add BusinessDummy
  • Add dummy4j::find convenience method for finding methods by name

0.9.0

12 Jul 16:02
Compare
Choose a tag to compare

Features and API changes

  • Add new methods to IdentifierDummy for generating:
    • ISSN
    • ISBN
    • ISMN
    • ISNI
    • ORCID
    • GTIN8
    • GTIN12 (UPC)
    • GTIN13
    • GTIN14
    • GS1-128
    • IMEI
    • IMEISV
    • TAC
    • ASIN
    • SSCC
  • Add InvalidDefinitionException to be thrown when a definition can't be resolved properly
  • Add NumberService::digits method
  • Log (level: FINE) when a path could not be resolved by DefaultExpressionResolver

Bugfixes

  • Fix a yml definition for BookDummy (double of when a book starts with The Return of)
  • Add ResolvedValue::toString

Preventative maintenance

  • Add checking if a range is valid in NumberValidator::inRange

0.8.0

18 Jun 11:53
Compare
Choose a tag to compare

Features and API changes

  • Allow resolving lists of keys (returning a random key, instead of a value)
  • Allow resolving nested placeholders (#{path.to.key1.#{path.to.key2}})
  • Introduce multi-locale placeholders (#{{path.to.key}})

Bugfixes

  • Fix bug with nested single-locale placeholders being resolved in a different locale than their parent expressions
  • Fix bug where trying to resolve an unresolvable expression would sometimes result in an ArrayIndexOutOfBoundsException

Preventative maintenance

  • Change some references of key to path in Javadoc
  • Refactor DefaultExpressionResolver
  • Make LocalizedDummyDefinitionsMap final
  • Replace all mentions of a parser with 'expression resolver'
  • Clarify removal of unresolvable placeholders from expressions
  • Unify path.to.key / key.path / key.path references

0.7.3

07 Jun 16:05
Compare
Choose a tag to compare

Bugfixes and preventative maintenance

  • Fix issue #38 - MissingLocaleException when using Dummy4j in a Spring Boot jar
  • Fix Logger name in YamlFileLoader
  • Change orElse method calls to orElseGet in CreditCardBuilder, CreditCardNumberBuilder, IbanBuilder and UrlBuilder
  • Refactor API code
    • Make 'code' field final in BankAccountCountry
    • Extract interface for UniqueValues, rename the original class to DefaultUniqueValues
    • Make default implementations final for DefinitionProvider, UniqueValues, LocalizedDummyDefinitions, ExpressionResolver and RandomService
    • Make LuhnFormula, IbanFormula and FinanceBuilderFactory constructor package protected, create FinanceBuilderFactory::newInstance method
    • Make YamlFileLoader package protected

0.7.2

06 Feb 16:50
Compare
Choose a tag to compare

Bugfixes and preventative maintenance

  • Fix bug with exceptions being thrown when resolving lists containing numbers

0.7.1

05 Feb 15:34
Compare
Choose a tag to compare

Bugfixes and preventative maintenance

  • Make UniqueValues::value thread-safe
  • Fix bug with resolved numbers throwing exceptions
  • Update @SInCE tags in javadoc

0.7.0

04 Feb 15:09
Compare
Choose a tag to compare

Features and API changes

  • Add UniqueValues::within method for providing locally unique values
  • Add UniqueValues::of method for providing locally unique value collections
  • Add methods that handle varrargs to FinanceDummy builders
  • Allow escaping of # sign in expresions and definitions
  • Add more spaceship names
  • Limit visibility of constants in UrlBuilder
  • Update PriceBuilder documentation

Bugfixes and preventative maintenance

  • Fix bug with InternetDummy::passwordBuilder not escaping # sign
  • Check for empty or null collections and arrays when getting a random element from them
  • Use Unicode properties when creating the pattern for whitespaces
  • Fix grammar in docs

0.6.0

24 Nov 14:38
Compare
Choose a tag to compare

Features and API changes

  • Add FinanceDummy
  • Add InternetDummy::username
  • Add vararg methods to Dummy4jBuilder
  • Add getSeed method
  • Update javadoc

Bugfixes and preventative maintenance

  • Fix dummy4j.address().street() method not working
  • Rename MissingLocaleException to MissingLocaleDefinitionsException
  • Refactor internal code