From 457fa7543ab73a306f632aea96c2f0175205b574 Mon Sep 17 00:00:00 2001 From: Anton Kurako Date: Fri, 3 Dec 2021 02:36:22 +0300 Subject: [PATCH 01/15] CI gradle.yml updated codestyle.xml 80->100 comment line gradle wrapper updated to 7.3 build.gradle cleanup and updated --- .github/workflows/gradle.yml | 41 ++++---- .gitignore | 19 +++- build.gradle | 120 +++++++++++------------ config/codestyle.xml | 2 +- gradle.properties | 4 +- gradle/wrapper/gradle-wrapper.jar | Bin 59203 -> 59536 bytes gradle/wrapper/gradle-wrapper.properties | 2 +- gradlew | 2 +- 8 files changed, 103 insertions(+), 87 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index c18d9a82..8669bab5 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,16 +1,13 @@ name: Java CI -on: +on: push: branches: - - master - - dev - schedule: - - cron: "0 12 1 * *" + - master pull_request: branches: - - master - - dev + - master + - dev jobs: build: @@ -21,18 +18,24 @@ jobs: name: Java ${{ matrix.java }} setup steps: - - uses: actions/checkout@v1 - - name: Set up JDK - uses: actions/setup-java@v1 + - uses: actions/checkout@v1 + - name: Set up JDK + uses: actions/setup-java@v1 - with: - java-version: ${{ matrix.java }} + with: + java-version: ${{ matrix.java }} - - name: Build with Gradle - run: ./gradlew build jacocoTestReport + - name: Build + run: ./gradlew classes - - name: Analyze with SonarQube - run: ./gradlew sonarqube - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + - name: Codestyle + run: ./gradlew spotlessCheck + + - name: Test + run: ./gradlew test jacocoTestReport + + - name: SonarQube + run: ./gradlew sonarqube + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.gitignore b/.gitignore index 21d3e4e8..569f8139 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,17 @@ -.idea -*.iml -out +# Package Files # +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +### Gradle template .gradle -target build/ + +# Idea generatted files +.idea +/out/ +*.iml +.settings/ diff --git a/build.gradle b/build.gradle index 237babec..ccc8a497 100644 --- a/build.gradle +++ b/build.gradle @@ -1,73 +1,62 @@ plugins { - id 'jacoco' - id 'java-library' - id 'maven-publish' + id "jacoco" + id "maven-publish" + id "java-library" - id 'org.sonarqube' version '3.0' - id 'com.diffplug.gradle.spotless' version '4.4.0' + id "org.sonarqube" version "3.3" + id "com.diffplug.spotless" version "5.14.3" } group = groupId version = artifactVersion -sourceCompatibility = 1.8 -targetCompatibility = 1.8 +sourceCompatibility = JavaVersion.VERSION_1_8 +targetCompatibility = JavaVersion.VERSION_1_8 spotless { java { - encoding 'UTF-8' + encoding("UTF-8") + importOrder() removeUnusedImports() - eclipse().configFile "${projectDir}/config/codestyle.xml" + eclipse().configFile("${projectDir}/config/codestyle.xml") } } sonarqube { properties { - property 'sonar.host.url', 'https://sonarcloud.io' - property 'sonar.organization', 'goodforgod' - property 'sonar.projectKey', 'GoodforGod_dummymaker' + property "sonar.host.url", "https://sonarcloud.io" + property "sonar.organization", "goodforgod" + property "sonar.projectKey", "GoodforGod_dummymaker" } } repositories { mavenLocal() mavenCentral() - jcenter() } dependencies { - implementation 'org.jetbrains:annotations:20.1.0' - implementation 'org.slf4j:slf4j-api:1.7.30' - implementation 'me.xdrop:fuzzywuzzy:1.3.1' - implementation 'javax.inject:javax.inject:1' + implementation "org.jetbrains:annotations:22.0.0" + implementation "org.slf4j:slf4j-api:1.7.32" + implementation "me.xdrop:fuzzywuzzy:1.3.1" + implementation "javax.inject:javax.inject:1" - testRuntimeOnly 'ch.qos.logback:logback-classic:1.2.3' - testImplementation 'junit:junit:4.13' + testRuntimeOnly "ch.qos.logback:logback-classic:1.2.3" + testImplementation "junit:junit:4.13.2" } test { - useJUnit() + useJUnitPlatform() testLogging { - events 'passed', 'skipped', 'failed' - exceptionFormat 'full' - showStandardStreams = false + events("passed", "skipped", "failed") + exceptionFormat("full") + showStandardStreams(false) } -} - -tasks.withType(JavaCompile) { - options.encoding = 'UTF-8' - options.incremental = true - options.fork = true -} - -tasks.withType(Test) { - reports.html.enabled = false - reports.junitXml.enabled = false -} -java { - withJavadocJar() - withSourcesJar() + reports { + html.enabled(false) + junitXml.enabled(false) + } } publishing { @@ -76,27 +65,27 @@ publishing { from components.java pom { - name = 'DummyMaker' - url = 'https://github.com/GoodforGod/dummymaker' - description = 'Library can fill Java Classes with random data and also export data in CSV/JSON/XML/SQL formats' + name = "DummyMaker" + url = "https://github.com/GoodforGod/dummymaker" + description = "Library can fill Java Classes with random data and also export data in CSV/JSON/XML/SQL formats" license { - name = 'MIT License' - url = 'https://github.com/GoodforGod/dummymaker/blob/master/LICENSE' - distribution = 'repo' + name = "MIT License" + url = "https://github.com/GoodforGod/dummymaker/blob/master/LICENSE" + distribution = "repo" } developer { - id = 'GoodforGod' - name = 'Anton Kurako' - email = 'goodforgod.dev@gmail.com' - url = 'https://github.com/GoodforGod' + id = "GoodforGod" + name = "Anton Kurako" + email = "goodforgod.dev@gmail.com" + url = "https://github.com/GoodforGod" } scm { - connection = 'scm:git:git://github.com/GoodforGod/dummymaker.git' - developerConnection = 'scm:git:ssh://GoodforGod/dummymaker.git' - url = 'https://github.com/GoodforGod/dummymaker/tree/master' + connection = "scm:git:git://github.com/GoodforGod/dummymaker.git" + developerConnection = "scm:git:ssh://GoodforGod/dummymaker.git" + url = "https://github.com/GoodforGod/dummymaker/tree/master" } } } @@ -106,7 +95,7 @@ publishing { maven { def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2" def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/" - url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl + url = version.endsWith("SNAPSHOT") ? snapshotsRepoUrl : releasesRepoUrl credentials { username System.getenv("OSS_USERNAME") password System.getenv("OSS_PASSWORD") @@ -115,6 +104,17 @@ publishing { } } +java { + withJavadocJar() + withSourcesJar() +} + +tasks.withType(JavaCompile) { + options.encoding("UTF-8") + options.incremental(true) + options.fork = true +} + check.dependsOn jacocoTestReport jacocoTestReport { reports { @@ -123,16 +123,16 @@ jacocoTestReport { } } +javadoc { + options.encoding = "UTF-8" + if (JavaVersion.current().isJava9Compatible()) { + options.addBooleanOption("html5", true) + } +} + if (project.hasProperty("signing.keyId")) { - apply plugin: 'signing' + apply plugin: "signing" signing { sign publishing.publications.mavenJava } } - -javadoc { - options.encoding = "UTF-8" - if (JavaVersion.current().isJava9Compatible()) { - options.addBooleanOption('html5', true) - } -} \ No newline at end of file diff --git a/config/codestyle.xml b/config/codestyle.xml index 0c19bebf..a90c4f5b 100644 --- a/config/codestyle.xml +++ b/config/codestyle.xml @@ -74,7 +74,7 @@ - + diff --git a/gradle.properties b/gradle.properties index 74b0282a..da3deeae 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,9 @@ artifactId=dummymaker artifactVersion=3.0.2 -##### GRADLE +##### GRADLE ##### org.gradle.daemon=true org.gradle.parallel=true org.gradle.configureondemand=true +org.gradle.caching=true +org.gradle.jvmargs=-Dfile.encoding=UTF-8 diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index e708b1c023ec8b20f512888fe07c5bd3ff77bb8f..7454180f2ae8848c63b8b4dea2cb829da983f2fa 100644 GIT binary patch delta 18435 zcmY&<19zBR)MXm8v2EM7ZQHi-#I|kQZfv7Tn#Q)%81v4zX3d)U4d4 zYYc!v@NU%|U;_sM`2z(4BAilWijmR>4U^KdN)D8%@2KLcqkTDW%^3U(Wg>{qkAF z&RcYr;D1I5aD(N-PnqoEeBN~JyXiT(+@b`4Pv`;KmkBXYN48@0;iXuq6!ytn`vGp$ z6X4DQHMx^WlOek^bde&~cvEO@K$oJ}i`T`N;M|lX0mhmEH zuRpo!rS~#&rg}ajBdma$$}+vEhz?JAFUW|iZEcL%amAg_pzqul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S!|^L!P#e#1hkD5@~-- z`63GV0~*rOZSqw7k^#-Y$Q4z3Oa2SPRURqEahB1B^h{7~+p03SwzqL9QU#$3-X zdYtQ?-K5xDAdfomEd6(yPtZ!yY_<35bMedeq`z2JWorljz5-f9<^93HM-$#+acw%9r!JOM%O<|BR`W& zd-%j_?b^q7Kl6{q^N{cg2u;11rFB5EP+oqG9&pHD#_Mo@aNMj;LUvsl&nK(ca(hT( zzFc2oHC6WQv8g7jo+3ZSwK+9G$cvfRnql)?g=XeQ3+LTh3)79nhEle8OqS3T$qn(> z(=5Bg?EWq-ldEywgzXW965%H(9^ik*rH(8dNdkbcS9|ow&_r`X~R^R?B+(oTiMzzlx8KnHqUi z8Rh-)VAnS-CO+3}yxqm8)X+N+uzieFVm-F#syP#M1p5&$wX3MJ8 z+R@grZ*5G^Uh4I@VT=>C4RJNc^~3mx$kS1F{L?3)BzdduD2MZKdu#jNno&f2&d{?` zW(>$oktzY@GO{|Ln~Bt^A4)(%?l-&(Dm!iL#$K_xOyhwAf=K2<+Bom zw7|hl6E5}B$d%n0sfZvfQRy9Fyz2~ z83#=#LaHnf1th^k*p|ux8!!8pfHE!)x*%=_hAddl)P%4h4%&8!5-W#xqqb}c=H(i|wqcIS&oDQ{ zhI7N-$f$ra3=RjPmMh?-IEkJYQ<}R9Z!}wmp$#~Uc%u1oh#TP}wF*kJJmQX2#27kL z_dz(yKufo<=m71bZfLp^Ll#t3(IHkrgMcvx@~om%Ib(h(<$Da7urTI`x|%`wD--sN zJEEa>4DGSEG?0ulkosfj8IMNN4)B=ZtvGG{|4Fp=Xhg!wPNgYzS>{Bp%%Qa+624X@ X49Luk)baa85H9$5YCsTPT`SVRWMtMW diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index be52383e..e750102e 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index 4f906e0c..744e882e 100755 --- a/gradlew +++ b/gradlew @@ -72,7 +72,7 @@ case "`uname`" in Darwin* ) darwin=true ;; - MINGW* ) + MSYS* | MINGW* ) msys=true ;; NONSTOP* ) From f6318114c04cd2d2a17f42f0637425394ff1d7c9 Mon Sep 17 00:00:00 2001 From: Anton Kurako Date: Fri, 3 Dec 2021 02:39:04 +0300 Subject: [PATCH 02/15] Code style applied --- gradle.properties | 2 +- .../annotation/complex/GenArray.java | 1 - .../annotation/complex/GenArray2D.java | 1 - .../annotation/complex/GenEnum.java | 1 - .../annotation/complex/GenList.java | 1 - .../dummymaker/annotation/complex/GenMap.java | 1 - .../dummymaker/annotation/complex/GenSet.java | 1 - .../annotation/complex/GenTime.java | 7 ++---- .../annotation/core/ComplexGen.java | 11 ++++------ .../dummymaker/annotation/core/PrimeGen.java | 5 ++--- .../annotation/export/GenExportForce.java | 3 +-- .../annotation/export/GenExportName.java | 4 ++-- .../annotation/simple/GenBoolean.java | 1 - .../dummymaker/annotation/simple/GenNull.java | 1 - .../dummymaker/annotation/simple/GenUuid.java | 1 - .../simple/number/GenBigDecimal.java | 1 - .../simple/number/GenBigInteger.java | 1 - .../annotation/simple/number/GenByte.java | 1 - .../annotation/simple/number/GenChar.java | 1 - .../simple/number/GenCharacter.java | 1 - .../annotation/simple/number/GenDouble.java | 1 - .../simple/number/GenDoubleBig.java | 1 - .../annotation/simple/number/GenFloat.java | 1 - .../annotation/simple/number/GenFloatBig.java | 1 - .../annotation/simple/number/GenInt.java | 1 - .../annotation/simple/number/GenLong.java | 1 - .../annotation/simple/number/GenShort.java | 1 - .../annotation/simple/string/GenAddress.java | 1 - .../simple/string/GenAddressFull.java | 1 - .../simple/string/GenBtcAddress.java | 1 - .../simple/string/GenBtcTxHash.java | 1 - .../simple/string/GenCadastral.java | 1 - .../annotation/simple/string/GenCity.java | 1 - .../annotation/simple/string/GenCompany.java | 1 - .../annotation/simple/string/GenCountry.java | 1 - .../simple/string/GenDescription.java | 1 - .../annotation/simple/string/GenDistrict.java | 1 - .../annotation/simple/string/GenEmail.java | 1 - .../simple/string/GenEthAddress.java | 1 - .../simple/string/GenEthTxHash.java | 1 - .../annotation/simple/string/GenGender.java | 1 - .../annotation/simple/string/GenHexData.java | 1 - .../simple/string/GenHexNumber.java | 1 - .../annotation/simple/string/GenHouse.java | 1 - .../annotation/simple/string/GenId.java | 1 - .../annotation/simple/string/GenIdBig.java | 1 - .../annotation/simple/string/GenJob.java | 1 - .../annotation/simple/string/GenJson.java | 1 - .../annotation/simple/string/GenLogin.java | 1 - .../simple/string/GenMiddleName.java | 1 - .../annotation/simple/string/GenName.java | 1 - .../annotation/simple/string/GenNickname.java | 1 - .../annotation/simple/string/GenNoun.java | 1 - .../annotation/simple/string/GenPass.java | 1 - .../annotation/simple/string/GenPhone.java | 1 - .../annotation/simple/string/GenProduct.java | 1 - .../annotation/simple/string/GenRole.java | 1 - .../annotation/simple/string/GenStreet.java | 1 - .../annotation/simple/string/GenString.java | 1 - .../annotation/simple/string/GenSurname.java | 1 - .../annotation/simple/string/GenTag.java | 1 - .../annotation/simple/string/GenUri.java | 1 - .../annotation/simple/string/GenUrl.java | 1 - .../annotation/simple/string/GenVersion.java | 1 - .../annotation/simple/time/GenDate.java | 5 ++--- .../annotation/simple/time/GenDateSql.java | 1 - .../annotation/simple/time/GenLocalDate.java | 1 - .../simple/time/GenLocalDateTime.java | 1 - .../annotation/simple/time/GenLocalTime.java | 1 - .../annotation/simple/time/GenTimeSql.java | 1 - .../annotation/simple/time/GenTimestamp.java | 1 - .../annotation/special/GenAuto.java | 4 +--- .../annotation/special/GenCustom.java | 4 +--- .../annotation/special/GenEmbedded.java | 15 +++++-------- .../annotation/special/GenSequence.java | 6 ++--- .../java/io/dummymaker/export/Format.java | 1 - .../java/io/dummymaker/export/IExporter.java | 3 +-- .../io/dummymaker/export/cases/CamelCase.java | 3 +-- .../io/dummymaker/export/cases/KebabCase.java | 5 ++--- .../dummymaker/export/cases/PascalCase.java | 3 +-- .../io/dummymaker/export/cases/SnakeCase.java | 5 ++--- .../export/cases/UpperSnakeCase.java | 5 ++--- .../dummymaker/export/impl/BaseExporter.java | 3 +-- .../dummymaker/export/impl/CsvExporter.java | 3 +-- .../dummymaker/export/impl/JsonExporter.java | 3 +-- .../dummymaker/export/impl/SqlExporter.java | 11 ++++------ .../dummymaker/export/impl/XmlExporter.java | 3 +-- .../io/dummymaker/factory/IGenFactory.java | 13 +++++------ .../io/dummymaker/factory/IGenStorage.java | 4 ++-- .../io/dummymaker/factory/IGenSupplier.java | 11 +++++----- .../dummymaker/factory/impl/GenFactory.java | 22 +++++++++---------- .../factory/impl/GenGraphBuilder.java | 9 ++++---- .../dummymaker/factory/impl/GenStorage.java | 14 +++++------- .../dummymaker/factory/impl/GenSupplier.java | 20 ++++++++--------- .../generator/IComplexGenerator.java | 12 +++++----- .../io/dummymaker/generator/IGenerator.java | 3 +-- .../complex/Array2DComplexGenerator.java | 5 ++--- .../complex/ArrayComplexGenerator.java | 5 ++--- .../complex/BasicComplexGenerator.java | 12 +++++----- .../complex/CollectionComplexGenerator.java | 7 +++--- .../complex/EnumComplexGenerator.java | 3 +-- .../complex/ListComplexGenerator.java | 9 ++++---- .../complex/LongComplexGenerator.java | 9 ++++---- .../complex/MapComplexGenerator.java | 9 ++++---- .../complex/SetComplexGenerator.java | 9 ++++---- .../complex/TimeComplexGenerator.java | 15 ++++++------- .../generator/simple/BooleanGenerator.java | 3 +-- .../generator/simple/NullGenerator.java | 5 ++--- .../generator/simple/SequenceGenerator.java | 3 +-- .../generator/simple/UuidGenerator.java | 3 +-- .../simple/number/BigDecimalGenerator.java | 7 +++--- .../simple/number/BigIntegerGenerator.java | 3 +-- .../simple/number/CharacterGenerator.java | 7 +++--- .../simple/number/DoubleGenerator.java | 3 +-- .../simple/number/FloatGenerator.java | 3 +-- .../simple/number/IntegerGenerator.java | 7 +++--- .../simple/number/IntegerSmallGenerator.java | 7 +++--- .../simple/number/IntegetMediumGenerator.java | 7 +++--- .../simple/number/UnixTimeGenerator.java | 7 +++--- .../simple/string/AddressFullGenerator.java | 7 +++--- .../simple/string/AddressGenerator.java | 7 +++--- .../simple/string/BtcAddressGenerator.java | 5 ++--- .../simple/string/BtcTxHashGenerator.java | 5 ++--- .../simple/string/CadastralGenerator.java | 7 +++--- .../simple/string/CityGenerator.java | 7 +++--- .../simple/string/CompanyGenerator.java | 7 +++--- .../simple/string/CountryGenerator.java | 7 +++--- .../simple/string/DescriptionGenerator.java | 7 +++--- .../simple/string/DistrictGenerator.java | 7 +++--- .../simple/string/DocumentGenerator.java | 9 ++++---- .../simple/string/EmailGenerator.java | 7 +++--- .../simple/string/EthAddressGenerator.java | 5 ++--- .../simple/string/EthTxHashGenerator.java | 5 ++--- .../simple/string/ExtensionGenerator.java | 7 +++--- .../simple/string/FileGenerator.java | 7 +++--- .../simple/string/FormatGenerator.java | 7 +++--- .../simple/string/GenderGenerator.java | 7 +++--- .../simple/string/HexDataGenerator.java | 5 ++--- .../simple/string/HexNumberGenerator.java | 7 +++--- .../simple/string/HouseGenerator.java | 7 +++--- .../simple/string/IdBigGenerator.java | 3 +-- .../generator/simple/string/IdGenerator.java | 3 +-- .../generator/simple/string/JobGenerator.java | 7 +++--- .../simple/string/JsonGenerator.java | 7 +++--- .../simple/string/LoginGenerator.java | 9 ++++---- .../simple/string/MiddleNameGenerator.java | 7 +++--- .../simple/string/NameGenerator.java | 7 +++--- .../simple/string/NounGenerator.java | 7 +++--- .../simple/string/PhoneGenerator.java | 7 +++--- .../simple/string/ProductGenerator.java | 7 +++--- .../simple/string/RoleGenerator.java | 7 +++--- .../simple/string/StreetGenerator.java | 7 +++--- .../simple/string/StringGenerator.java | 7 +++--- .../simple/string/SurnameGenerator.java | 7 +++--- .../generator/simple/string/TagGenerator.java | 7 +++--- .../simple/string/TypeGenerator.java | 7 +++--- .../generator/simple/string/UriGenerator.java | 5 ++--- .../generator/simple/string/UrlGenerator.java | 7 +++--- .../simple/string/VersionGenerator.java | 7 +++--- .../generator/simple/time/DateGenerator.java | 7 +++--- .../simple/time/DateSqlGenerator.java | 3 +-- .../simple/time/LocalDateGenerator.java | 7 +++--- .../simple/time/LocalDateTimeGenerator.java | 10 ++++----- .../simple/time/LocalTimeGenerator.java | 7 +++--- .../generator/simple/time/TimeGenerator.java | 3 +-- .../simple/time/TimestampGenerator.java | 3 +-- .../io/dummymaker/model/GenContainer.java | 5 ++--- .../io/dummymaker/model/GenFieldRule.java | 1 - .../java/io/dummymaker/model/GenRule.java | 17 ++++++-------- .../java/io/dummymaker/model/GenRules.java | 10 ++++----- src/main/java/io/dummymaker/model/Pair.java | 5 ++--- .../model/export/DateFieldContainer.java | 1 - .../model/export/FieldContainer.java | 1 - .../model/export/FieldContainerFactory.java | 5 ++--- .../dummymaker/scan/IAnnotationScanner.java | 7 +++--- .../io/dummymaker/scan/IExportScanner.java | 3 +-- .../io/dummymaker/scan/IGenAutoScanner.java | 6 ++--- .../java/io/dummymaker/scan/IGenScanner.java | 3 +-- .../java/io/dummymaker/scan/IMapScanner.java | 3 +-- .../java/io/dummymaker/scan/IScanner.java | 3 +-- .../scan/impl/AnnotationScanner.java | 7 +++--- .../io/dummymaker/scan/impl/BasicScanner.java | 3 +-- .../io/dummymaker/scan/impl/ClassScanner.java | 3 +-- .../dummymaker/scan/impl/ExportScanner.java | 6 ++--- .../dummymaker/scan/impl/GenAutoScanner.java | 3 +-- .../dummymaker/scan/impl/GenRuledScanner.java | 3 +-- .../io/dummymaker/scan/impl/GenScanner.java | 10 ++++----- .../dummymaker/scan/impl/ResourceScanner.java | 9 +++----- .../dummymaker/scan/impl/SequenceScanner.java | 3 +-- .../dummymaker/scan/impl/UniqueScanner.java | 7 +++--- .../java/io/dummymaker/util/CastUtils.java | 12 +++++----- .../io/dummymaker/util/CollectionUtils.java | 9 ++++---- .../java/io/dummymaker/util/DateUtils.java | 5 ++--- .../java/io/dummymaker/util/GenUtils.java | 5 ++--- .../io/dummymaker/writer/impl/FileWriter.java | 4 +--- .../io/dummymaker/bundle/BundleImplTest.java | 11 +++++----- .../export/BasicExporterValidationTest.java | 9 ++++---- .../export/CaseParameterizedTest.java | 5 ++--- .../export/UniqueExporterTests.java | 3 +-- .../export/ValidatorExporterTest.java | 5 ++--- .../export/asfile/CsvExportAsFileTest.java | 3 +-- .../export/asfile/ExportAsFileTests.java | 9 ++++---- .../export/asfile/ExportAssert.java | 9 ++++---- .../export/asfile/FileExportAssert.java | 3 +-- .../export/asfile/JsonExportAsFileTest.java | 3 +-- .../export/asfile/SqlExportAsFileTest.java | 3 +-- .../export/asfile/XmlExportAsFileTest.java | 1 - .../asstring/CsvExportAsStringTest.java | 3 +-- .../export/asstring/ExportAsStringTests.java | 9 ++++---- .../asstring/JsonExportAsStringTest.java | 3 +-- .../asstring/SqlExportAsStringTest.java | 3 +-- .../export/asstring/StringExportAssert.java | 5 ++--- .../asstring/XmlExportAsStringTest.java | 3 +-- .../export/validators/CsvValidator.java | 8 +++---- .../export/validators/JsonValidator.java | 8 +++---- .../export/validators/SqlValidator.java | 10 ++++----- .../export/validators/XmlValidator.java | 8 +++---- .../dummymaker/factory/DummyArrayTests.java | 3 +-- .../factory/DummyAutoNamedTests.java | 3 +-- .../factory/DummyCollectionTests.java | 4 ++-- .../DummyEmbeddedComplexAutoTests.java | 3 +-- .../factory/DummyGlobalRulesTests.java | 5 ++--- .../factory/DummyNoFillFieldsTests.java | 4 ++-- .../io/dummymaker/factory/DummyTests.java | 7 +++--- .../io/dummymaker/factory/FactoryTests.java | 9 ++++---- .../factory/GenFactoryBuildTests.java | 7 +++--- .../factory/GenFactoryFillTests.java | 7 +++--- .../generator/GeneratorPatternValidTest.java | 15 ++++++------- .../generator/UniqueGeneratorsTest.java | 7 +++--- src/test/java/io/dummymaker/model/Dummy.java | 1 - .../io/dummymaker/model/DummyAutoComplex.java | 1 - .../io/dummymaker/model/DummyCollection.java | 1 - .../model/DummyCollectionWrong.java | 1 - .../java/io/dummymaker/model/DummyCustom.java | 3 +-- .../io/dummymaker/model/DummyEmbedded.java | 1 - .../dummymaker/model/DummyNoFillFields.java | 3 +-- .../model/DummyNoZeroConstructor.java | 1 - .../java/io/dummymaker/model/DummyRules.java | 1 - .../java/io/dummymaker/model/DummyTime.java | 5 ++--- .../dummymaker/model/DummyTimeFormatter.java | 5 ++--- .../io/dummymaker/model/DummyUnixTime.java | 1 - .../model/deprecated/DummyAuto.java | 1 - .../io/dummymaker/rules/GenRulesTests.java | 3 +-- .../scan/AnnotationScannerTests.java | 9 ++++---- .../io/dummymaker/scan/ClassScannerTests.java | 3 +-- .../dummymaker/scan/ExportScannerTests.java | 9 ++++---- .../io/dummymaker/scan/GenScannerTests.java | 9 ++++---- .../dummymaker/scan/ResourceScannerTests.java | 5 ++--- .../dummymaker/scan/SequenceScannerTests.java | 7 +++--- .../dummymaker/scan/UniqueScannerTests.java | 5 ++--- .../io/dummymaker/util/CastUtilsTest.java | 3 +-- .../dummymaker/util/CollectionUtilsTest.java | 3 +-- .../dummymaker/util/DateUtilsErrorTests.java | 5 ++--- .../dummymaker/util/DateUtilsValidTest.java | 5 ++--- 254 files changed, 458 insertions(+), 728 deletions(-) diff --git a/gradle.properties b/gradle.properties index da3deeae..7f33e7a4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ groupId=com.github.goodforgod artifactId=dummymaker -artifactVersion=3.0.2 +artifactVersion=3.1.0-SNAPSHOT ##### GRADLE ##### diff --git a/src/main/java/io/dummymaker/annotation/complex/GenArray.java b/src/main/java/io/dummymaker/annotation/complex/GenArray.java index 946bdff4..c63564f7 100644 --- a/src/main/java/io/dummymaker/annotation/complex/GenArray.java +++ b/src/main/java/io/dummymaker/annotation/complex/GenArray.java @@ -3,7 +3,6 @@ import io.dummymaker.annotation.core.ComplexGen; import io.dummymaker.generator.IGenerator; import io.dummymaker.generator.complex.ArrayComplexGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/complex/GenArray2D.java b/src/main/java/io/dummymaker/annotation/complex/GenArray2D.java index 4834558e..4de4c5bb 100644 --- a/src/main/java/io/dummymaker/annotation/complex/GenArray2D.java +++ b/src/main/java/io/dummymaker/annotation/complex/GenArray2D.java @@ -3,7 +3,6 @@ import io.dummymaker.annotation.core.ComplexGen; import io.dummymaker.generator.IGenerator; import io.dummymaker.generator.complex.Array2DComplexGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/complex/GenEnum.java b/src/main/java/io/dummymaker/annotation/complex/GenEnum.java index b6f22466..049f0c65 100644 --- a/src/main/java/io/dummymaker/annotation/complex/GenEnum.java +++ b/src/main/java/io/dummymaker/annotation/complex/GenEnum.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.ComplexGen; import io.dummymaker.generator.complex.EnumComplexGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/complex/GenList.java b/src/main/java/io/dummymaker/annotation/complex/GenList.java index fd89eb67..79ee5b6e 100644 --- a/src/main/java/io/dummymaker/annotation/complex/GenList.java +++ b/src/main/java/io/dummymaker/annotation/complex/GenList.java @@ -3,7 +3,6 @@ import io.dummymaker.annotation.core.ComplexGen; import io.dummymaker.generator.IGenerator; import io.dummymaker.generator.complex.ListComplexGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/complex/GenMap.java b/src/main/java/io/dummymaker/annotation/complex/GenMap.java index 2ad12c5d..2c5ea5a1 100644 --- a/src/main/java/io/dummymaker/annotation/complex/GenMap.java +++ b/src/main/java/io/dummymaker/annotation/complex/GenMap.java @@ -3,7 +3,6 @@ import io.dummymaker.annotation.core.ComplexGen; import io.dummymaker.generator.IGenerator; import io.dummymaker.generator.complex.MapComplexGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/complex/GenSet.java b/src/main/java/io/dummymaker/annotation/complex/GenSet.java index 9b5f8c91..8ae93335 100644 --- a/src/main/java/io/dummymaker/annotation/complex/GenSet.java +++ b/src/main/java/io/dummymaker/annotation/complex/GenSet.java @@ -3,7 +3,6 @@ import io.dummymaker.annotation.core.ComplexGen; import io.dummymaker.generator.IGenerator; import io.dummymaker.generator.complex.SetComplexGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/complex/GenTime.java b/src/main/java/io/dummymaker/annotation/complex/GenTime.java index 523af2ea..b733e786 100644 --- a/src/main/java/io/dummymaker/annotation/complex/GenTime.java +++ b/src/main/java/io/dummymaker/annotation/complex/GenTime.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.ComplexGen; import io.dummymaker.generator.complex.TimeComplexGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @@ -36,10 +35,8 @@ * ISO 8601 datetime format for DateTime and timestamps * * @see java.time.format.DateTimeFormatter#ISO_DATE_TIME default for datetimes - * @see java.time.format.DateTimeFormatter#ISO_DATE default for date only - * formats - * @see java.time.format.DateTimeFormatter#ISO_TIME default for time only - * formats + * @see java.time.format.DateTimeFormatter#ISO_DATE default for date only formats + * @see java.time.format.DateTimeFormatter#ISO_TIME default for time only formats */ String DEFAULT_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"; diff --git a/src/main/java/io/dummymaker/annotation/core/ComplexGen.java b/src/main/java/io/dummymaker/annotation/core/ComplexGen.java index b905eeb7..bf4841d9 100644 --- a/src/main/java/io/dummymaker/annotation/core/ComplexGen.java +++ b/src/main/java/io/dummymaker/annotation/core/ComplexGen.java @@ -5,20 +5,18 @@ import io.dummymaker.generator.simple.NullGenerator; import io.dummymaker.scan.IAnnotationScanner; import io.dummymaker.scan.IMapScanner; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** - * Complex Gen annotation used to create new annotations of specific complex - * generator provided type Used as a marker annotation for other annotations + * Complex Gen annotation used to create new annotations of specific complex generator provided type + * Used as a marker annotation for other annotations *

* Is used by scanners and populate/produce factories *

- * This annotation is a also core one (as prime one) to support population - * factory + * This annotation is a also core one (as prime one) to support population factory * * @author GoodforGod * @see PrimeGen @@ -32,8 +30,7 @@ public @interface ComplexGen { /** - * Contains complex generator class to be called to generate values on populate - * factory + * Contains complex generator class to be called to generate values on populate factory * * @return generator */ diff --git a/src/main/java/io/dummymaker/annotation/core/PrimeGen.java b/src/main/java/io/dummymaker/annotation/core/PrimeGen.java index 23a22e78..5feafa94 100644 --- a/src/main/java/io/dummymaker/annotation/core/PrimeGen.java +++ b/src/main/java/io/dummymaker/annotation/core/PrimeGen.java @@ -4,15 +4,14 @@ import io.dummymaker.generator.simple.NullGenerator; import io.dummymaker.scan.IAnnotationScanner; import io.dummymaker.scan.IMapScanner; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** - * Prime annotations, used to create new annotations of specific generator - * provided type Used as a marker annotation for other annotations + * Prime annotations, used to create new annotations of specific generator provided type Used as a + * marker annotation for other annotations *

* Is used by scanners and populate/produce factories *

diff --git a/src/main/java/io/dummymaker/annotation/export/GenExportForce.java b/src/main/java/io/dummymaker/annotation/export/GenExportForce.java index d0f09896..cf7e63c3 100644 --- a/src/main/java/io/dummymaker/annotation/export/GenExportForce.java +++ b/src/main/java/io/dummymaker/annotation/export/GenExportForce.java @@ -6,8 +6,7 @@ import java.lang.annotation.Target; /** - * Force object field to export, despite it been annotated with generate - * annotations + * Force object field to export, despite it been annotated with generate annotations * * @author GoodforGod * @see io.dummymaker.export.IExporter diff --git a/src/main/java/io/dummymaker/annotation/export/GenExportName.java b/src/main/java/io/dummymaker/annotation/export/GenExportName.java index 6a8d86ed..4257fd0c 100644 --- a/src/main/java/io/dummymaker/annotation/export/GenExportName.java +++ b/src/main/java/io/dummymaker/annotation/export/GenExportName.java @@ -6,8 +6,8 @@ import java.lang.annotation.Target; /** - * Allow to rename fields and class names when export To rename class you should - * annotate its constructor + * Allow to rename fields and class names when export To rename class you should annotate its + * constructor * * @author GoodforGod * @since 06.07.2017 diff --git a/src/main/java/io/dummymaker/annotation/simple/GenBoolean.java b/src/main/java/io/dummymaker/annotation/simple/GenBoolean.java index fb7003f5..923ccb1d 100644 --- a/src/main/java/io/dummymaker/annotation/simple/GenBoolean.java +++ b/src/main/java/io/dummymaker/annotation/simple/GenBoolean.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.BooleanGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/GenNull.java b/src/main/java/io/dummymaker/annotation/simple/GenNull.java index de3dbe7f..74159a03 100644 --- a/src/main/java/io/dummymaker/annotation/simple/GenNull.java +++ b/src/main/java/io/dummymaker/annotation/simple/GenNull.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.NullGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/GenUuid.java b/src/main/java/io/dummymaker/annotation/simple/GenUuid.java index 8b8d7f7d..184328c6 100644 --- a/src/main/java/io/dummymaker/annotation/simple/GenUuid.java +++ b/src/main/java/io/dummymaker/annotation/simple/GenUuid.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.UuidGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/number/GenBigDecimal.java b/src/main/java/io/dummymaker/annotation/simple/number/GenBigDecimal.java index b5b12fd8..af5cff74 100644 --- a/src/main/java/io/dummymaker/annotation/simple/number/GenBigDecimal.java +++ b/src/main/java/io/dummymaker/annotation/simple/number/GenBigDecimal.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.number.BigDecimalGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/number/GenBigInteger.java b/src/main/java/io/dummymaker/annotation/simple/number/GenBigInteger.java index 976f5696..66834c78 100644 --- a/src/main/java/io/dummymaker/annotation/simple/number/GenBigInteger.java +++ b/src/main/java/io/dummymaker/annotation/simple/number/GenBigInteger.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.number.BigIntegerGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/number/GenByte.java b/src/main/java/io/dummymaker/annotation/simple/number/GenByte.java index e364b553..a594370b 100644 --- a/src/main/java/io/dummymaker/annotation/simple/number/GenByte.java +++ b/src/main/java/io/dummymaker/annotation/simple/number/GenByte.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.number.ByteGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/number/GenChar.java b/src/main/java/io/dummymaker/annotation/simple/number/GenChar.java index 6c7210e4..7f708e51 100644 --- a/src/main/java/io/dummymaker/annotation/simple/number/GenChar.java +++ b/src/main/java/io/dummymaker/annotation/simple/number/GenChar.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.number.CharGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/number/GenCharacter.java b/src/main/java/io/dummymaker/annotation/simple/number/GenCharacter.java index 5d6aac02..2f06f5c1 100644 --- a/src/main/java/io/dummymaker/annotation/simple/number/GenCharacter.java +++ b/src/main/java/io/dummymaker/annotation/simple/number/GenCharacter.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.number.CharacterGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/number/GenDouble.java b/src/main/java/io/dummymaker/annotation/simple/number/GenDouble.java index 8e1774fe..72661726 100644 --- a/src/main/java/io/dummymaker/annotation/simple/number/GenDouble.java +++ b/src/main/java/io/dummymaker/annotation/simple/number/GenDouble.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.number.DoubleGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/number/GenDoubleBig.java b/src/main/java/io/dummymaker/annotation/simple/number/GenDoubleBig.java index 1da96737..eb5ba72b 100644 --- a/src/main/java/io/dummymaker/annotation/simple/number/GenDoubleBig.java +++ b/src/main/java/io/dummymaker/annotation/simple/number/GenDoubleBig.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.number.DoubleBigGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/number/GenFloat.java b/src/main/java/io/dummymaker/annotation/simple/number/GenFloat.java index 7db5bb58..92556fdf 100644 --- a/src/main/java/io/dummymaker/annotation/simple/number/GenFloat.java +++ b/src/main/java/io/dummymaker/annotation/simple/number/GenFloat.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.number.FloatGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/number/GenFloatBig.java b/src/main/java/io/dummymaker/annotation/simple/number/GenFloatBig.java index 22625d41..cded230f 100644 --- a/src/main/java/io/dummymaker/annotation/simple/number/GenFloatBig.java +++ b/src/main/java/io/dummymaker/annotation/simple/number/GenFloatBig.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.number.FloatBigGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/number/GenInt.java b/src/main/java/io/dummymaker/annotation/simple/number/GenInt.java index 49959400..8f22ac62 100644 --- a/src/main/java/io/dummymaker/annotation/simple/number/GenInt.java +++ b/src/main/java/io/dummymaker/annotation/simple/number/GenInt.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.ComplexGen; import io.dummymaker.generator.complex.LongComplexGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/number/GenLong.java b/src/main/java/io/dummymaker/annotation/simple/number/GenLong.java index 7b2a08fc..f0340841 100644 --- a/src/main/java/io/dummymaker/annotation/simple/number/GenLong.java +++ b/src/main/java/io/dummymaker/annotation/simple/number/GenLong.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.ComplexGen; import io.dummymaker.generator.complex.LongComplexGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/number/GenShort.java b/src/main/java/io/dummymaker/annotation/simple/number/GenShort.java index 5bb9adea..a9c54b4d 100644 --- a/src/main/java/io/dummymaker/annotation/simple/number/GenShort.java +++ b/src/main/java/io/dummymaker/annotation/simple/number/GenShort.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.number.ShortGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenAddress.java b/src/main/java/io/dummymaker/annotation/simple/string/GenAddress.java index 7de0a318..92973846 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenAddress.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenAddress.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.AddressGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenAddressFull.java b/src/main/java/io/dummymaker/annotation/simple/string/GenAddressFull.java index dbff6a7d..975944aa 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenAddressFull.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenAddressFull.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.AddressFullGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenBtcAddress.java b/src/main/java/io/dummymaker/annotation/simple/string/GenBtcAddress.java index 37d4ce0a..f6e157ee 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenBtcAddress.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenBtcAddress.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.BtcAddressGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenBtcTxHash.java b/src/main/java/io/dummymaker/annotation/simple/string/GenBtcTxHash.java index 3d57de04..2d17ee5a 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenBtcTxHash.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenBtcTxHash.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.BtcTxHashGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenCadastral.java b/src/main/java/io/dummymaker/annotation/simple/string/GenCadastral.java index 32793d00..c1dfbf46 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenCadastral.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenCadastral.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.CadastralGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenCity.java b/src/main/java/io/dummymaker/annotation/simple/string/GenCity.java index f3f4c92e..e5b24a95 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenCity.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenCity.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.CityGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenCompany.java b/src/main/java/io/dummymaker/annotation/simple/string/GenCompany.java index b05e0852..3fa1987f 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenCompany.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenCompany.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.CompanyGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenCountry.java b/src/main/java/io/dummymaker/annotation/simple/string/GenCountry.java index bc181b46..e2ef2cd1 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenCountry.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenCountry.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.CountryGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenDescription.java b/src/main/java/io/dummymaker/annotation/simple/string/GenDescription.java index d533cace..52143d47 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenDescription.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenDescription.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.DescriptionGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenDistrict.java b/src/main/java/io/dummymaker/annotation/simple/string/GenDistrict.java index e9029cbd..4844332f 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenDistrict.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenDistrict.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.DistrictGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenEmail.java b/src/main/java/io/dummymaker/annotation/simple/string/GenEmail.java index 1182b797..6882644e 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenEmail.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenEmail.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.EmailGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenEthAddress.java b/src/main/java/io/dummymaker/annotation/simple/string/GenEthAddress.java index ddb832d5..d676d991 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenEthAddress.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenEthAddress.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.EthAddressGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenEthTxHash.java b/src/main/java/io/dummymaker/annotation/simple/string/GenEthTxHash.java index cee51a3d..6cd1f29f 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenEthTxHash.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenEthTxHash.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.EthTxHashGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenGender.java b/src/main/java/io/dummymaker/annotation/simple/string/GenGender.java index dbeec2a6..a272db6e 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenGender.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenGender.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.GenderGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenHexData.java b/src/main/java/io/dummymaker/annotation/simple/string/GenHexData.java index f4be686b..9101d97c 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenHexData.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenHexData.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.HexDataGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenHexNumber.java b/src/main/java/io/dummymaker/annotation/simple/string/GenHexNumber.java index 2fd0f8a3..c9d478a8 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenHexNumber.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenHexNumber.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.HexNumberGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenHouse.java b/src/main/java/io/dummymaker/annotation/simple/string/GenHouse.java index 5a3e2960..39905e39 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenHouse.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenHouse.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.HouseGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenId.java b/src/main/java/io/dummymaker/annotation/simple/string/GenId.java index db4437c8..05b6b542 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenId.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenId.java @@ -3,7 +3,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.IdBigGenerator; import io.dummymaker.generator.simple.string.IdGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenIdBig.java b/src/main/java/io/dummymaker/annotation/simple/string/GenIdBig.java index 1ac1ec5c..7bc1b07f 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenIdBig.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenIdBig.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.IdBigGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenJob.java b/src/main/java/io/dummymaker/annotation/simple/string/GenJob.java index 8ea1f46f..fda0e3ee 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenJob.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenJob.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.JobGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenJson.java b/src/main/java/io/dummymaker/annotation/simple/string/GenJson.java index e4abf60a..925da00f 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenJson.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenJson.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.JsonGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenLogin.java b/src/main/java/io/dummymaker/annotation/simple/string/GenLogin.java index 8f840d20..c185b499 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenLogin.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenLogin.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.LoginGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenMiddleName.java b/src/main/java/io/dummymaker/annotation/simple/string/GenMiddleName.java index 352f5b92..beb71afb 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenMiddleName.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenMiddleName.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.MiddleNameGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenName.java b/src/main/java/io/dummymaker/annotation/simple/string/GenName.java index 0211b20b..c945cc9c 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenName.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenName.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.NameGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenNickname.java b/src/main/java/io/dummymaker/annotation/simple/string/GenNickname.java index 36a904ff..4039d4c7 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenNickname.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenNickname.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.LoginGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenNoun.java b/src/main/java/io/dummymaker/annotation/simple/string/GenNoun.java index 53e74637..5c181036 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenNoun.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenNoun.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.NounGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenPass.java b/src/main/java/io/dummymaker/annotation/simple/string/GenPass.java index a4437bd6..171897d9 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenPass.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenPass.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.DocumentGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenPhone.java b/src/main/java/io/dummymaker/annotation/simple/string/GenPhone.java index efdd75de..1ec0c41c 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenPhone.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenPhone.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.PhoneGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenProduct.java b/src/main/java/io/dummymaker/annotation/simple/string/GenProduct.java index 28c2ca9d..a77d8050 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenProduct.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenProduct.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.ProductGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenRole.java b/src/main/java/io/dummymaker/annotation/simple/string/GenRole.java index eb070454..d95079f6 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenRole.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenRole.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.RoleGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenStreet.java b/src/main/java/io/dummymaker/annotation/simple/string/GenStreet.java index a2f2fb9f..029c6ed0 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenStreet.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenStreet.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.StreetGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenString.java b/src/main/java/io/dummymaker/annotation/simple/string/GenString.java index 4b183696..e17a3b7a 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenString.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenString.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.StringGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenSurname.java b/src/main/java/io/dummymaker/annotation/simple/string/GenSurname.java index 26e78f8e..cd7d4dda 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenSurname.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenSurname.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.SurnameGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenTag.java b/src/main/java/io/dummymaker/annotation/simple/string/GenTag.java index dd0be19d..c8395fb4 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenTag.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenTag.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.TagGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenUri.java b/src/main/java/io/dummymaker/annotation/simple/string/GenUri.java index f6b04afb..9e40c538 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenUri.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenUri.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.UriGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenUrl.java b/src/main/java/io/dummymaker/annotation/simple/string/GenUrl.java index 3d479cfa..9d75ba8a 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenUrl.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenUrl.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.UrlGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenVersion.java b/src/main/java/io/dummymaker/annotation/simple/string/GenVersion.java index ecf330b8..47f20f7f 100644 --- a/src/main/java/io/dummymaker/annotation/simple/string/GenVersion.java +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenVersion.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.string.VersionGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/time/GenDate.java b/src/main/java/io/dummymaker/annotation/simple/time/GenDate.java index 9baf02d8..999ae249 100644 --- a/src/main/java/io/dummymaker/annotation/simple/time/GenDate.java +++ b/src/main/java/io/dummymaker/annotation/simple/time/GenDate.java @@ -2,15 +2,14 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.time.DateGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** - * This date is exported in long milliseconds format So date is the milliseconds - * since January 1, 1970, 00:00:00 GMT to 1/1/3000 + * This date is exported in long milliseconds format So date is the milliseconds since January 1, + * 1970, 00:00:00 GMT to 1/1/3000 * * @author GoodforGod * @see DateGenerator diff --git a/src/main/java/io/dummymaker/annotation/simple/time/GenDateSql.java b/src/main/java/io/dummymaker/annotation/simple/time/GenDateSql.java index 344ffe8f..527f3651 100644 --- a/src/main/java/io/dummymaker/annotation/simple/time/GenDateSql.java +++ b/src/main/java/io/dummymaker/annotation/simple/time/GenDateSql.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.time.DateSqlGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/time/GenLocalDate.java b/src/main/java/io/dummymaker/annotation/simple/time/GenLocalDate.java index 52c467c0..8c8b7285 100644 --- a/src/main/java/io/dummymaker/annotation/simple/time/GenLocalDate.java +++ b/src/main/java/io/dummymaker/annotation/simple/time/GenLocalDate.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.time.LocalDateGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/time/GenLocalDateTime.java b/src/main/java/io/dummymaker/annotation/simple/time/GenLocalDateTime.java index a8bdd2e5..eccfeaf6 100644 --- a/src/main/java/io/dummymaker/annotation/simple/time/GenLocalDateTime.java +++ b/src/main/java/io/dummymaker/annotation/simple/time/GenLocalDateTime.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.time.LocalDateTimeGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/time/GenLocalTime.java b/src/main/java/io/dummymaker/annotation/simple/time/GenLocalTime.java index 5b5ae810..51324ab2 100644 --- a/src/main/java/io/dummymaker/annotation/simple/time/GenLocalTime.java +++ b/src/main/java/io/dummymaker/annotation/simple/time/GenLocalTime.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.time.LocalTimeGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/time/GenTimeSql.java b/src/main/java/io/dummymaker/annotation/simple/time/GenTimeSql.java index f9f9a9a1..3348b353 100644 --- a/src/main/java/io/dummymaker/annotation/simple/time/GenTimeSql.java +++ b/src/main/java/io/dummymaker/annotation/simple/time/GenTimeSql.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.time.TimeGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/simple/time/GenTimestamp.java b/src/main/java/io/dummymaker/annotation/simple/time/GenTimestamp.java index 8d7da3b0..2ce06e32 100644 --- a/src/main/java/io/dummymaker/annotation/simple/time/GenTimestamp.java +++ b/src/main/java/io/dummymaker/annotation/simple/time/GenTimestamp.java @@ -2,7 +2,6 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.time.TimestampGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/src/main/java/io/dummymaker/annotation/special/GenAuto.java b/src/main/java/io/dummymaker/annotation/special/GenAuto.java index 67e12b7f..fe7d4f6f 100644 --- a/src/main/java/io/dummymaker/annotation/special/GenAuto.java +++ b/src/main/java/io/dummymaker/annotation/special/GenAuto.java @@ -1,15 +1,13 @@ package io.dummymaker.annotation.special; import io.dummymaker.annotation.core.PrimeGen; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** - * Annotations is used on classes And uses default suitable generators to fill - * class fields + * Annotations is used on classes And uses default suitable generators to fill class fields * * @author GoodforGod * @see io.dummymaker.factory.IGenSupplier diff --git a/src/main/java/io/dummymaker/annotation/special/GenCustom.java b/src/main/java/io/dummymaker/annotation/special/GenCustom.java index 02f943ba..b4402d77 100644 --- a/src/main/java/io/dummymaker/annotation/special/GenCustom.java +++ b/src/main/java/io/dummymaker/annotation/special/GenCustom.java @@ -4,15 +4,13 @@ import io.dummymaker.generator.IComplexGenerator; import io.dummymaker.generator.IGenerator; import io.dummymaker.generator.simple.NullGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** - * Use when you have your custom generator But dont want to implement your - * custom annotation + * Use when you have your custom generator But dont want to implement your custom annotation *

* Works with simple and complex generators * diff --git a/src/main/java/io/dummymaker/annotation/special/GenEmbedded.java b/src/main/java/io/dummymaker/annotation/special/GenEmbedded.java index bf54baa9..542e7656 100644 --- a/src/main/java/io/dummymaker/annotation/special/GenEmbedded.java +++ b/src/main/java/io/dummymaker/annotation/special/GenEmbedded.java @@ -2,15 +2,13 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.EmbeddedGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** - * Generate object with fields type and populate its fields marked by gen - * annotations + * Generate object with fields type and populate its fields marked by gen annotations * * @author GoodforGod * @since 09.03.2018 @@ -21,17 +19,16 @@ public @interface GenEmbedded { /** - * Maximum depth available Means that object can not be nested more than 18 - * times from origin one + * Maximum depth available Means that object can not be nested more than 18 times from origin one */ int MAX = 20; /** - * If annotation is present, than it will be 1 level depth used by factory And - * MAX level is limit depth embedded object can have + * If annotation is present, than it will be 1 level depth used by factory And MAX level is limit + * depth embedded object can have *

- * Means that object can not be nested more than 18 times from origin one Depth - * equals nested level from starting origin object + * Means that object can not be nested more than 18 times from origin one Depth equals nested level + * from starting origin object * * @return desired embedded depth */ diff --git a/src/main/java/io/dummymaker/annotation/special/GenSequence.java b/src/main/java/io/dummymaker/annotation/special/GenSequence.java index e6a15b0e..77714164 100644 --- a/src/main/java/io/dummymaker/annotation/special/GenSequence.java +++ b/src/main/java/io/dummymaker/annotation/special/GenSequence.java @@ -2,16 +2,14 @@ import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.generator.simple.SequenceGenerator; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** - * Generates numeric sequence from given number (default 0) to all - * produced/populated Dummies Works only when populate/produce list of dummies, - * not a single dummy + * Generates numeric sequence from given number (default 0) to all produced/populated Dummies Works + * only when populate/produce list of dummies, not a single dummy * * @author GoodforGod (Anton Kurako) * @since 07.06.2017 diff --git a/src/main/java/io/dummymaker/export/Format.java b/src/main/java/io/dummymaker/export/Format.java index 70a578c6..4a982b55 100644 --- a/src/main/java/io/dummymaker/export/Format.java +++ b/src/main/java/io/dummymaker/export/Format.java @@ -1,7 +1,6 @@ package io.dummymaker.export; import io.dummymaker.model.export.FieldContainer.Type; - import java.util.Arrays; import java.util.HashSet; import java.util.Set; diff --git a/src/main/java/io/dummymaker/export/IExporter.java b/src/main/java/io/dummymaker/export/IExporter.java index a48c474e..b531f179 100644 --- a/src/main/java/io/dummymaker/export/IExporter.java +++ b/src/main/java/io/dummymaker/export/IExporter.java @@ -1,10 +1,9 @@ package io.dummymaker.export; +import java.util.Collection; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.util.Collection; - /** * Allow to export objects in desired format * diff --git a/src/main/java/io/dummymaker/export/cases/CamelCase.java b/src/main/java/io/dummymaker/export/cases/CamelCase.java index 195b5df0..f238561e 100644 --- a/src/main/java/io/dummymaker/export/cases/CamelCase.java +++ b/src/main/java/io/dummymaker/export/cases/CamelCase.java @@ -4,8 +4,7 @@ import org.jetbrains.annotations.NotNull; /** - * First letter is low case, next letters are as is: Bobby - bobby, TonNy - - * tonNy + * First letter is low case, next letters are as is: Bobby - bobby, TonNy - tonNy * * @author GoodforGod * @since 21.02.2018 diff --git a/src/main/java/io/dummymaker/export/cases/KebabCase.java b/src/main/java/io/dummymaker/export/cases/KebabCase.java index 95e03afa..9dfe7210 100644 --- a/src/main/java/io/dummymaker/export/cases/KebabCase.java +++ b/src/main/java/io/dummymaker/export/cases/KebabCase.java @@ -4,9 +4,8 @@ import org.jetbrains.annotations.NotNull; /** - * Each upper letter separated with underscore symbol, and transform to low case - * EXCLUDE FIRST LETTER, first letter to low case Example: ( DummyList - - * dummy-list ) + * Each upper letter separated with underscore symbol, and transform to low case EXCLUDE FIRST + * LETTER, first letter to low case Example: ( DummyList - dummy-list ) * * @author GoodforGod * @since 21.04.2018 diff --git a/src/main/java/io/dummymaker/export/cases/PascalCase.java b/src/main/java/io/dummymaker/export/cases/PascalCase.java index ab65486a..3ff564cd 100644 --- a/src/main/java/io/dummymaker/export/cases/PascalCase.java +++ b/src/main/java/io/dummymaker/export/cases/PascalCase.java @@ -4,8 +4,7 @@ import org.jetbrains.annotations.NotNull; /** - * First letter is upper case, next letters are as is: Bobby - Bobby, tonNy - - * TonNy + * First letter is upper case, next letters are as is: Bobby - Bobby, tonNy - TonNy * * @author GoodforGod * @since 21.04.2018 diff --git a/src/main/java/io/dummymaker/export/cases/SnakeCase.java b/src/main/java/io/dummymaker/export/cases/SnakeCase.java index b93be094..020321e8 100644 --- a/src/main/java/io/dummymaker/export/cases/SnakeCase.java +++ b/src/main/java/io/dummymaker/export/cases/SnakeCase.java @@ -4,9 +4,8 @@ import org.jetbrains.annotations.NotNull; /** - * Each upper letter separated with underscore symbol, and transform to low case - * EXCLUDE FIRST LETTER, first letter to low case Example: ( DummyList - - * dummy_list ) + * Each upper letter separated with underscore symbol, and transform to low case EXCLUDE FIRST + * LETTER, first letter to low case Example: ( DummyList - dummy_list ) * * @author GoodforGod * @since 21.02.2018 diff --git a/src/main/java/io/dummymaker/export/cases/UpperSnakeCase.java b/src/main/java/io/dummymaker/export/cases/UpperSnakeCase.java index 344de11c..c7287bf5 100644 --- a/src/main/java/io/dummymaker/export/cases/UpperSnakeCase.java +++ b/src/main/java/io/dummymaker/export/cases/UpperSnakeCase.java @@ -4,9 +4,8 @@ import org.jetbrains.annotations.NotNull; /** - * Each upper letter separated with underscore symbol, and transform to upper - * case EXCLUDING FIRST LETTER, first letter to low case Example: ( DummyList - - * DUMMY_LIST ) + * Each upper letter separated with underscore symbol, and transform to upper case EXCLUDING FIRST + * LETTER, first letter to low case Example: ( DummyList - DUMMY_LIST ) * * @author GoodforGod * @since 21.02.2018 diff --git a/src/main/java/io/dummymaker/export/impl/BaseExporter.java b/src/main/java/io/dummymaker/export/impl/BaseExporter.java index f261d708..34bc6fc6 100644 --- a/src/main/java/io/dummymaker/export/impl/BaseExporter.java +++ b/src/main/java/io/dummymaker/export/impl/BaseExporter.java @@ -13,8 +13,6 @@ import io.dummymaker.util.StringUtils; import io.dummymaker.writer.IWriter; import io.dummymaker.writer.impl.FileWriter; -import org.jetbrains.annotations.NotNull; - import java.lang.reflect.Field; import java.sql.Time; import java.time.*; @@ -25,6 +23,7 @@ import java.util.function.Predicate; import java.util.stream.Collectors; import java.util.stream.Stream; +import org.jetbrains.annotations.NotNull; /** * Core exporter class with mapping and converting functionality diff --git a/src/main/java/io/dummymaker/export/impl/CsvExporter.java b/src/main/java/io/dummymaker/export/impl/CsvExporter.java index 01e86a94..ea722676 100644 --- a/src/main/java/io/dummymaker/export/impl/CsvExporter.java +++ b/src/main/java/io/dummymaker/export/impl/CsvExporter.java @@ -3,12 +3,11 @@ import io.dummymaker.model.export.FieldContainer; import io.dummymaker.model.export.FieldContainer.Type; import io.dummymaker.writer.IWriter; -import org.jetbrains.annotations.NotNull; - import java.util.Collection; import java.util.function.Function; import java.util.function.Predicate; import java.util.stream.Collectors; +import org.jetbrains.annotations.NotNull; /** * @author Anton Kurako (GoodforGod) diff --git a/src/main/java/io/dummymaker/export/impl/JsonExporter.java b/src/main/java/io/dummymaker/export/impl/JsonExporter.java index abcfbf56..3291e154 100644 --- a/src/main/java/io/dummymaker/export/impl/JsonExporter.java +++ b/src/main/java/io/dummymaker/export/impl/JsonExporter.java @@ -3,12 +3,11 @@ import io.dummymaker.model.export.FieldContainer; import io.dummymaker.util.StringUtils; import io.dummymaker.writer.IWriter; -import org.jetbrains.annotations.NotNull; - import java.util.Collection; import java.util.function.Function; import java.util.function.Predicate; import java.util.stream.Collectors; +import org.jetbrains.annotations.NotNull; /** * @author Anton Kurako (GoodforGod) diff --git a/src/main/java/io/dummymaker/export/impl/SqlExporter.java b/src/main/java/io/dummymaker/export/impl/SqlExporter.java index aa8b66b2..9ca0f392 100644 --- a/src/main/java/io/dummymaker/export/impl/SqlExporter.java +++ b/src/main/java/io/dummymaker/export/impl/SqlExporter.java @@ -4,8 +4,6 @@ import io.dummymaker.model.export.FieldContainer; import io.dummymaker.util.CollectionUtils; import io.dummymaker.writer.IWriter; -import org.jetbrains.annotations.NotNull; - import java.lang.reflect.Field; import java.lang.reflect.ParameterizedType; import java.sql.Date; @@ -19,6 +17,7 @@ import java.util.function.Predicate; import java.util.regex.Pattern; import java.util.stream.Collectors; +import org.jetbrains.annotations.NotNull; /** * Description in progress @@ -29,15 +28,13 @@ public class SqlExporter extends BaseExporter { /** - * Insert values limit per single insert query (due to 1000 row insert limit in - * SQL) + * Insert values limit per single insert query (due to 1000 row insert limit in SQL) */ private static final Integer INSERT_QUERY_LIMIT = 999; /** - * Java & Sql Type Representation Map is used to convert Java Field Data Type to - * Sql Data Type You can add your specific values here by using constructor with - * Map'String, String' + * Java & Sql Type Representation Map is used to convert Java Field Data Type to Sql Data Type You + * can add your specific values here by using constructor with Map'String, String' */ private final Map, String> dataTypes = buildDefaultDataTypeMap(); diff --git a/src/main/java/io/dummymaker/export/impl/XmlExporter.java b/src/main/java/io/dummymaker/export/impl/XmlExporter.java index 8251f9bc..d2031bd9 100644 --- a/src/main/java/io/dummymaker/export/impl/XmlExporter.java +++ b/src/main/java/io/dummymaker/export/impl/XmlExporter.java @@ -3,12 +3,11 @@ import io.dummymaker.model.export.FieldContainer; import io.dummymaker.util.StringUtils; import io.dummymaker.writer.IWriter; -import org.jetbrains.annotations.NotNull; - import java.util.Collection; import java.util.function.Function; import java.util.function.Predicate; import java.util.stream.Collectors; +import org.jetbrains.annotations.NotNull; /** * @author Anton Kurako (GoodforGod) diff --git a/src/main/java/io/dummymaker/factory/IGenFactory.java b/src/main/java/io/dummymaker/factory/IGenFactory.java index d13c4bc2..fcdd191d 100644 --- a/src/main/java/io/dummymaker/factory/IGenFactory.java +++ b/src/main/java/io/dummymaker/factory/IGenFactory.java @@ -1,13 +1,12 @@ package io.dummymaker.factory; import io.dummymaker.export.IExporter; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.util.Collection; import java.util.List; import java.util.function.Supplier; import java.util.stream.Stream; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * Factory that generates data objects Core that handles all top level logic @@ -47,8 +46,8 @@ public interface IGenFactory { @NotNull List build(@Nullable Class target, int amount); /** - * Instantiates class instance and populate its fields Use in case class have no - * empty constructor of have complex initialization logic + * Instantiates class instance and populate its fields Use in case class have no empty constructor + * of have complex initialization logic * * @param supplier of class to build * @param amount of objects to produce @@ -68,8 +67,8 @@ public interface IGenFactory { @NotNull Stream stream(@Nullable Class target, int amount); /** - * Instantiates class instance and populate its fields Use in case class have no - * empty constructor of have complex initialization logic + * Instantiates class instance and populate its fields Use in case class have no empty constructor + * of have complex initialization logic * * @param supplier of class to build * @param amount of objects to produce diff --git a/src/main/java/io/dummymaker/factory/IGenStorage.java b/src/main/java/io/dummymaker/factory/IGenStorage.java index a93e6a29..cee5fcb4 100644 --- a/src/main/java/io/dummymaker/factory/IGenStorage.java +++ b/src/main/java/io/dummymaker/factory/IGenStorage.java @@ -6,8 +6,8 @@ import org.jetbrains.annotations.Nullable; /** - * Used to extend complex generator functionality by providing Generators - * storage for performance improvement and Embedded object generation + * Used to extend complex generator functionality by providing Generators storage for performance + * improvement and Embedded object generation * * @author GoodforGod * @see io.dummymaker.annotation.special.GenEmbedded diff --git a/src/main/java/io/dummymaker/factory/IGenSupplier.java b/src/main/java/io/dummymaker/factory/IGenSupplier.java index 37dd4275..4d0632f1 100644 --- a/src/main/java/io/dummymaker/factory/IGenSupplier.java +++ b/src/main/java/io/dummymaker/factory/IGenSupplier.java @@ -1,14 +1,13 @@ package io.dummymaker.factory; import io.dummymaker.generator.IGenerator; +import java.lang.reflect.Field; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.lang.reflect.Field; - /** - * Config that providers contract for generators discovery Based on fields and - * classes for auto generation + * Config that providers contract for generators discovery Based on fields and classes for auto + * generation * * @author GoodforGod * @see io.dummymaker.annotation.special.GenAuto @@ -29,8 +28,8 @@ public interface IGenSupplier { * Finds suitable generator for field from all available generators * * @param field target - * @param type target that can sometimes differ from field type Like parent - * class, or implementation not interface + * @param type target that can sometimes differ from field type Like parent class, or + * implementation not interface * @return suitable generator */ @NotNull diff --git a/src/main/java/io/dummymaker/factory/impl/GenFactory.java b/src/main/java/io/dummymaker/factory/impl/GenFactory.java index 5b34e69d..8ab57c60 100644 --- a/src/main/java/io/dummymaker/factory/impl/GenFactory.java +++ b/src/main/java/io/dummymaker/factory/impl/GenFactory.java @@ -1,8 +1,14 @@ package io.dummymaker.factory.impl; +import static io.dummymaker.generator.simple.EmbeddedGenerator.toDepth; +import static io.dummymaker.util.CastUtils.castObject; +import static io.dummymaker.util.CastUtils.instantiate; +import static io.dummymaker.util.CollectionUtils.isEmpty; + import io.dummymaker.annotation.complex.*; import io.dummymaker.annotation.special.GenCustom; import io.dummymaker.annotation.special.GenEmbedded; +import io.dummymaker.error.GenException; import io.dummymaker.export.IExporter; import io.dummymaker.factory.IGenFactory; import io.dummymaker.generator.IComplexGenerator; @@ -11,14 +17,9 @@ import io.dummymaker.model.GenContainer; import io.dummymaker.model.GenRule; import io.dummymaker.model.GenRules; -import io.dummymaker.error.GenException; import io.dummymaker.scan.IGenAutoScanner; import io.dummymaker.scan.impl.GenRuledScanner; import io.dummymaker.util.CastUtils; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -import javax.inject.Singleton; import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.util.*; @@ -26,15 +27,12 @@ import java.util.stream.Collectors; import java.util.stream.IntStream; import java.util.stream.Stream; - -import static io.dummymaker.generator.simple.EmbeddedGenerator.toDepth; -import static io.dummymaker.util.CastUtils.castObject; -import static io.dummymaker.util.CastUtils.instantiate; -import static io.dummymaker.util.CollectionUtils.isEmpty; +import javax.inject.Singleton; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** - * Produce data object objects and fill their fields with data Successor of - * initial PopulateFactory + * Produce data object objects and fill their fields with data Successor of initial PopulateFactory * * @author GoodforGod * @see IGenerator diff --git a/src/main/java/io/dummymaker/factory/impl/GenGraphBuilder.java b/src/main/java/io/dummymaker/factory/impl/GenGraphBuilder.java index 611475fc..7696d609 100644 --- a/src/main/java/io/dummymaker/factory/impl/GenGraphBuilder.java +++ b/src/main/java/io/dummymaker/factory/impl/GenGraphBuilder.java @@ -1,5 +1,7 @@ package io.dummymaker.factory.impl; +import static io.dummymaker.util.CastUtils.isUnknownComplex; + import io.dummymaker.annotation.special.GenAuto; import io.dummymaker.model.GenRule; import io.dummymaker.model.GenRules; @@ -7,12 +9,9 @@ import io.dummymaker.model.graph.Payload; import io.dummymaker.scan.IGenAutoScanner; import io.dummymaker.scan.impl.GenAutoScanner; - import java.util.Optional; import java.util.function.Predicate; -import static io.dummymaker.util.CastUtils.isUnknownComplex; - /** * Builds embedded gen auto depth graph for storage * @@ -98,8 +97,8 @@ private Payload buildPayload(Class target, Payload parentPayload) { /** * Checks by predicate whenever node is safe to add *

- * Node is safe to add as child if such link is not presented as for parent -> - * child -> parent This is done to avoid recursive + * Node is safe to add as child if such link is not presented as for parent -> child -> parent This + * is done to avoid recursive * * @param node as graph starting point * @param filter check against diff --git a/src/main/java/io/dummymaker/factory/impl/GenStorage.java b/src/main/java/io/dummymaker/factory/impl/GenStorage.java index 8a236f5b..02451496 100644 --- a/src/main/java/io/dummymaker/factory/impl/GenStorage.java +++ b/src/main/java/io/dummymaker/factory/impl/GenStorage.java @@ -1,5 +1,7 @@ package io.dummymaker.factory.impl; +import static io.dummymaker.util.CastUtils.instantiate; + import io.dummymaker.annotation.special.GenSequence; import io.dummymaker.factory.IGenStorage; import io.dummymaker.factory.IGenSupplier; @@ -11,20 +13,16 @@ import io.dummymaker.model.graph.Node; import io.dummymaker.scan.IGenAutoScanner; import io.dummymaker.scan.impl.SequenceScanner; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.lang.reflect.Field; import java.util.*; import java.util.function.Predicate; import java.util.stream.Collectors; - -import static io.dummymaker.util.CastUtils.instantiate; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** - * Storage that facilitates generator storage, scanners, field mapping and - * nullable fields To improve factory performance and extend complex generators - * abilities + * Storage that facilitates generator storage, scanners, field mapping and nullable fields To + * improve factory performance and extend complex generators abilities * * @author GoodforGod * @since 17.07.2019 diff --git a/src/main/java/io/dummymaker/factory/impl/GenSupplier.java b/src/main/java/io/dummymaker/factory/impl/GenSupplier.java index 7dad8c7f..033adb97 100644 --- a/src/main/java/io/dummymaker/factory/impl/GenSupplier.java +++ b/src/main/java/io/dummymaker/factory/impl/GenSupplier.java @@ -1,5 +1,8 @@ package io.dummymaker.factory.impl; +import static io.dummymaker.util.CollectionUtils.getIndexWithSalt; +import static io.dummymaker.util.CollectionUtils.isEmpty; + import io.dummymaker.factory.IGenSupplier; import io.dummymaker.generator.IGenerator; import io.dummymaker.generator.complex.*; @@ -10,10 +13,6 @@ import io.dummymaker.scan.impl.ClassScanner; import io.dummymaker.util.CastUtils; import io.dummymaker.util.GenUtils; -import me.xdrop.fuzzywuzzy.FuzzySearch; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.lang.reflect.Field; import java.lang.reflect.Type; import java.util.*; @@ -21,13 +20,13 @@ import java.util.regex.Matcher; import java.util.stream.Collectors; import java.util.stream.Stream; - -import static io.dummymaker.util.CollectionUtils.getIndexWithSalt; -import static io.dummymaker.util.CollectionUtils.isEmpty; +import me.xdrop.fuzzywuzzy.FuzzySearch; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** - * Default gen config implementation for generators discovery With all library - * generators and their patterns availability + * Default gen config implementation for generators discovery With all library generators and their + * patterns availability * * @author GoodforGod * @see IGenSupplier @@ -69,8 +68,7 @@ public GenSupplier() { } /** - * Try to find most suitable generator class for target field Using field value - * class and field name + * Try to find most suitable generator class for target field Using field value class and field name *

* In case field can not be found then treat field as embedded object * diff --git a/src/main/java/io/dummymaker/generator/IComplexGenerator.java b/src/main/java/io/dummymaker/generator/IComplexGenerator.java index 95a977c0..c9c96c40 100644 --- a/src/main/java/io/dummymaker/generator/IComplexGenerator.java +++ b/src/main/java/io/dummymaker/generator/IComplexGenerator.java @@ -2,15 +2,14 @@ import io.dummymaker.annotation.core.ComplexGen; import io.dummymaker.factory.IGenStorage; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** - * Complex Generator used by ComplexGen annotation to populate fields When - * annotation have attributes or value generates for multiple field types + * Complex Generator used by ComplexGen annotation to populate fields When annotation have + * attributes or value generates for multiple field types * * @author GoodforGod * @see ComplexGen @@ -23,8 +22,7 @@ public interface IComplexGenerator extends IGenerator { * * @param annotation field was marked by * @param field for which value is generated - * @param storage factory storage with generators and embedded entity - * production + * @param storage factory storage with generators and embedded entity production * @param depth current depth of the generated field * @param parent parent object class * @return generated object diff --git a/src/main/java/io/dummymaker/generator/IGenerator.java b/src/main/java/io/dummymaker/generator/IGenerator.java index a592ee79..83067743 100644 --- a/src/main/java/io/dummymaker/generator/IGenerator.java +++ b/src/main/java/io/dummymaker/generator/IGenerator.java @@ -1,9 +1,8 @@ package io.dummymaker.generator; import io.dummymaker.annotation.core.PrimeGen; -import org.jetbrains.annotations.Nullable; - import java.util.regex.Pattern; +import org.jetbrains.annotations.Nullable; /** * Generator used by PrimeGen to populate field diff --git a/src/main/java/io/dummymaker/generator/complex/Array2DComplexGenerator.java b/src/main/java/io/dummymaker/generator/complex/Array2DComplexGenerator.java index a8eab899..27d1fa93 100644 --- a/src/main/java/io/dummymaker/generator/complex/Array2DComplexGenerator.java +++ b/src/main/java/io/dummymaker/generator/complex/Array2DComplexGenerator.java @@ -7,12 +7,11 @@ import io.dummymaker.generator.IGenerator; import io.dummymaker.generator.simple.string.IdGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.lang.annotation.Annotation; import java.lang.reflect.Array; import java.lang.reflect.Field; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * Generates two dimension arrays based on field type diff --git a/src/main/java/io/dummymaker/generator/complex/ArrayComplexGenerator.java b/src/main/java/io/dummymaker/generator/complex/ArrayComplexGenerator.java index f4851a9e..ca5fbeaa 100644 --- a/src/main/java/io/dummymaker/generator/complex/ArrayComplexGenerator.java +++ b/src/main/java/io/dummymaker/generator/complex/ArrayComplexGenerator.java @@ -7,12 +7,11 @@ import io.dummymaker.generator.IGenerator; import io.dummymaker.generator.simple.string.IdGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.lang.annotation.Annotation; import java.lang.reflect.Array; import java.lang.reflect.Field; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * Generates arrays based on field type diff --git a/src/main/java/io/dummymaker/generator/complex/BasicComplexGenerator.java b/src/main/java/io/dummymaker/generator/complex/BasicComplexGenerator.java index 6257805a..522505a3 100644 --- a/src/main/java/io/dummymaker/generator/complex/BasicComplexGenerator.java +++ b/src/main/java/io/dummymaker/generator/complex/BasicComplexGenerator.java @@ -1,5 +1,8 @@ package io.dummymaker.generator.complex; +import static io.dummymaker.util.CastUtils.generateObject; +import static io.dummymaker.util.CastUtils.instantiate; + import io.dummymaker.factory.IGenStorage; import io.dummymaker.factory.IGenSupplier; import io.dummymaker.generator.IComplexGenerator; @@ -9,16 +12,11 @@ import io.dummymaker.generator.simple.string.IdGenerator; import io.dummymaker.util.CastUtils; import io.dummymaker.util.CollectionUtils; - import java.lang.reflect.Field; -import static io.dummymaker.util.CastUtils.generateObject; -import static io.dummymaker.util.CastUtils.instantiate; - /** - * Basic complex generator implementation Can be used by other Complex - * generators Providing basic methods, to build new generators on top of this - * one + * Basic complex generator implementation Can be used by other Complex generators Providing basic + * methods, to build new generators on top of this one * * @author GoodforGod * @see IComplexGenerator diff --git a/src/main/java/io/dummymaker/generator/complex/CollectionComplexGenerator.java b/src/main/java/io/dummymaker/generator/complex/CollectionComplexGenerator.java index 2531d8e9..bedd23de 100644 --- a/src/main/java/io/dummymaker/generator/complex/CollectionComplexGenerator.java +++ b/src/main/java/io/dummymaker/generator/complex/CollectionComplexGenerator.java @@ -3,13 +3,12 @@ import io.dummymaker.factory.IGenStorage; import io.dummymaker.generator.IComplexGenerator; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.*; +import org.jetbrains.annotations.NotNull; /** - * Basic collection complex generator implementation Can be used by other - * collection complex generators + * Basic collection complex generator implementation Can be used by other collection complex + * generators * * @author GoodforGod * @see IComplexGenerator diff --git a/src/main/java/io/dummymaker/generator/complex/EnumComplexGenerator.java b/src/main/java/io/dummymaker/generator/complex/EnumComplexGenerator.java index 2b63f5af..0f4e5adf 100644 --- a/src/main/java/io/dummymaker/generator/complex/EnumComplexGenerator.java +++ b/src/main/java/io/dummymaker/generator/complex/EnumComplexGenerator.java @@ -3,8 +3,6 @@ import io.dummymaker.annotation.complex.GenEnum; import io.dummymaker.factory.IGenStorage; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.util.Arrays; @@ -13,6 +11,7 @@ import java.util.Set; import java.util.function.Predicate; import java.util.stream.Collectors; +import org.jetbrains.annotations.NotNull; /** * Generates enum values diff --git a/src/main/java/io/dummymaker/generator/complex/ListComplexGenerator.java b/src/main/java/io/dummymaker/generator/complex/ListComplexGenerator.java index 8a7646cd..ce23e304 100644 --- a/src/main/java/io/dummymaker/generator/complex/ListComplexGenerator.java +++ b/src/main/java/io/dummymaker/generator/complex/ListComplexGenerator.java @@ -1,5 +1,7 @@ package io.dummymaker.generator.complex; +import static io.dummymaker.util.CastUtils.getGenericType; + import io.dummymaker.annotation.complex.GenList; import io.dummymaker.annotation.special.GenEmbedded; import io.dummymaker.factory.IGenStorage; @@ -7,17 +9,14 @@ import io.dummymaker.generator.IGenerator; import io.dummymaker.generator.simple.string.IdGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; - -import static io.dummymaker.util.CastUtils.getGenericType; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * Generates List for GenList annotation diff --git a/src/main/java/io/dummymaker/generator/complex/LongComplexGenerator.java b/src/main/java/io/dummymaker/generator/complex/LongComplexGenerator.java index 92ca27ed..206a4783 100644 --- a/src/main/java/io/dummymaker/generator/complex/LongComplexGenerator.java +++ b/src/main/java/io/dummymaker/generator/complex/LongComplexGenerator.java @@ -1,17 +1,16 @@ package io.dummymaker.generator.complex; +import static io.dummymaker.util.CastUtils.castObject; + import io.dummymaker.annotation.simple.number.GenInt; import io.dummymaker.annotation.simple.number.GenLong; import io.dummymaker.factory.IGenStorage; import io.dummymaker.generator.IComplexGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; - -import static io.dummymaker.util.CastUtils.castObject; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * Generates integer/long values in specified range diff --git a/src/main/java/io/dummymaker/generator/complex/MapComplexGenerator.java b/src/main/java/io/dummymaker/generator/complex/MapComplexGenerator.java index c3bc6586..b70e3f04 100644 --- a/src/main/java/io/dummymaker/generator/complex/MapComplexGenerator.java +++ b/src/main/java/io/dummymaker/generator/complex/MapComplexGenerator.java @@ -1,5 +1,7 @@ package io.dummymaker.generator.complex; +import static io.dummymaker.util.CastUtils.getGenericType; + import io.dummymaker.annotation.complex.GenMap; import io.dummymaker.annotation.special.GenEmbedded; import io.dummymaker.factory.IGenStorage; @@ -7,16 +9,13 @@ import io.dummymaker.generator.IGenerator; import io.dummymaker.generator.simple.string.IdGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.util.*; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentSkipListMap; - -import static io.dummymaker.util.CastUtils.getGenericType; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * "default comment" diff --git a/src/main/java/io/dummymaker/generator/complex/SetComplexGenerator.java b/src/main/java/io/dummymaker/generator/complex/SetComplexGenerator.java index 6dec2f2d..1d6f46d2 100644 --- a/src/main/java/io/dummymaker/generator/complex/SetComplexGenerator.java +++ b/src/main/java/io/dummymaker/generator/complex/SetComplexGenerator.java @@ -1,5 +1,7 @@ package io.dummymaker.generator.complex; +import static io.dummymaker.util.CastUtils.getGenericType; + import io.dummymaker.annotation.complex.GenSet; import io.dummymaker.annotation.special.GenEmbedded; import io.dummymaker.factory.IGenStorage; @@ -7,9 +9,6 @@ import io.dummymaker.generator.IGenerator; import io.dummymaker.generator.simple.string.IdGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.util.HashSet; @@ -18,8 +17,8 @@ import java.util.TreeSet; import java.util.concurrent.ConcurrentSkipListSet; import java.util.concurrent.CopyOnWriteArraySet; - -import static io.dummymaker.util.CastUtils.getGenericType; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * Generates Set or GenSet annotation diff --git a/src/main/java/io/dummymaker/generator/complex/TimeComplexGenerator.java b/src/main/java/io/dummymaker/generator/complex/TimeComplexGenerator.java index 57eb7757..ee2e26f6 100644 --- a/src/main/java/io/dummymaker/generator/complex/TimeComplexGenerator.java +++ b/src/main/java/io/dummymaker/generator/complex/TimeComplexGenerator.java @@ -1,5 +1,8 @@ package io.dummymaker.generator.complex; +import static io.dummymaker.util.CastUtils.castObject; +import static io.dummymaker.util.StringUtils.isNotBlank; + import io.dummymaker.annotation.complex.GenTime; import io.dummymaker.factory.IGenStorage; import io.dummymaker.generator.IComplexGenerator; @@ -7,11 +10,6 @@ import io.dummymaker.generator.ITimeGenerator; import io.dummymaker.generator.simple.time.*; import io.dummymaker.util.CastUtils; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.sql.Time; @@ -21,9 +19,10 @@ import java.time.LocalTime; import java.time.format.DateTimeFormatter; import java.util.Date; - -import static io.dummymaker.util.CastUtils.castObject; -import static io.dummymaker.util.StringUtils.isNotBlank; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * Generate time object for GenTime annotation diff --git a/src/main/java/io/dummymaker/generator/simple/BooleanGenerator.java b/src/main/java/io/dummymaker/generator/simple/BooleanGenerator.java index 30c4b7a9..8835a824 100644 --- a/src/main/java/io/dummymaker/generator/simple/BooleanGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/BooleanGenerator.java @@ -1,9 +1,8 @@ package io.dummymaker.generator.simple; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.concurrent.ThreadLocalRandom; +import org.jetbrains.annotations.NotNull; /** * Generates boolean values diff --git a/src/main/java/io/dummymaker/generator/simple/NullGenerator.java b/src/main/java/io/dummymaker/generator/simple/NullGenerator.java index 72e63c53..80d9be29 100644 --- a/src/main/java/io/dummymaker/generator/simple/NullGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/NullGenerator.java @@ -2,11 +2,10 @@ import io.dummymaker.factory.IGenStorage; import io.dummymaker.generator.IComplexGenerator; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * Generates null values diff --git a/src/main/java/io/dummymaker/generator/simple/SequenceGenerator.java b/src/main/java/io/dummymaker/generator/simple/SequenceGenerator.java index 22e47b09..98d44a58 100644 --- a/src/main/java/io/dummymaker/generator/simple/SequenceGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/SequenceGenerator.java @@ -5,8 +5,7 @@ import org.jetbrains.annotations.NotNull; /** - * Used to generate enumerated sequence for dummies Used by populate factory and - * genEnumerate + * Used to generate enumerated sequence for dummies Used by populate factory and genEnumerate * * @author GoodforGod * @see GenSequence diff --git a/src/main/java/io/dummymaker/generator/simple/UuidGenerator.java b/src/main/java/io/dummymaker/generator/simple/UuidGenerator.java index 6559c256..fcdff398 100644 --- a/src/main/java/io/dummymaker/generator/simple/UuidGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/UuidGenerator.java @@ -1,9 +1,8 @@ package io.dummymaker.generator.simple; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.UUID; +import org.jetbrains.annotations.NotNull; /** * Generates UUIDs diff --git a/src/main/java/io/dummymaker/generator/simple/number/BigDecimalGenerator.java b/src/main/java/io/dummymaker/generator/simple/number/BigDecimalGenerator.java index 4219c0ca..cc64ca44 100644 --- a/src/main/java/io/dummymaker/generator/simple/number/BigDecimalGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/number/BigDecimalGenerator.java @@ -1,12 +1,11 @@ package io.dummymaker.generator.simple.number; +import static java.util.concurrent.ThreadLocalRandom.current; + import io.dummymaker.generator.IGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; - import java.math.BigDecimal; - -import static java.util.concurrent.ThreadLocalRandom.current; +import org.jetbrains.annotations.NotNull; /** * Generates big decimal numbers diff --git a/src/main/java/io/dummymaker/generator/simple/number/BigIntegerGenerator.java b/src/main/java/io/dummymaker/generator/simple/number/BigIntegerGenerator.java index 7ff87cf8..9726a9cb 100644 --- a/src/main/java/io/dummymaker/generator/simple/number/BigIntegerGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/number/BigIntegerGenerator.java @@ -2,9 +2,8 @@ import io.dummymaker.generator.IGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; - import java.math.BigInteger; +import org.jetbrains.annotations.NotNull; /** * Generates big integer numbers diff --git a/src/main/java/io/dummymaker/generator/simple/number/CharacterGenerator.java b/src/main/java/io/dummymaker/generator/simple/number/CharacterGenerator.java index 1ab20019..adc13763 100644 --- a/src/main/java/io/dummymaker/generator/simple/number/CharacterGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/number/CharacterGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.number; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.generator.IGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; - import java.util.concurrent.ThreadLocalRandom; import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates random UTF-8 character in range of (97-122) diff --git a/src/main/java/io/dummymaker/generator/simple/number/DoubleGenerator.java b/src/main/java/io/dummymaker/generator/simple/number/DoubleGenerator.java index 178b74e3..7cba32eb 100644 --- a/src/main/java/io/dummymaker/generator/simple/number/DoubleGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/number/DoubleGenerator.java @@ -1,9 +1,8 @@ package io.dummymaker.generator.simple.number; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.concurrent.ThreadLocalRandom; +import org.jetbrains.annotations.NotNull; /** * Generates double from 0 to 1 diff --git a/src/main/java/io/dummymaker/generator/simple/number/FloatGenerator.java b/src/main/java/io/dummymaker/generator/simple/number/FloatGenerator.java index dfdd484d..6171a45b 100644 --- a/src/main/java/io/dummymaker/generator/simple/number/FloatGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/number/FloatGenerator.java @@ -1,9 +1,8 @@ package io.dummymaker.generator.simple.number; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.concurrent.ThreadLocalRandom; +import org.jetbrains.annotations.NotNull; /** * Generates float number from 0 to 1 diff --git a/src/main/java/io/dummymaker/generator/simple/number/IntegerGenerator.java b/src/main/java/io/dummymaker/generator/simple/number/IntegerGenerator.java index 5983209f..7a3e7830 100644 --- a/src/main/java/io/dummymaker/generator/simple/number/IntegerGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/number/IntegerGenerator.java @@ -1,12 +1,11 @@ package io.dummymaker.generator.simple.number; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.generator.IGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates int from 0 to Integer.MAX_VALUE diff --git a/src/main/java/io/dummymaker/generator/simple/number/IntegerSmallGenerator.java b/src/main/java/io/dummymaker/generator/simple/number/IntegerSmallGenerator.java index 3a655aa7..1ccd19b2 100644 --- a/src/main/java/io/dummymaker/generator/simple/number/IntegerSmallGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/number/IntegerSmallGenerator.java @@ -1,12 +1,11 @@ package io.dummymaker.generator.simple.number; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.generator.IGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates small integer numbers from 1 up to 100 diff --git a/src/main/java/io/dummymaker/generator/simple/number/IntegetMediumGenerator.java b/src/main/java/io/dummymaker/generator/simple/number/IntegetMediumGenerator.java index 7e5cbf97..45b9ce70 100644 --- a/src/main/java/io/dummymaker/generator/simple/number/IntegetMediumGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/number/IntegetMediumGenerator.java @@ -1,12 +1,11 @@ package io.dummymaker.generator.simple.number; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.generator.IGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates medium integer values between 100000 and 999999 diff --git a/src/main/java/io/dummymaker/generator/simple/number/UnixTimeGenerator.java b/src/main/java/io/dummymaker/generator/simple/number/UnixTimeGenerator.java index a2216a9a..429c80a2 100644 --- a/src/main/java/io/dummymaker/generator/simple/number/UnixTimeGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/number/UnixTimeGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.number; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.generator.IGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; - import java.time.Instant; import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates Unix Time as long diff --git a/src/main/java/io/dummymaker/generator/simple/string/AddressFullGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/AddressFullGenerator.java index 73ee1b6a..779e2376 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/AddressFullGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/AddressFullGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.CountryBundle; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Country with address diff --git a/src/main/java/io/dummymaker/generator/simple/string/AddressGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/AddressGenerator.java index 81311261..d6ccc1a7 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/AddressGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/AddressGenerator.java @@ -1,16 +1,15 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.CityBundle; import io.dummymaker.bundle.impl.DistrictBundle; import io.dummymaker.bundle.impl.StreetBundle; import io.dummymaker.generator.IGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Full address with street, city, district and house number diff --git a/src/main/java/io/dummymaker/generator/simple/string/BtcAddressGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/BtcAddressGenerator.java index b67ee785..5c54ede3 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/BtcAddressGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/BtcAddressGenerator.java @@ -1,10 +1,9 @@ package io.dummymaker.generator.simple.string; -import org.jetbrains.annotations.NotNull; +import static java.util.regex.Pattern.CASE_INSENSITIVE; import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates bitcoin address diff --git a/src/main/java/io/dummymaker/generator/simple/string/BtcTxHashGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/BtcTxHashGenerator.java index 961d5d1d..a1044842 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/BtcTxHashGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/BtcTxHashGenerator.java @@ -1,10 +1,9 @@ package io.dummymaker.generator.simple.string; -import org.jetbrains.annotations.NotNull; +import static java.util.regex.Pattern.CASE_INSENSITIVE; import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates bitcoin txhash or block hash diff --git a/src/main/java/io/dummymaker/generator/simple/string/CadastralGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/CadastralGenerator.java index f9519bcb..6ed02f0a 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/CadastralGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/CadastralGenerator.java @@ -1,12 +1,11 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.generator.IGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Cadastral number generator diff --git a/src/main/java/io/dummymaker/generator/simple/string/CityGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/CityGenerator.java index a45fd1d1..883d505d 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/CityGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/CityGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.CityBundle; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates city in english as a string diff --git a/src/main/java/io/dummymaker/generator/simple/string/CompanyGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/CompanyGenerator.java index 8141f0d1..0dc10588 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/CompanyGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/CompanyGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.CompanyBundle; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates company name as a string diff --git a/src/main/java/io/dummymaker/generator/simple/string/CountryGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/CountryGenerator.java index d64948c5..f3cf0151 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/CountryGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/CountryGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.CountryBundle; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates country as a string diff --git a/src/main/java/io/dummymaker/generator/simple/string/DescriptionGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/DescriptionGenerator.java index 51b1a717..4d367990 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/DescriptionGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/DescriptionGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.PhraseBundle; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates phrase description analog diff --git a/src/main/java/io/dummymaker/generator/simple/string/DistrictGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/DistrictGenerator.java index 8b945115..00ef2f71 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/DistrictGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/DistrictGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.DistrictBundle; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates district diff --git a/src/main/java/io/dummymaker/generator/simple/string/DocumentGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/DocumentGenerator.java index 72b119cf..21e1ac16 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/DocumentGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/DocumentGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.string; +import static java.util.concurrent.ThreadLocalRandom.current; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.generator.IGenerator; import io.dummymaker.generator.simple.number.CharacterGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.concurrent.ThreadLocalRandom.current; -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates document, password identifiers as a string diff --git a/src/main/java/io/dummymaker/generator/simple/string/EmailGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/EmailGenerator.java index b15cc3dd..06666910 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/EmailGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/EmailGenerator.java @@ -1,15 +1,14 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.DomainBundle; import io.dummymaker.bundle.impl.EmailServicesBundle; import io.dummymaker.bundle.impl.LoginBundle; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates email as a string diff --git a/src/main/java/io/dummymaker/generator/simple/string/EthAddressGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/EthAddressGenerator.java index ed922faa..8fa69e03 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/EthAddressGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/EthAddressGenerator.java @@ -1,10 +1,9 @@ package io.dummymaker.generator.simple.string; -import org.jetbrains.annotations.NotNull; +import static java.util.regex.Pattern.CASE_INSENSITIVE; import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates ethereum address diff --git a/src/main/java/io/dummymaker/generator/simple/string/EthTxHashGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/EthTxHashGenerator.java index b0f41ba5..fce5e804 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/EthTxHashGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/EthTxHashGenerator.java @@ -1,10 +1,9 @@ package io.dummymaker.generator.simple.string; -import org.jetbrains.annotations.NotNull; +import static java.util.regex.Pattern.CASE_INSENSITIVE; import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates ethereum txhash diff --git a/src/main/java/io/dummymaker/generator/simple/string/ExtensionGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/ExtensionGenerator.java index 998d27ab..c64cb59a 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/ExtensionGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/ExtensionGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.ExtensionBundle; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.Nullable; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.Nullable; /** * Generates files extensions diff --git a/src/main/java/io/dummymaker/generator/simple/string/FileGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/FileGenerator.java index a0d2bea2..928b6801 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/FileGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/FileGenerator.java @@ -1,14 +1,13 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.ExtensionBundle; import io.dummymaker.bundle.impl.NounBundle; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.Nullable; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.Nullable; /** * Generates file names with extensions diff --git a/src/main/java/io/dummymaker/generator/simple/string/FormatGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/FormatGenerator.java index 4ac9b804..cb4012a2 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/FormatGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/FormatGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.FormatBundle; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates programming format name diff --git a/src/main/java/io/dummymaker/generator/simple/string/GenderGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/GenderGenerator.java index 37b2705a..5bfcf4f3 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/GenderGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/GenderGenerator.java @@ -1,12 +1,11 @@ package io.dummymaker.generator.simple.string; -import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; +import static java.util.regex.Pattern.CASE_INSENSITIVE; +import io.dummymaker.generator.IGenerator; import java.util.concurrent.ThreadLocalRandom; import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates gender as string diff --git a/src/main/java/io/dummymaker/generator/simple/string/HexDataGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/HexDataGenerator.java index a337c0a3..35e1006f 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/HexDataGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/HexDataGenerator.java @@ -1,12 +1,11 @@ package io.dummymaker.generator.simple.string; -import org.jetbrains.annotations.NotNull; +import static java.util.regex.Pattern.CASE_INSENSITIVE; import java.util.UUID; import java.util.concurrent.ThreadLocalRandom; import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates hex data diff --git a/src/main/java/io/dummymaker/generator/simple/string/HexNumberGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/HexNumberGenerator.java index 4b7dc57e..ae881f99 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/HexNumberGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/HexNumberGenerator.java @@ -1,12 +1,11 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.generator.IGenerator; import io.dummymaker.generator.simple.number.LongGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates number represented as hex string diff --git a/src/main/java/io/dummymaker/generator/simple/string/HouseGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/HouseGenerator.java index e27f8b24..2860ee34 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/HouseGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/HouseGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.generator.IGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; - import java.util.concurrent.ThreadLocalRandom; import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * House, block, room generator diff --git a/src/main/java/io/dummymaker/generator/simple/string/IdBigGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/IdBigGenerator.java index fe44ac1a..d82a5cc1 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/IdBigGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/IdBigGenerator.java @@ -1,9 +1,8 @@ package io.dummymaker.generator.simple.string; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.UUID; +import org.jetbrains.annotations.NotNull; /** * Generates random string 36 character length diff --git a/src/main/java/io/dummymaker/generator/simple/string/IdGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/IdGenerator.java index eb29e893..33214971 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/IdGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/IdGenerator.java @@ -1,10 +1,9 @@ package io.dummymaker.generator.simple.string; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.UUID; import java.util.regex.Pattern; +import org.jetbrains.annotations.NotNull; /** * Generates id based on UUID diff --git a/src/main/java/io/dummymaker/generator/simple/string/JobGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/JobGenerator.java index cb514e9f..d1a50a3e 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/JobGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/JobGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.JobBundle; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Job name generator diff --git a/src/main/java/io/dummymaker/generator/simple/string/JsonGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/JsonGenerator.java index b6d66cac..778ebe85 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/JsonGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/JsonGenerator.java @@ -1,14 +1,13 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.generator.IGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; - import java.util.HashSet; import java.util.Set; import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates dummy JSON object as String diff --git a/src/main/java/io/dummymaker/generator/simple/string/LoginGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/LoginGenerator.java index 7000b7fd..839965bc 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/LoginGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/LoginGenerator.java @@ -1,14 +1,13 @@ package io.dummymaker.generator.simple.string; +import static java.util.concurrent.ThreadLocalRandom.current; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.LoginBundle; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.concurrent.ThreadLocalRandom.current; -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates nicknames as a string diff --git a/src/main/java/io/dummymaker/generator/simple/string/MiddleNameGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/MiddleNameGenerator.java index 03eded4e..97183b8e 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/MiddleNameGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/MiddleNameGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.MiddleNameBundle; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Middle name generator diff --git a/src/main/java/io/dummymaker/generator/simple/string/NameGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/NameGenerator.java index 7413f24a..a20ab40d 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/NameGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/NameGenerator.java @@ -1,15 +1,14 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.FemaleNameBundle; import io.dummymaker.bundle.impl.MaleNameBundle; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.concurrent.ThreadLocalRandom; import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates names male and female as a string diff --git a/src/main/java/io/dummymaker/generator/simple/string/NounGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/NounGenerator.java index 8f04cf35..0d13fc1e 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/NounGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/NounGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.NounBundle; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates single noun word diff --git a/src/main/java/io/dummymaker/generator/simple/string/PhoneGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/PhoneGenerator.java index e5347a95..f88c8f3e 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/PhoneGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/PhoneGenerator.java @@ -1,12 +1,11 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.generator.IGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates simple mobile phone as a string diff --git a/src/main/java/io/dummymaker/generator/simple/string/ProductGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/ProductGenerator.java index 4ac1a7a9..d4468f0d 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/ProductGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/ProductGenerator.java @@ -1,15 +1,14 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.ProductBundle; import io.dummymaker.generator.IGenerator; +import java.util.regex.Pattern; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; - /** * Generates product names * diff --git a/src/main/java/io/dummymaker/generator/simple/string/RoleGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/RoleGenerator.java index 8098df98..b7a9684e 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/RoleGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/RoleGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.JobBundle; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.Nullable; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.Nullable; /** * Generates roles diff --git a/src/main/java/io/dummymaker/generator/simple/string/StreetGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/StreetGenerator.java index 4e9fc140..230efa10 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/StreetGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/StreetGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.StreetBundle; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Street name generator diff --git a/src/main/java/io/dummymaker/generator/simple/string/StringGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/StringGenerator.java index 61f43026..b122fba8 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/StringGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/StringGenerator.java @@ -1,12 +1,11 @@ package io.dummymaker.generator.simple.string; -import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; +import static java.util.regex.Pattern.CASE_INSENSITIVE; +import io.dummymaker.generator.IGenerator; import java.util.UUID; import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates random string like "aag2151tgdsfa9352tf" diff --git a/src/main/java/io/dummymaker/generator/simple/string/SurnameGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/SurnameGenerator.java index 0a103550..a02f1bbb 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/SurnameGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/SurnameGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.SurnameBundle; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Surname generator diff --git a/src/main/java/io/dummymaker/generator/simple/string/TagGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/TagGenerator.java index f8ce56c1..be69f415 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/TagGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/TagGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.TagsBundle; import io.dummymaker.generator.IGenerator; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates tag as a string like #tag diff --git a/src/main/java/io/dummymaker/generator/simple/string/TypeGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/TypeGenerator.java index d92ffa2e..62cc88ec 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/TypeGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/TypeGenerator.java @@ -1,14 +1,13 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.generator.IGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; - import java.util.Arrays; import java.util.List; import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates type as one of adjectives ladders level of 'Good, Bad' diff --git a/src/main/java/io/dummymaker/generator/simple/string/UriGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/UriGenerator.java index c0212bde..1a2366ef 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/UriGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/UriGenerator.java @@ -1,11 +1,10 @@ package io.dummymaker.generator.simple.string; -import org.jetbrains.annotations.NotNull; +import static java.util.regex.Pattern.CASE_INSENSITIVE; import java.util.concurrent.ThreadLocalRandom; import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates URI as string diff --git a/src/main/java/io/dummymaker/generator/simple/string/UrlGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/UrlGenerator.java index dc011ee0..ae717ae8 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/UrlGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/UrlGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.bundle.IBundle; import io.dummymaker.bundle.impl.DomainBundle; import io.dummymaker.bundle.impl.LoginBundle; -import org.jetbrains.annotations.NotNull; - import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates URL as string diff --git a/src/main/java/io/dummymaker/generator/simple/string/VersionGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/VersionGenerator.java index e725f3cc..d9b72933 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/VersionGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/VersionGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.string; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.generator.IGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; - import java.util.concurrent.ThreadLocalRandom; import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates version as string (like 1.1.0-SNAPSHOT) or without SNAPSHOT suffix diff --git a/src/main/java/io/dummymaker/generator/simple/time/DateGenerator.java b/src/main/java/io/dummymaker/generator/simple/time/DateGenerator.java index 5c93582d..63bc7ee0 100644 --- a/src/main/java/io/dummymaker/generator/simple/time/DateGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/time/DateGenerator.java @@ -3,13 +3,12 @@ import io.dummymaker.annotation.complex.GenTime; import io.dummymaker.generator.ITimeGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; - import java.util.Date; +import org.jetbrains.annotations.NotNull; /** - * Generates old java date type This date is exported in long milliseconds - * format So date is the milliseconds since January 1, 1970, 00:00:00 GMT + * Generates old java date type This date is exported in long milliseconds format So date is the + * milliseconds since January 1, 1970, 00:00:00 GMT * * @author GoodforGod * @see Date diff --git a/src/main/java/io/dummymaker/generator/simple/time/DateSqlGenerator.java b/src/main/java/io/dummymaker/generator/simple/time/DateSqlGenerator.java index 8ef7b3c0..409f61ee 100644 --- a/src/main/java/io/dummymaker/generator/simple/time/DateSqlGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/time/DateSqlGenerator.java @@ -2,9 +2,8 @@ import io.dummymaker.annotation.complex.GenTime; import io.dummymaker.generator.ITimeGenerator; -import org.jetbrains.annotations.NotNull; - import java.sql.Date; +import org.jetbrains.annotations.NotNull; /** * Generates Sql Time from 1970 to 3000 Year diff --git a/src/main/java/io/dummymaker/generator/simple/time/LocalDateGenerator.java b/src/main/java/io/dummymaker/generator/simple/time/LocalDateGenerator.java index fb4bbb58..de750fc0 100644 --- a/src/main/java/io/dummymaker/generator/simple/time/LocalDateGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/time/LocalDateGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.time; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.annotation.complex.GenTime; import io.dummymaker.generator.ITimeGenerator; -import org.jetbrains.annotations.NotNull; - import java.time.LocalDate; import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates LocalDate objects with range from 1970 to 3000 diff --git a/src/main/java/io/dummymaker/generator/simple/time/LocalDateTimeGenerator.java b/src/main/java/io/dummymaker/generator/simple/time/LocalDateTimeGenerator.java index 6764d676..a36d6e8e 100644 --- a/src/main/java/io/dummymaker/generator/simple/time/LocalDateTimeGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/time/LocalDateTimeGenerator.java @@ -1,19 +1,17 @@ package io.dummymaker.generator.simple.time; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.annotation.complex.GenTime; import io.dummymaker.generator.ITimeGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; - import java.time.LocalDateTime; import java.time.ZoneOffset; import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** - * Generates LocalDateTime from 1970 to 3000 (exclusive) year with seconds - * precision + * Generates LocalDateTime from 1970 to 3000 (exclusive) year with seconds precision * * @author GoodforGod * @see LocalDateTime diff --git a/src/main/java/io/dummymaker/generator/simple/time/LocalTimeGenerator.java b/src/main/java/io/dummymaker/generator/simple/time/LocalTimeGenerator.java index f6b95094..22865ebf 100644 --- a/src/main/java/io/dummymaker/generator/simple/time/LocalTimeGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/time/LocalTimeGenerator.java @@ -1,13 +1,12 @@ package io.dummymaker.generator.simple.time; +import static java.util.regex.Pattern.CASE_INSENSITIVE; + import io.dummymaker.annotation.complex.GenTime; import io.dummymaker.generator.ITimeGenerator; -import org.jetbrains.annotations.NotNull; - import java.time.LocalTime; import java.util.regex.Pattern; - -import static java.util.regex.Pattern.CASE_INSENSITIVE; +import org.jetbrains.annotations.NotNull; /** * Generates localTime object with range from 00:00:00 to 24:00:00 diff --git a/src/main/java/io/dummymaker/generator/simple/time/TimeGenerator.java b/src/main/java/io/dummymaker/generator/simple/time/TimeGenerator.java index 0a74787f..d1c9d5b6 100644 --- a/src/main/java/io/dummymaker/generator/simple/time/TimeGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/time/TimeGenerator.java @@ -2,9 +2,8 @@ import io.dummymaker.annotation.complex.GenTime; import io.dummymaker.generator.ITimeGenerator; -import org.jetbrains.annotations.NotNull; - import java.sql.Time; +import org.jetbrains.annotations.NotNull; /** * Generates Sql Time from 1970 to 3000 Year diff --git a/src/main/java/io/dummymaker/generator/simple/time/TimestampGenerator.java b/src/main/java/io/dummymaker/generator/simple/time/TimestampGenerator.java index ab409a63..c481915e 100644 --- a/src/main/java/io/dummymaker/generator/simple/time/TimestampGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/time/TimestampGenerator.java @@ -2,9 +2,8 @@ import io.dummymaker.annotation.complex.GenTime; import io.dummymaker.generator.ITimeGenerator; -import org.jetbrains.annotations.NotNull; - import java.sql.Timestamp; +import org.jetbrains.annotations.NotNull; /** * Generates Sql Timestamp from 1970 to 3000 Year with nanoseconds precision diff --git a/src/main/java/io/dummymaker/model/GenContainer.java b/src/main/java/io/dummymaker/model/GenContainer.java index 24c9d135..c8a70a18 100644 --- a/src/main/java/io/dummymaker/model/GenContainer.java +++ b/src/main/java/io/dummymaker/model/GenContainer.java @@ -7,13 +7,12 @@ import io.dummymaker.generator.IGenerator; import io.dummymaker.generator.simple.EmbeddedGenerator; import io.dummymaker.generator.simple.NullGenerator; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; /** - * Container with core annotation and its child marker annotation Used by - * populate scanners and factories + * Container with core annotation and its child marker annotation Used by populate scanners and + * factories * * @author GoodforGod * @see PrimeGen diff --git a/src/main/java/io/dummymaker/model/GenFieldRule.java b/src/main/java/io/dummymaker/model/GenFieldRule.java index 48fb4b41..7f6363a8 100644 --- a/src/main/java/io/dummymaker/model/GenFieldRule.java +++ b/src/main/java/io/dummymaker/model/GenFieldRule.java @@ -1,7 +1,6 @@ package io.dummymaker.model; import io.dummymaker.generator.IGenerator; - import java.util.*; /** diff --git a/src/main/java/io/dummymaker/model/GenRule.java b/src/main/java/io/dummymaker/model/GenRule.java index 34397a04..95ed8424 100644 --- a/src/main/java/io/dummymaker/model/GenRule.java +++ b/src/main/java/io/dummymaker/model/GenRule.java @@ -2,11 +2,10 @@ import io.dummymaker.generator.IGenerator; import io.dummymaker.util.CollectionUtils; -import org.jetbrains.annotations.NotNull; - import java.lang.reflect.Field; import java.util.*; import java.util.stream.Collectors; +import org.jetbrains.annotations.NotNull; /** * Rule for settings generator type for specific field name or field type @@ -47,8 +46,8 @@ private GenRule(Class target, boolean isAuto, int depth) { } /** - * Gen auto class rule with default 1 depth All fields will be auto generated - * for such class if not ignored otherwise + * Gen auto class rule with default 1 depth All fields will be auto generated for such class if not + * ignored otherwise * * @param target for rule * @return gen auto class rule @@ -62,8 +61,8 @@ private GenRule(Class target, boolean isAuto, int depth) { } /** - * Gen auto class rule with specified depth All fields will be auto generated - * for such class if not ignored otherwise + * Gen auto class rule with specified depth All fields will be auto generated for such class if not + * ignored otherwise * * @param target for rule * @param depth to set @@ -130,8 +129,7 @@ public boolean isIgnored(Field field) { * Retries desired generator for field * * @param field targeted - * @return generator for named field or optional generator for specific type - * from rules + * @return generator for named field or optional generator for specific type from rules */ public @NotNull Optional> getDesiredExample(Field field) { if (field == null || isIgnored(field)) @@ -156,8 +154,7 @@ public boolean isIgnored(Field field) { * Retries desired generator for field * * @param field targeted - * @return generator for named field or optional generator for specific type - * from rules + * @return generator for named field or optional generator for specific type from rules */ public @NotNull Optional> getDesired(Field field) { if (field == null || isIgnored(field)) diff --git a/src/main/java/io/dummymaker/model/GenRules.java b/src/main/java/io/dummymaker/model/GenRules.java index 5426593f..52960bba 100644 --- a/src/main/java/io/dummymaker/model/GenRules.java +++ b/src/main/java/io/dummymaker/model/GenRules.java @@ -1,15 +1,13 @@ package io.dummymaker.model; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.util.*; import java.util.stream.Collectors; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** - * Rules for field type and field name generators overrides Allows to override - * gen auto generator setup without annotations Just by passing this config to - * factory + * Rules for field type and field name generators overrides Allows to override gen auto generator + * setup without annotations Just by passing this config to factory * * @author GoodforGod * @see io.dummymaker.factory.IGenFactory diff --git a/src/main/java/io/dummymaker/model/Pair.java b/src/main/java/io/dummymaker/model/Pair.java index 88732a8e..12760e6e 100644 --- a/src/main/java/io/dummymaker/model/Pair.java +++ b/src/main/java/io/dummymaker/model/Pair.java @@ -1,10 +1,9 @@ package io.dummymaker.model; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * Class for storing pairs diff --git a/src/main/java/io/dummymaker/model/export/DateFieldContainer.java b/src/main/java/io/dummymaker/model/export/DateFieldContainer.java index c216d7d4..88ae430c 100644 --- a/src/main/java/io/dummymaker/model/export/DateFieldContainer.java +++ b/src/main/java/io/dummymaker/model/export/DateFieldContainer.java @@ -1,7 +1,6 @@ package io.dummymaker.model.export; import io.dummymaker.annotation.complex.GenTime; - import java.lang.reflect.Field; /** diff --git a/src/main/java/io/dummymaker/model/export/FieldContainer.java b/src/main/java/io/dummymaker/model/export/FieldContainer.java index 4058b775..564b0cf2 100644 --- a/src/main/java/io/dummymaker/model/export/FieldContainer.java +++ b/src/main/java/io/dummymaker/model/export/FieldContainer.java @@ -3,7 +3,6 @@ import io.dummymaker.export.Cases; import io.dummymaker.export.ICase; import io.dummymaker.util.StringUtils; - import java.lang.reflect.Field; /** diff --git a/src/main/java/io/dummymaker/model/export/FieldContainerFactory.java b/src/main/java/io/dummymaker/model/export/FieldContainerFactory.java index fc4f0987..d0b49afe 100644 --- a/src/main/java/io/dummymaker/model/export/FieldContainerFactory.java +++ b/src/main/java/io/dummymaker/model/export/FieldContainerFactory.java @@ -1,10 +1,11 @@ package io.dummymaker.model.export; +import static io.dummymaker.util.StringUtils.isEmpty; + import io.dummymaker.annotation.complex.GenTime; import io.dummymaker.annotation.export.GenExportName; import io.dummymaker.annotation.special.GenSequence; import io.dummymaker.util.CastUtils; - import java.lang.reflect.Field; import java.math.BigInteger; import java.sql.Time; @@ -16,8 +17,6 @@ import java.util.Date; import java.util.Map; -import static io.dummymaker.util.StringUtils.isEmpty; - /** * Description in progress * diff --git a/src/main/java/io/dummymaker/scan/IAnnotationScanner.java b/src/main/java/io/dummymaker/scan/IAnnotationScanner.java index 98903c83..677f7a42 100644 --- a/src/main/java/io/dummymaker/scan/IAnnotationScanner.java +++ b/src/main/java/io/dummymaker/scan/IAnnotationScanner.java @@ -1,16 +1,15 @@ package io.dummymaker.scan; import io.dummymaker.scan.impl.AnnotationScanner; -import org.jetbrains.annotations.NotNull; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.util.List; import java.util.Map; +import org.jetbrains.annotations.NotNull; /** - * Field scanner used to scan for field annotations Mostly used by factories to - * retrieve info for them + * Field scanner used to scan for field annotations Mostly used by factories to retrieve info for + * them * * @author GoodforGod * @see AnnotationScanner diff --git a/src/main/java/io/dummymaker/scan/IExportScanner.java b/src/main/java/io/dummymaker/scan/IExportScanner.java index 735d2eb7..b5d7e9f0 100644 --- a/src/main/java/io/dummymaker/scan/IExportScanner.java +++ b/src/main/java/io/dummymaker/scan/IExportScanner.java @@ -1,9 +1,8 @@ package io.dummymaker.scan; import io.dummymaker.model.export.FieldContainer; -import org.jetbrains.annotations.NotNull; - import java.util.Collection; +import org.jetbrains.annotations.NotNull; /** * Scanner for special export annotations diff --git a/src/main/java/io/dummymaker/scan/IGenAutoScanner.java b/src/main/java/io/dummymaker/scan/IGenAutoScanner.java index ca7f5b1e..efcf8204 100644 --- a/src/main/java/io/dummymaker/scan/IGenAutoScanner.java +++ b/src/main/java/io/dummymaker/scan/IGenAutoScanner.java @@ -1,10 +1,9 @@ package io.dummymaker.scan; import io.dummymaker.model.GenContainer; -import org.jetbrains.annotations.NotNull; - import java.lang.reflect.Field; import java.util.Map; +import org.jetbrains.annotations.NotNull; /** * Scanners used by populate factory primarily @@ -19,8 +18,7 @@ public interface IGenAutoScanner extends IGenScanner { * Same as default scan but also scan for suitable gen auto generators * * @param target to scan - * @param isDefaultAuto mark target as GenAuto as default even if it is not - * annotated + * @param isDefaultAuto mark target as GenAuto as default even if it is not annotated * @return map of fields and its gen containers * @see io.dummymaker.annotation.special.GenAuto */ diff --git a/src/main/java/io/dummymaker/scan/IGenScanner.java b/src/main/java/io/dummymaker/scan/IGenScanner.java index 494b5de7..0ecade33 100644 --- a/src/main/java/io/dummymaker/scan/IGenScanner.java +++ b/src/main/java/io/dummymaker/scan/IGenScanner.java @@ -1,10 +1,9 @@ package io.dummymaker.scan; import io.dummymaker.model.GenContainer; -import org.jetbrains.annotations.NotNull; - import java.lang.reflect.Field; import java.util.Map; +import org.jetbrains.annotations.NotNull; /** * Scanners used by populate factory primarily diff --git a/src/main/java/io/dummymaker/scan/IMapScanner.java b/src/main/java/io/dummymaker/scan/IMapScanner.java index 18bfb325..efe02e02 100644 --- a/src/main/java/io/dummymaker/scan/IMapScanner.java +++ b/src/main/java/io/dummymaker/scan/IMapScanner.java @@ -1,8 +1,7 @@ package io.dummymaker.scan; -import org.jetbrains.annotations.NotNull; - import java.util.Map; +import org.jetbrains.annotations.NotNull; /** * Map based scanner contract diff --git a/src/main/java/io/dummymaker/scan/IScanner.java b/src/main/java/io/dummymaker/scan/IScanner.java index eeb1e777..d557a8a6 100644 --- a/src/main/java/io/dummymaker/scan/IScanner.java +++ b/src/main/java/io/dummymaker/scan/IScanner.java @@ -1,8 +1,7 @@ package io.dummymaker.scan; -import org.jetbrains.annotations.NotNull; - import java.util.Collection; +import org.jetbrains.annotations.NotNull; /** * List based scanner contract diff --git a/src/main/java/io/dummymaker/scan/impl/AnnotationScanner.java b/src/main/java/io/dummymaker/scan/impl/AnnotationScanner.java index bec40fb5..4d2fdb2e 100644 --- a/src/main/java/io/dummymaker/scan/impl/AnnotationScanner.java +++ b/src/main/java/io/dummymaker/scan/impl/AnnotationScanner.java @@ -1,10 +1,6 @@ package io.dummymaker.scan.impl; import io.dummymaker.scan.IAnnotationScanner; -import org.jetbrains.annotations.NotNull; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.util.Arrays; @@ -12,6 +8,9 @@ import java.util.List; import java.util.Map; import java.util.stream.Collectors; +import org.jetbrains.annotations.NotNull; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * Scan field for all annotations Core scanner implementation diff --git a/src/main/java/io/dummymaker/scan/impl/BasicScanner.java b/src/main/java/io/dummymaker/scan/impl/BasicScanner.java index 528cad22..5614fbbd 100644 --- a/src/main/java/io/dummymaker/scan/impl/BasicScanner.java +++ b/src/main/java/io/dummymaker/scan/impl/BasicScanner.java @@ -1,7 +1,5 @@ package io.dummymaker.scan.impl; -import org.jetbrains.annotations.NotNull; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.lang.reflect.Modifier; @@ -9,6 +7,7 @@ import java.util.Collections; import java.util.List; import java.util.stream.Collectors; +import org.jetbrains.annotations.NotNull; /** * Basic scanner utility class diff --git a/src/main/java/io/dummymaker/scan/impl/ClassScanner.java b/src/main/java/io/dummymaker/scan/impl/ClassScanner.java index 7b3b38aa..62093ce2 100644 --- a/src/main/java/io/dummymaker/scan/impl/ClassScanner.java +++ b/src/main/java/io/dummymaker/scan/impl/ClassScanner.java @@ -2,10 +2,9 @@ import io.dummymaker.scan.IScanner; import io.dummymaker.util.PackageUtils; -import org.jetbrains.annotations.NotNull; - import java.util.Collection; import java.util.stream.Collectors; +import org.jetbrains.annotations.NotNull; /** * Scan for classes at runtime by packages diff --git a/src/main/java/io/dummymaker/scan/impl/ExportScanner.java b/src/main/java/io/dummymaker/scan/impl/ExportScanner.java index 7d1cd127..61911b48 100644 --- a/src/main/java/io/dummymaker/scan/impl/ExportScanner.java +++ b/src/main/java/io/dummymaker/scan/impl/ExportScanner.java @@ -6,15 +6,13 @@ import io.dummymaker.model.export.FieldContainer; import io.dummymaker.model.export.FieldContainerFactory; import io.dummymaker.scan.IExportScanner; -import org.jetbrains.annotations.NotNull; - import java.util.Arrays; import java.util.Collection; import java.util.stream.Collectors; +import org.jetbrains.annotations.NotNull; /** - * Scanner for special export annotations and produces export containers Which - * are used in exporters + * Scanner for special export annotations and produces export containers Which are used in exporters * * @author GoodforGod * @see io.dummymaker.export.IExporter diff --git a/src/main/java/io/dummymaker/scan/impl/GenAutoScanner.java b/src/main/java/io/dummymaker/scan/impl/GenAutoScanner.java index 1e9c7da6..6fbb3564 100644 --- a/src/main/java/io/dummymaker/scan/impl/GenAutoScanner.java +++ b/src/main/java/io/dummymaker/scan/impl/GenAutoScanner.java @@ -5,12 +5,11 @@ import io.dummymaker.generator.IGenerator; import io.dummymaker.model.GenContainer; import io.dummymaker.scan.IGenAutoScanner; -import org.jetbrains.annotations.NotNull; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.util.*; import java.util.function.Predicate; +import org.jetbrains.annotations.NotNull; /** * Implementation of scanner that suits gen auto annotations where needed diff --git a/src/main/java/io/dummymaker/scan/impl/GenRuledScanner.java b/src/main/java/io/dummymaker/scan/impl/GenRuledScanner.java index 0ac61afd..ff164fd2 100644 --- a/src/main/java/io/dummymaker/scan/impl/GenRuledScanner.java +++ b/src/main/java/io/dummymaker/scan/impl/GenRuledScanner.java @@ -4,12 +4,11 @@ import io.dummymaker.model.GenContainer; import io.dummymaker.model.GenRule; import io.dummymaker.model.GenRules; -import org.jetbrains.annotations.NotNull; - import java.lang.reflect.Field; import java.util.LinkedHashMap; import java.util.Map; import java.util.Optional; +import org.jetbrains.annotations.NotNull; /** * Scanner that sets gen rules where needed diff --git a/src/main/java/io/dummymaker/scan/impl/GenScanner.java b/src/main/java/io/dummymaker/scan/impl/GenScanner.java index 6ab3d494..a1e986d9 100644 --- a/src/main/java/io/dummymaker/scan/impl/GenScanner.java +++ b/src/main/java/io/dummymaker/scan/impl/GenScanner.java @@ -6,16 +6,14 @@ import io.dummymaker.annotation.special.GenIgnore; import io.dummymaker.model.GenContainer; import io.dummymaker.scan.IGenScanner; -import org.jetbrains.annotations.NotNull; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.util.*; import java.util.function.Predicate; +import org.jetbrains.annotations.NotNull; /** - * Scanner used by populate factory Scan for prime gen annotation and its child - * annotation + * Scanner used by populate factory Scan for prime gen annotation and its child annotation * * @author GoodforGod * @see PrimeGen @@ -32,8 +30,8 @@ public class GenScanner extends BasicScanner implements IGenScanner { /** * Scan for prime/complex gen annotation and its child annotation * - * @param target class to scan KEY is field that has populate annotations VALUE - * is Gen container with generate params for that field + * @param target class to scan KEY is field that has populate annotations VALUE is Gen container + * with generate params for that field * @return populate field map, where * @see GenContainer */ diff --git a/src/main/java/io/dummymaker/scan/impl/ResourceScanner.java b/src/main/java/io/dummymaker/scan/impl/ResourceScanner.java index e216dcf1..0ca5eb2f 100644 --- a/src/main/java/io/dummymaker/scan/impl/ResourceScanner.java +++ b/src/main/java/io/dummymaker/scan/impl/ResourceScanner.java @@ -4,8 +4,6 @@ import io.dummymaker.util.CollectionUtils; import io.dummymaker.util.PackageUtils; import io.dummymaker.util.StringUtils; -import org.jetbrains.annotations.NotNull; - import java.io.File; import java.io.IOException; import java.net.URL; @@ -15,6 +13,7 @@ import java.util.jar.JarEntry; import java.util.jar.JarFile; import java.util.stream.Collectors; +import org.jetbrains.annotations.NotNull; /** * Scan for resources at runtime by package @@ -45,8 +44,7 @@ public class ResourceScanner implements IScanner { } /** - * Given a package name and a directory returns all classes within that - * directory + * Given a package name and a directory returns all classes within that directory * * @param directory to process * @param packageName to process @@ -71,8 +69,7 @@ private static Collection loadFromDirectory(File directory, String packa } /** - * Given a jar file's URL and a package name returns all classes within jar - * file. + * Given a jar file's URL and a package name returns all classes within jar file. * * @param resource as jar to process */ diff --git a/src/main/java/io/dummymaker/scan/impl/SequenceScanner.java b/src/main/java/io/dummymaker/scan/impl/SequenceScanner.java index 7cde9c3d..a0ebc2d8 100644 --- a/src/main/java/io/dummymaker/scan/impl/SequenceScanner.java +++ b/src/main/java/io/dummymaker/scan/impl/SequenceScanner.java @@ -1,8 +1,6 @@ package io.dummymaker.scan.impl; import io.dummymaker.annotation.special.GenSequence; -import org.jetbrains.annotations.NotNull; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.util.Collections; @@ -10,6 +8,7 @@ import java.util.List; import java.util.Map; import java.util.function.Predicate; +import org.jetbrains.annotations.NotNull; /** * Scanner to filter fields for enumerate annotation fields diff --git a/src/main/java/io/dummymaker/scan/impl/UniqueScanner.java b/src/main/java/io/dummymaker/scan/impl/UniqueScanner.java index 526af9bd..795cddf2 100644 --- a/src/main/java/io/dummymaker/scan/impl/UniqueScanner.java +++ b/src/main/java/io/dummymaker/scan/impl/UniqueScanner.java @@ -1,18 +1,17 @@ package io.dummymaker.scan.impl; import io.dummymaker.scan.IAnnotationScanner; -import org.jetbrains.annotations.NotNull; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.stream.Collectors; +import org.jetbrains.annotations.NotNull; /** - * Scan for field and its unique annotations (without duplicates) And return - * fields in correct order Core scanner implementation + * Scan for field and its unique annotations (without duplicates) And return fields in correct order + * Core scanner implementation * * @author GoodforGod * @see IAnnotationScanner diff --git a/src/main/java/io/dummymaker/util/CastUtils.java b/src/main/java/io/dummymaker/util/CastUtils.java index b244b363..9c0b006e 100644 --- a/src/main/java/io/dummymaker/util/CastUtils.java +++ b/src/main/java/io/dummymaker/util/CastUtils.java @@ -1,9 +1,6 @@ package io.dummymaker.util; import io.dummymaker.generator.IGenerator; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - import java.lang.reflect.Constructor; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; @@ -12,7 +9,10 @@ import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; -import java.util.*; +import java.util.Arrays; +import java.util.Date; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * Utils for object casting @@ -194,8 +194,8 @@ public static T castObject(final Object castObject, final Class fieldType } /** - * Try to box downcast or box object if it is boxed primitive type And field is - * also boxed primitive (can't cast one to another explicitly) + * Try to box downcast or box object if it is boxed primitive type And field is also boxed primitive + * (can't cast one to another explicitly) */ private static Object boxObject(final Object castObject, final Class fieldType) { final CastType firstType = CastType.of(castObject.getClass()); diff --git a/src/main/java/io/dummymaker/util/CollectionUtils.java b/src/main/java/io/dummymaker/util/CollectionUtils.java index 6725615c..dd177d5c 100644 --- a/src/main/java/io/dummymaker/util/CollectionUtils.java +++ b/src/main/java/io/dummymaker/util/CollectionUtils.java @@ -1,12 +1,11 @@ package io.dummymaker.util; -import org.jetbrains.annotations.NotNull; - import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.concurrent.ThreadLocalRandom; +import org.jetbrains.annotations.NotNull; /** * Basic util methods for collections @@ -76,9 +75,9 @@ public static T random(@NotNull T[] array) { } /** - * Consider that accessing random element for {@link java.util.LinkedList} or - * {@link java.util.Set} is O(N) where N is index of random element, this is due - * to this collections does not have random access. + * Consider that accessing random element for {@link java.util.LinkedList} or {@link java.util.Set} + * is O(N) where N is index of random element, this is due to this collections does not have random + * access. * * @param collection to get random element from * @param type of element diff --git a/src/main/java/io/dummymaker/util/DateUtils.java b/src/main/java/io/dummymaker/util/DateUtils.java index 80f4891d..900c2669 100644 --- a/src/main/java/io/dummymaker/util/DateUtils.java +++ b/src/main/java/io/dummymaker/util/DateUtils.java @@ -1,8 +1,5 @@ package io.dummymaker.util; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - import java.sql.Timestamp; import java.time.LocalDate; import java.time.LocalDateTime; @@ -10,6 +7,8 @@ import java.util.Calendar; import java.util.Date; import java.util.TimeZone; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * Contains basic date util methods and functions diff --git a/src/main/java/io/dummymaker/util/GenUtils.java b/src/main/java/io/dummymaker/util/GenUtils.java index 0bd6a952..e0c0db04 100644 --- a/src/main/java/io/dummymaker/util/GenUtils.java +++ b/src/main/java/io/dummymaker/util/GenUtils.java @@ -2,9 +2,6 @@ import io.dummymaker.generator.IGenerator; import io.dummymaker.generator.ITimeGenerator; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.util.ArrayList; @@ -12,6 +9,8 @@ import java.util.Collections; import java.util.List; import java.util.stream.Collectors; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * Utils for auto gen mapping diff --git a/src/main/java/io/dummymaker/writer/impl/FileWriter.java b/src/main/java/io/dummymaker/writer/impl/FileWriter.java index dd814155..879c2d62 100644 --- a/src/main/java/io/dummymaker/writer/impl/FileWriter.java +++ b/src/main/java/io/dummymaker/writer/impl/FileWriter.java @@ -3,7 +3,6 @@ import io.dummymaker.error.ExportException; import io.dummymaker.util.StringUtils; import io.dummymaker.writer.IWriter; - import java.io.*; import java.nio.charset.StandardCharsets; import java.nio.file.Files; @@ -27,8 +26,7 @@ public FileWriter(String filename, boolean deleteFileBeforeWrite) { /** * @param filename file name - * @param path path where to create file (NULL or EMPTY for - * home dir) + * @param path path where to create file (NULL or EMPTY for home dir) * @param deleteFileBeforeWrite clean file when writer is created */ public FileWriter(String path, String filename, boolean deleteFileBeforeWrite) { diff --git a/src/test/java/io/dummymaker/bundle/BundleImplTest.java b/src/test/java/io/dummymaker/bundle/BundleImplTest.java index 86e515e3..0e2148b3 100644 --- a/src/test/java/io/dummymaker/bundle/BundleImplTest.java +++ b/src/test/java/io/dummymaker/bundle/BundleImplTest.java @@ -1,17 +1,16 @@ package io.dummymaker.bundle; +import static java.util.concurrent.ThreadLocalRandom.current; +import static org.junit.runners.Parameterized.Parameters; + import io.dummymaker.bundle.impl.*; +import java.util.Arrays; +import java.util.Collection; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; -import java.util.Arrays; -import java.util.Collection; - -import static java.util.concurrent.ThreadLocalRandom.current; -import static org.junit.runners.Parameterized.Parameters; - /** * "Default Description" * diff --git a/src/test/java/io/dummymaker/export/BasicExporterValidationTest.java b/src/test/java/io/dummymaker/export/BasicExporterValidationTest.java index e29d7a40..0a9456b5 100644 --- a/src/test/java/io/dummymaker/export/BasicExporterValidationTest.java +++ b/src/test/java/io/dummymaker/export/BasicExporterValidationTest.java @@ -5,17 +5,16 @@ import io.dummymaker.export.impl.SqlExporter; import io.dummymaker.export.impl.XmlExporter; import io.dummymaker.model.DummyNoZeroConstructor; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.List; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.List; - /** * "default comment" * diff --git a/src/test/java/io/dummymaker/export/CaseParameterizedTest.java b/src/test/java/io/dummymaker/export/CaseParameterizedTest.java index 5fd9f12c..51043072 100644 --- a/src/test/java/io/dummymaker/export/CaseParameterizedTest.java +++ b/src/test/java/io/dummymaker/export/CaseParameterizedTest.java @@ -1,14 +1,13 @@ package io.dummymaker.export; +import java.util.Arrays; +import java.util.Collection; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; -import java.util.Arrays; -import java.util.Collection; - /** * "default comment" * diff --git a/src/test/java/io/dummymaker/export/UniqueExporterTests.java b/src/test/java/io/dummymaker/export/UniqueExporterTests.java index c89870d8..b06de233 100644 --- a/src/test/java/io/dummymaker/export/UniqueExporterTests.java +++ b/src/test/java/io/dummymaker/export/UniqueExporterTests.java @@ -5,11 +5,10 @@ import io.dummymaker.generator.IGenerator; import io.dummymaker.model.DummyEmbedded.DummyEmbeddedIntoSimple; import io.dummymaker.model.GenRule; +import java.util.concurrent.ThreadLocalRandom; import org.junit.Assert; import org.junit.Test; -import java.util.concurrent.ThreadLocalRandom; - /** * Description in progress * diff --git a/src/test/java/io/dummymaker/export/ValidatorExporterTest.java b/src/test/java/io/dummymaker/export/ValidatorExporterTest.java index d179dad7..ecaae2d1 100644 --- a/src/test/java/io/dummymaker/export/ValidatorExporterTest.java +++ b/src/test/java/io/dummymaker/export/ValidatorExporterTest.java @@ -9,15 +9,14 @@ import io.dummymaker.model.DummyTime; import io.dummymaker.model.DummyTimeFormatter; import io.dummymaker.model.DummyUnixTime; +import java.util.Arrays; +import java.util.Collection; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; -import java.util.Arrays; -import java.util.Collection; - /** * "default comment" * diff --git a/src/test/java/io/dummymaker/export/asfile/CsvExportAsFileTest.java b/src/test/java/io/dummymaker/export/asfile/CsvExportAsFileTest.java index 29e15465..45ee2dc9 100644 --- a/src/test/java/io/dummymaker/export/asfile/CsvExportAsFileTest.java +++ b/src/test/java/io/dummymaker/export/asfile/CsvExportAsFileTest.java @@ -8,9 +8,8 @@ import io.dummymaker.export.validators.CsvValidator; import io.dummymaker.factory.impl.GenFactory; import io.dummymaker.model.Dummy; -import org.junit.Test; - import java.util.List; +import org.junit.Test; /** * "Default Description" diff --git a/src/test/java/io/dummymaker/export/asfile/ExportAsFileTests.java b/src/test/java/io/dummymaker/export/asfile/ExportAsFileTests.java index 742cbcdd..31069a79 100644 --- a/src/test/java/io/dummymaker/export/asfile/ExportAsFileTests.java +++ b/src/test/java/io/dummymaker/export/asfile/ExportAsFileTests.java @@ -10,17 +10,16 @@ import io.dummymaker.factory.impl.GenFactory; import io.dummymaker.model.Dummy; import io.dummymaker.model.DummyNoExportFields; +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.List; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.List; - /** * "default comment" * diff --git a/src/test/java/io/dummymaker/export/asfile/ExportAssert.java b/src/test/java/io/dummymaker/export/asfile/ExportAssert.java index 52a8e823..3de98f18 100644 --- a/src/test/java/io/dummymaker/export/asfile/ExportAssert.java +++ b/src/test/java/io/dummymaker/export/asfile/ExportAssert.java @@ -1,10 +1,5 @@ package io.dummymaker.export.asfile; -import org.junit.After; -import org.junit.Assert; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - import java.io.*; import java.nio.charset.StandardCharsets; import java.nio.file.Files; @@ -12,6 +7,10 @@ import java.util.HashSet; import java.util.Set; import java.util.stream.Collectors; +import org.junit.After; +import org.junit.Assert; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * @author GoodforGod diff --git a/src/test/java/io/dummymaker/export/asfile/FileExportAssert.java b/src/test/java/io/dummymaker/export/asfile/FileExportAssert.java index a3772291..82a7a587 100644 --- a/src/test/java/io/dummymaker/export/asfile/FileExportAssert.java +++ b/src/test/java/io/dummymaker/export/asfile/FileExportAssert.java @@ -7,10 +7,9 @@ import io.dummymaker.factory.impl.GenFactory; import io.dummymaker.model.Dummy; import io.dummymaker.model.DummyNoExportFields; -import org.junit.Test; - import java.util.Collections; import java.util.List; +import org.junit.Test; /** * "default comment" diff --git a/src/test/java/io/dummymaker/export/asfile/JsonExportAsFileTest.java b/src/test/java/io/dummymaker/export/asfile/JsonExportAsFileTest.java index fd77d45b..0792e536 100644 --- a/src/test/java/io/dummymaker/export/asfile/JsonExportAsFileTest.java +++ b/src/test/java/io/dummymaker/export/asfile/JsonExportAsFileTest.java @@ -9,9 +9,8 @@ import io.dummymaker.factory.impl.GenFactory; import io.dummymaker.model.Dummy; import io.dummymaker.writer.impl.FileWriter; -import org.junit.Test; - import java.util.List; +import org.junit.Test; /** * "Default Description" diff --git a/src/test/java/io/dummymaker/export/asfile/SqlExportAsFileTest.java b/src/test/java/io/dummymaker/export/asfile/SqlExportAsFileTest.java index 854682e3..ec1d8ee4 100644 --- a/src/test/java/io/dummymaker/export/asfile/SqlExportAsFileTest.java +++ b/src/test/java/io/dummymaker/export/asfile/SqlExportAsFileTest.java @@ -9,11 +9,10 @@ import io.dummymaker.factory.impl.GenFactory; import io.dummymaker.model.Dummy; import io.dummymaker.model.DummyTime; -import org.junit.Test; - import java.util.HashMap; import java.util.List; import java.util.Map; +import org.junit.Test; /** * "Default Description" diff --git a/src/test/java/io/dummymaker/export/asfile/XmlExportAsFileTest.java b/src/test/java/io/dummymaker/export/asfile/XmlExportAsFileTest.java index b97b8d4b..3b8799ee 100644 --- a/src/test/java/io/dummymaker/export/asfile/XmlExportAsFileTest.java +++ b/src/test/java/io/dummymaker/export/asfile/XmlExportAsFileTest.java @@ -8,7 +8,6 @@ import io.dummymaker.export.validators.XmlValidator; import io.dummymaker.factory.impl.GenFactory; import io.dummymaker.model.Dummy; - import java.util.List; /** diff --git a/src/test/java/io/dummymaker/export/asstring/CsvExportAsStringTest.java b/src/test/java/io/dummymaker/export/asstring/CsvExportAsStringTest.java index 6331f8ef..101769c4 100644 --- a/src/test/java/io/dummymaker/export/asstring/CsvExportAsStringTest.java +++ b/src/test/java/io/dummymaker/export/asstring/CsvExportAsStringTest.java @@ -7,9 +7,8 @@ import io.dummymaker.export.validators.CsvValidator; import io.dummymaker.factory.impl.GenFactory; import io.dummymaker.model.Dummy; -import org.junit.Test; - import java.util.List; +import org.junit.Test; /** * @author GoodforGod diff --git a/src/test/java/io/dummymaker/export/asstring/ExportAsStringTests.java b/src/test/java/io/dummymaker/export/asstring/ExportAsStringTests.java index bcb8d0a7..7631e161 100644 --- a/src/test/java/io/dummymaker/export/asstring/ExportAsStringTests.java +++ b/src/test/java/io/dummymaker/export/asstring/ExportAsStringTests.java @@ -10,6 +10,10 @@ import io.dummymaker.model.Dummy; import io.dummymaker.model.DummyNoExportFields; import io.dummymaker.model.deprecated.DummyAuto; +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.List; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -17,11 +21,6 @@ import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.List; - /** * "default comment" * diff --git a/src/test/java/io/dummymaker/export/asstring/JsonExportAsStringTest.java b/src/test/java/io/dummymaker/export/asstring/JsonExportAsStringTest.java index 0be817f8..31d73d47 100644 --- a/src/test/java/io/dummymaker/export/asstring/JsonExportAsStringTest.java +++ b/src/test/java/io/dummymaker/export/asstring/JsonExportAsStringTest.java @@ -6,9 +6,8 @@ import io.dummymaker.export.validators.JsonValidator; import io.dummymaker.factory.impl.GenFactory; import io.dummymaker.model.Dummy; -import org.junit.Test; - import java.util.List; +import org.junit.Test; /** * "Default Description" diff --git a/src/test/java/io/dummymaker/export/asstring/SqlExportAsStringTest.java b/src/test/java/io/dummymaker/export/asstring/SqlExportAsStringTest.java index fc7f14b8..ca3bafbf 100644 --- a/src/test/java/io/dummymaker/export/asstring/SqlExportAsStringTest.java +++ b/src/test/java/io/dummymaker/export/asstring/SqlExportAsStringTest.java @@ -8,9 +8,8 @@ import io.dummymaker.factory.impl.GenFactory; import io.dummymaker.model.Dummy; import io.dummymaker.model.DummyArray; -import org.junit.Test; - import java.util.List; +import org.junit.Test; /** * "Default Description" diff --git a/src/test/java/io/dummymaker/export/asstring/StringExportAssert.java b/src/test/java/io/dummymaker/export/asstring/StringExportAssert.java index 2e9a437b..3d4b83c4 100644 --- a/src/test/java/io/dummymaker/export/asstring/StringExportAssert.java +++ b/src/test/java/io/dummymaker/export/asstring/StringExportAssert.java @@ -6,11 +6,10 @@ import io.dummymaker.factory.impl.GenFactory; import io.dummymaker.model.Dummy; import io.dummymaker.model.DummyNoExportFields; -import org.junit.Assert; -import org.junit.Test; - import java.util.Collections; import java.util.List; +import org.junit.Assert; +import org.junit.Test; /** * "default comment" diff --git a/src/test/java/io/dummymaker/export/asstring/XmlExportAsStringTest.java b/src/test/java/io/dummymaker/export/asstring/XmlExportAsStringTest.java index a355f216..997e41e5 100644 --- a/src/test/java/io/dummymaker/export/asstring/XmlExportAsStringTest.java +++ b/src/test/java/io/dummymaker/export/asstring/XmlExportAsStringTest.java @@ -7,9 +7,8 @@ import io.dummymaker.export.validators.XmlValidator; import io.dummymaker.factory.impl.GenFactory; import io.dummymaker.model.Dummy; -import org.junit.Test; - import java.util.List; +import org.junit.Test; /** * "Default Description" diff --git a/src/test/java/io/dummymaker/export/validators/CsvValidator.java b/src/test/java/io/dummymaker/export/validators/CsvValidator.java index e9f80636..1224b14d 100644 --- a/src/test/java/io/dummymaker/export/validators/CsvValidator.java +++ b/src/test/java/io/dummymaker/export/validators/CsvValidator.java @@ -1,15 +1,15 @@ package io.dummymaker.export.validators; +import static io.dummymaker.model.Dummy.DummyFields.*; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; + import io.dummymaker.export.Cases; import io.dummymaker.export.ICase; import io.dummymaker.export.impl.CsvExporter; import io.dummymaker.model.DummyTime.Patterns; import io.dummymaker.model.DummyTimeFormatter; -import static io.dummymaker.model.Dummy.DummyFields.*; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; - /** * "Default Description" * diff --git a/src/test/java/io/dummymaker/export/validators/JsonValidator.java b/src/test/java/io/dummymaker/export/validators/JsonValidator.java index 8105c742..13868a5c 100644 --- a/src/test/java/io/dummymaker/export/validators/JsonValidator.java +++ b/src/test/java/io/dummymaker/export/validators/JsonValidator.java @@ -1,14 +1,14 @@ package io.dummymaker.export.validators; +import static io.dummymaker.model.Dummy.DummyFields.*; +import static io.dummymaker.model.DummyTimeFormatter.Patterns.*; +import static org.junit.Assert.assertTrue; + import io.dummymaker.export.Cases; import io.dummymaker.export.ICase; import io.dummymaker.model.DummyTime.Fields; import io.dummymaker.model.DummyTime.Patterns; -import static io.dummymaker.model.Dummy.DummyFields.*; -import static io.dummymaker.model.DummyTimeFormatter.Patterns.*; -import static org.junit.Assert.assertTrue; - /** * "Default Description" * diff --git a/src/test/java/io/dummymaker/export/validators/SqlValidator.java b/src/test/java/io/dummymaker/export/validators/SqlValidator.java index 6491d87f..c1016c7c 100644 --- a/src/test/java/io/dummymaker/export/validators/SqlValidator.java +++ b/src/test/java/io/dummymaker/export/validators/SqlValidator.java @@ -1,16 +1,16 @@ package io.dummymaker.export.validators; +import static io.dummymaker.model.Dummy.DummyFields.*; +import static io.dummymaker.model.DummyTime.*; +import static io.dummymaker.model.DummyTime.Fields.*; +import static org.junit.Assert.assertTrue; + import io.dummymaker.export.Cases; import io.dummymaker.export.ICase; import io.dummymaker.export.cases.DefaultCase; import io.dummymaker.model.DummyArray; import io.dummymaker.model.DummyTimeFormatter; -import static io.dummymaker.model.Dummy.DummyFields.*; -import static io.dummymaker.model.DummyTime.*; -import static io.dummymaker.model.DummyTime.Fields.*; -import static org.junit.Assert.assertTrue; - /** * "Default Description" * diff --git a/src/test/java/io/dummymaker/export/validators/XmlValidator.java b/src/test/java/io/dummymaker/export/validators/XmlValidator.java index 08aad62c..4b8a8d31 100644 --- a/src/test/java/io/dummymaker/export/validators/XmlValidator.java +++ b/src/test/java/io/dummymaker/export/validators/XmlValidator.java @@ -1,14 +1,14 @@ package io.dummymaker.export.validators; +import static io.dummymaker.model.Dummy.DummyFields.*; +import static io.dummymaker.model.DummyTime.Fields.*; +import static org.junit.Assert.assertTrue; + import io.dummymaker.export.Cases; import io.dummymaker.export.ICase; import io.dummymaker.model.DummyTime.Patterns; import io.dummymaker.model.DummyTimeFormatter; -import static io.dummymaker.model.Dummy.DummyFields.*; -import static io.dummymaker.model.DummyTime.Fields.*; -import static org.junit.Assert.assertTrue; - /** * "Default Description" * diff --git a/src/test/java/io/dummymaker/factory/DummyArrayTests.java b/src/test/java/io/dummymaker/factory/DummyArrayTests.java index 2a7228b2..2e136082 100644 --- a/src/test/java/io/dummymaker/factory/DummyArrayTests.java +++ b/src/test/java/io/dummymaker/factory/DummyArrayTests.java @@ -5,11 +5,10 @@ import io.dummymaker.model.DummyArray; import io.dummymaker.model.GenRule; import io.dummymaker.model.GenRules; +import java.util.regex.Pattern; import org.junit.Assert; import org.junit.Test; -import java.util.regex.Pattern; - /** * Dummy array tests * diff --git a/src/test/java/io/dummymaker/factory/DummyAutoNamedTests.java b/src/test/java/io/dummymaker/factory/DummyAutoNamedTests.java index 6d44f7f6..13ceafec 100644 --- a/src/test/java/io/dummymaker/factory/DummyAutoNamedTests.java +++ b/src/test/java/io/dummymaker/factory/DummyAutoNamedTests.java @@ -4,11 +4,10 @@ import io.dummymaker.model.DummyAutoNamed; import io.dummymaker.model.GenRule; import io.dummymaker.model.GenRules; +import java.util.UUID; import org.junit.Assert; import org.junit.Test; -import java.util.UUID; - /** * ! NO DESCRIPTION ! * diff --git a/src/test/java/io/dummymaker/factory/DummyCollectionTests.java b/src/test/java/io/dummymaker/factory/DummyCollectionTests.java index 6938f070..9d068a20 100644 --- a/src/test/java/io/dummymaker/factory/DummyCollectionTests.java +++ b/src/test/java/io/dummymaker/factory/DummyCollectionTests.java @@ -1,11 +1,11 @@ package io.dummymaker.factory; +import static org.junit.Assert.*; + import io.dummymaker.factory.impl.GenFactory; import io.dummymaker.model.DummyCollection; import org.junit.Test; -import static org.junit.Assert.*; - /** * Dummy collection tests * diff --git a/src/test/java/io/dummymaker/factory/DummyEmbeddedComplexAutoTests.java b/src/test/java/io/dummymaker/factory/DummyEmbeddedComplexAutoTests.java index 1b42827d..7feb4032 100644 --- a/src/test/java/io/dummymaker/factory/DummyEmbeddedComplexAutoTests.java +++ b/src/test/java/io/dummymaker/factory/DummyEmbeddedComplexAutoTests.java @@ -5,11 +5,10 @@ import io.dummymaker.model.DummyEmbedded; import io.dummymaker.model.GenRule; import io.dummymaker.model.GenRules; +import java.util.List; import org.junit.Assert; import org.junit.Test; -import java.util.List; - /** * ! NO DESCRIPTION ! * diff --git a/src/test/java/io/dummymaker/factory/DummyGlobalRulesTests.java b/src/test/java/io/dummymaker/factory/DummyGlobalRulesTests.java index b8b32ab7..1a22d919 100644 --- a/src/test/java/io/dummymaker/factory/DummyGlobalRulesTests.java +++ b/src/test/java/io/dummymaker/factory/DummyGlobalRulesTests.java @@ -9,13 +9,12 @@ import io.dummymaker.model.DummyEmbedded; import io.dummymaker.model.GenRule; import io.dummymaker.model.GenRules; -import org.junit.Assert; -import org.junit.Test; - import java.util.Arrays; import java.util.Set; import java.util.stream.Collectors; import java.util.stream.Stream; +import org.junit.Assert; +import org.junit.Test; /** * Global Gen rules tests diff --git a/src/test/java/io/dummymaker/factory/DummyNoFillFieldsTests.java b/src/test/java/io/dummymaker/factory/DummyNoFillFieldsTests.java index 19374410..d7781ea7 100644 --- a/src/test/java/io/dummymaker/factory/DummyNoFillFieldsTests.java +++ b/src/test/java/io/dummymaker/factory/DummyNoFillFieldsTests.java @@ -1,11 +1,11 @@ package io.dummymaker.factory; +import static org.junit.Assert.*; + import io.dummymaker.factory.impl.GenFactory; import io.dummymaker.model.DummyNoFillFields; import org.junit.Test; -import static org.junit.Assert.*; - /** * ! NO DESCRIPTION ! * diff --git a/src/test/java/io/dummymaker/factory/DummyTests.java b/src/test/java/io/dummymaker/factory/DummyTests.java index adda076d..fbc62579 100644 --- a/src/test/java/io/dummymaker/factory/DummyTests.java +++ b/src/test/java/io/dummymaker/factory/DummyTests.java @@ -1,14 +1,13 @@ package io.dummymaker.factory; +import static org.junit.Assert.*; + import io.dummymaker.factory.impl.GenFactory; import io.dummymaker.model.Dummy; import io.dummymaker.model.DummyNoFillFields; -import org.junit.Test; - import java.util.ArrayList; import java.util.List; - -import static org.junit.Assert.*; +import org.junit.Test; /** * ! NO DESCRIPTION ! diff --git a/src/test/java/io/dummymaker/factory/FactoryTests.java b/src/test/java/io/dummymaker/factory/FactoryTests.java index ae2f5f82..3e1493a7 100644 --- a/src/test/java/io/dummymaker/factory/FactoryTests.java +++ b/src/test/java/io/dummymaker/factory/FactoryTests.java @@ -1,15 +1,14 @@ package io.dummymaker.factory; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; + import io.dummymaker.factory.impl.GenFactory; import io.dummymaker.model.Dummy; import io.dummymaker.model.DummyNoZeroConstructor; -import org.junit.Test; - import java.util.Collections; import java.util.List; - -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertTrue; +import org.junit.Test; /** * ! NO DESCRIPTION ! diff --git a/src/test/java/io/dummymaker/factory/GenFactoryBuildTests.java b/src/test/java/io/dummymaker/factory/GenFactoryBuildTests.java index 82857b7a..d5e004f7 100644 --- a/src/test/java/io/dummymaker/factory/GenFactoryBuildTests.java +++ b/src/test/java/io/dummymaker/factory/GenFactoryBuildTests.java @@ -1,14 +1,13 @@ package io.dummymaker.factory; +import static org.junit.Assert.*; + import io.dummymaker.factory.impl.GenFactory; import io.dummymaker.model.*; import io.dummymaker.model.deprecated.DummyAuto; -import org.junit.Test; - import java.util.List; import java.util.regex.Pattern; - -import static org.junit.Assert.*; +import org.junit.Test; /** * Default Comment diff --git a/src/test/java/io/dummymaker/factory/GenFactoryFillTests.java b/src/test/java/io/dummymaker/factory/GenFactoryFillTests.java index e0395c02..1935ba59 100644 --- a/src/test/java/io/dummymaker/factory/GenFactoryFillTests.java +++ b/src/test/java/io/dummymaker/factory/GenFactoryFillTests.java @@ -1,15 +1,14 @@ package io.dummymaker.factory; +import static org.junit.Assert.*; + import io.dummymaker.factory.impl.GenFactory; import io.dummymaker.model.Dummy; import io.dummymaker.model.DummyNoFillFields; -import org.junit.Test; - import java.util.ArrayList; import java.util.Collections; import java.util.List; - -import static org.junit.Assert.*; +import org.junit.Test; /** * "Default Description" diff --git a/src/test/java/io/dummymaker/generator/GeneratorPatternValidTest.java b/src/test/java/io/dummymaker/generator/GeneratorPatternValidTest.java index 60864fa7..b181af37 100644 --- a/src/test/java/io/dummymaker/generator/GeneratorPatternValidTest.java +++ b/src/test/java/io/dummymaker/generator/GeneratorPatternValidTest.java @@ -1,5 +1,9 @@ package io.dummymaker.generator; +import static java.util.regex.Pattern.compile; +import static org.junit.Assert.*; +import static org.junit.runners.Parameterized.Parameters; + import io.dummymaker.generator.complex.ListComplexGenerator; import io.dummymaker.generator.complex.MapComplexGenerator; import io.dummymaker.generator.complex.SetComplexGenerator; @@ -10,10 +14,6 @@ import io.dummymaker.generator.simple.string.*; import io.dummymaker.generator.simple.time.*; import io.dummymaker.model.DummyTime.Patterns; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.Parameterized; - import java.math.BigDecimal; import java.math.BigInteger; import java.sql.Time; @@ -23,10 +23,9 @@ import java.time.LocalTime; import java.util.*; import java.util.regex.Pattern; - -import static java.util.regex.Pattern.compile; -import static org.junit.Assert.*; -import static org.junit.runners.Parameterized.Parameters; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; /** * Generators Tests diff --git a/src/test/java/io/dummymaker/generator/UniqueGeneratorsTest.java b/src/test/java/io/dummymaker/generator/UniqueGeneratorsTest.java index fcad2eb0..3872ea45 100644 --- a/src/test/java/io/dummymaker/generator/UniqueGeneratorsTest.java +++ b/src/test/java/io/dummymaker/generator/UniqueGeneratorsTest.java @@ -1,14 +1,13 @@ package io.dummymaker.generator; +import static org.junit.Assert.*; + import io.dummymaker.generator.simple.EmbeddedGenerator; import io.dummymaker.generator.simple.NullGenerator; import io.dummymaker.generator.simple.SequenceGenerator; import io.dummymaker.generator.simple.time.LocalDateTimeGenerator; -import org.junit.Test; - import java.time.LocalDateTime; - -import static org.junit.Assert.*; +import org.junit.Test; /** * "Default Description" diff --git a/src/test/java/io/dummymaker/model/Dummy.java b/src/test/java/io/dummymaker/model/Dummy.java index 0317b2be..044e16dd 100644 --- a/src/test/java/io/dummymaker/model/Dummy.java +++ b/src/test/java/io/dummymaker/model/Dummy.java @@ -7,7 +7,6 @@ import io.dummymaker.annotation.simple.string.GenCity; import io.dummymaker.annotation.simple.string.GenName; import io.dummymaker.annotation.special.GenSequence; - import java.lang.reflect.Field; import java.util.Arrays; import java.util.HashSet; diff --git a/src/test/java/io/dummymaker/model/DummyAutoComplex.java b/src/test/java/io/dummymaker/model/DummyAutoComplex.java index aae7f46d..0cc0ec6a 100644 --- a/src/test/java/io/dummymaker/model/DummyAutoComplex.java +++ b/src/test/java/io/dummymaker/model/DummyAutoComplex.java @@ -4,7 +4,6 @@ import io.dummymaker.annotation.special.GenAuto; import io.dummymaker.generator.simple.EmbeddedGenerator; import io.dummymaker.generator.simple.string.BtcAddressGenerator; - import java.sql.Timestamp; import java.time.LocalDate; import java.time.LocalDateTime; diff --git a/src/test/java/io/dummymaker/model/DummyCollection.java b/src/test/java/io/dummymaker/model/DummyCollection.java index 13b689cc..92609ae0 100644 --- a/src/test/java/io/dummymaker/model/DummyCollection.java +++ b/src/test/java/io/dummymaker/model/DummyCollection.java @@ -6,7 +6,6 @@ import io.dummymaker.annotation.special.GenEmbedded; import io.dummymaker.generator.simple.BooleanGenerator; import io.dummymaker.generator.simple.string.HexDataGenerator; - import java.util.List; import java.util.Map; import java.util.Set; diff --git a/src/test/java/io/dummymaker/model/DummyCollectionWrong.java b/src/test/java/io/dummymaker/model/DummyCollectionWrong.java index 863a8aba..fa8bbd6a 100644 --- a/src/test/java/io/dummymaker/model/DummyCollectionWrong.java +++ b/src/test/java/io/dummymaker/model/DummyCollectionWrong.java @@ -3,7 +3,6 @@ import io.dummymaker.annotation.complex.GenList; import io.dummymaker.annotation.complex.GenMap; import io.dummymaker.annotation.complex.GenSet; - import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; diff --git a/src/test/java/io/dummymaker/model/DummyCustom.java b/src/test/java/io/dummymaker/model/DummyCustom.java index 8ccfe2df..19edea92 100644 --- a/src/test/java/io/dummymaker/model/DummyCustom.java +++ b/src/test/java/io/dummymaker/model/DummyCustom.java @@ -6,12 +6,11 @@ import io.dummymaker.generator.simple.BooleanGenerator; import io.dummymaker.generator.simple.number.FloatGenerator; import io.dummymaker.generator.simple.number.ShortGenerator; -import org.jetbrains.annotations.NotNull; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; +import org.jetbrains.annotations.NotNull; /** * Custom annotation dummy tester diff --git a/src/test/java/io/dummymaker/model/DummyEmbedded.java b/src/test/java/io/dummymaker/model/DummyEmbedded.java index 99485031..e02b9530 100644 --- a/src/test/java/io/dummymaker/model/DummyEmbedded.java +++ b/src/test/java/io/dummymaker/model/DummyEmbedded.java @@ -1,7 +1,6 @@ package io.dummymaker.model; import io.dummymaker.annotation.special.GenAuto; - import java.util.List; /** diff --git a/src/test/java/io/dummymaker/model/DummyNoFillFields.java b/src/test/java/io/dummymaker/model/DummyNoFillFields.java index 39405a3c..e602b892 100644 --- a/src/test/java/io/dummymaker/model/DummyNoFillFields.java +++ b/src/test/java/io/dummymaker/model/DummyNoFillFields.java @@ -5,8 +5,7 @@ import io.dummymaker.annotation.export.GenExportName; /** - * Dummy Object used as data to proceed in tests This object HAS NO FIELDS TO - * POPULATE + * Dummy Object used as data to proceed in tests This object HAS NO FIELDS TO POPULATE * * @author GoodforGod * @since 18.08.2017 diff --git a/src/test/java/io/dummymaker/model/DummyNoZeroConstructor.java b/src/test/java/io/dummymaker/model/DummyNoZeroConstructor.java index dcd5e044..67cdb04f 100644 --- a/src/test/java/io/dummymaker/model/DummyNoZeroConstructor.java +++ b/src/test/java/io/dummymaker/model/DummyNoZeroConstructor.java @@ -6,7 +6,6 @@ import io.dummymaker.annotation.special.GenAuto; import io.dummymaker.annotation.special.GenIgnore; import io.dummymaker.generator.simple.EmbeddedGenerator; - import java.util.List; import java.util.Map; import java.util.Set; diff --git a/src/test/java/io/dummymaker/model/DummyRules.java b/src/test/java/io/dummymaker/model/DummyRules.java index c27590be..74ee8ed7 100644 --- a/src/test/java/io/dummymaker/model/DummyRules.java +++ b/src/test/java/io/dummymaker/model/DummyRules.java @@ -3,7 +3,6 @@ import io.dummymaker.annotation.complex.GenList; import io.dummymaker.annotation.special.GenAuto; import io.dummymaker.generator.simple.EmbeddedGenerator; - import java.util.List; /** diff --git a/src/test/java/io/dummymaker/model/DummyTime.java b/src/test/java/io/dummymaker/model/DummyTime.java index 1af0196f..7d2123c5 100644 --- a/src/test/java/io/dummymaker/model/DummyTime.java +++ b/src/test/java/io/dummymaker/model/DummyTime.java @@ -1,7 +1,8 @@ package io.dummymaker.model; -import io.dummymaker.annotation.complex.GenTime; +import static java.util.regex.Pattern.compile; +import io.dummymaker.annotation.complex.GenTime; import java.sql.Timestamp; import java.time.LocalDate; import java.time.LocalDateTime; @@ -9,8 +10,6 @@ import java.util.Date; import java.util.regex.Pattern; -import static java.util.regex.Pattern.compile; - /** * "default comment" * diff --git a/src/test/java/io/dummymaker/model/DummyTimeFormatter.java b/src/test/java/io/dummymaker/model/DummyTimeFormatter.java index 10b1e4f8..c4eaccf8 100644 --- a/src/test/java/io/dummymaker/model/DummyTimeFormatter.java +++ b/src/test/java/io/dummymaker/model/DummyTimeFormatter.java @@ -1,7 +1,8 @@ package io.dummymaker.model; -import io.dummymaker.annotation.complex.GenTime; +import static java.util.regex.Pattern.compile; +import io.dummymaker.annotation.complex.GenTime; import java.sql.Timestamp; import java.time.LocalDate; import java.time.LocalDateTime; @@ -9,8 +10,6 @@ import java.util.Date; import java.util.regex.Pattern; -import static java.util.regex.Pattern.compile; - /** * "default comment" * diff --git a/src/test/java/io/dummymaker/model/DummyUnixTime.java b/src/test/java/io/dummymaker/model/DummyUnixTime.java index 1fc8781c..9334b897 100644 --- a/src/test/java/io/dummymaker/model/DummyUnixTime.java +++ b/src/test/java/io/dummymaker/model/DummyUnixTime.java @@ -1,7 +1,6 @@ package io.dummymaker.model; import io.dummymaker.annotation.complex.GenTime; - import java.sql.Timestamp; import java.time.LocalDate; import java.time.LocalDateTime; diff --git a/src/test/java/io/dummymaker/model/deprecated/DummyAuto.java b/src/test/java/io/dummymaker/model/deprecated/DummyAuto.java index 9e991b43..d2b23faa 100644 --- a/src/test/java/io/dummymaker/model/deprecated/DummyAuto.java +++ b/src/test/java/io/dummymaker/model/deprecated/DummyAuto.java @@ -4,7 +4,6 @@ import io.dummymaker.annotation.complex.GenMap; import io.dummymaker.annotation.simple.number.GenLong; import io.dummymaker.annotation.special.GenAuto; - import java.util.List; import java.util.Map; diff --git a/src/test/java/io/dummymaker/rules/GenRulesTests.java b/src/test/java/io/dummymaker/rules/GenRulesTests.java index d4b617a6..6e60a081 100644 --- a/src/test/java/io/dummymaker/rules/GenRulesTests.java +++ b/src/test/java/io/dummymaker/rules/GenRulesTests.java @@ -7,11 +7,10 @@ import io.dummymaker.model.GenFieldRule; import io.dummymaker.model.GenRule; import io.dummymaker.model.GenRules; +import java.util.List; import org.junit.Assert; import org.junit.Test; -import java.util.List; - /** * @author GoodforGod * @see io.dummymaker.model.GenRule diff --git a/src/test/java/io/dummymaker/scan/AnnotationScannerTests.java b/src/test/java/io/dummymaker/scan/AnnotationScannerTests.java index 33a6b7d5..add175b1 100644 --- a/src/test/java/io/dummymaker/scan/AnnotationScannerTests.java +++ b/src/test/java/io/dummymaker/scan/AnnotationScannerTests.java @@ -1,16 +1,15 @@ package io.dummymaker.scan; +import static io.dummymaker.model.Dummy.DummyFields.*; +import static org.junit.Assert.*; + import io.dummymaker.model.Dummy; import io.dummymaker.scan.impl.AnnotationScanner; -import org.junit.Test; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.util.List; import java.util.Map; - -import static io.dummymaker.model.Dummy.DummyFields.*; -import static org.junit.Assert.*; +import org.junit.Test; /** * ! NO DESCRIPTION ! diff --git a/src/test/java/io/dummymaker/scan/ClassScannerTests.java b/src/test/java/io/dummymaker/scan/ClassScannerTests.java index 92891927..d0955399 100644 --- a/src/test/java/io/dummymaker/scan/ClassScannerTests.java +++ b/src/test/java/io/dummymaker/scan/ClassScannerTests.java @@ -3,11 +3,10 @@ import io.dummymaker.scan.impl.ClassScanner; import io.dummymaker.writer.IWriter; import io.dummymaker.writer.impl.FileWriter; +import java.util.Collection; import org.junit.Assert; import org.junit.Test; -import java.util.Collection; - /** * Tests that recursion class scanner works * diff --git a/src/test/java/io/dummymaker/scan/ExportScannerTests.java b/src/test/java/io/dummymaker/scan/ExportScannerTests.java index 63c9a8d2..25b56ebf 100644 --- a/src/test/java/io/dummymaker/scan/ExportScannerTests.java +++ b/src/test/java/io/dummymaker/scan/ExportScannerTests.java @@ -1,14 +1,13 @@ package io.dummymaker.scan; +import static io.dummymaker.model.Dummy.DummyFields.*; +import static org.junit.Assert.*; + import io.dummymaker.model.Dummy; import io.dummymaker.model.export.FieldContainer; import io.dummymaker.scan.impl.ExportScanner; -import org.junit.Test; - import java.util.Collection; - -import static io.dummymaker.model.Dummy.DummyFields.*; -import static org.junit.Assert.*; +import org.junit.Test; /** * @author GoodforGod diff --git a/src/test/java/io/dummymaker/scan/GenScannerTests.java b/src/test/java/io/dummymaker/scan/GenScannerTests.java index 1d8e900c..d772a51f 100644 --- a/src/test/java/io/dummymaker/scan/GenScannerTests.java +++ b/src/test/java/io/dummymaker/scan/GenScannerTests.java @@ -1,5 +1,8 @@ package io.dummymaker.scan; +import static io.dummymaker.model.Dummy.DummyFields.*; +import static org.junit.Assert.*; + import io.dummymaker.annotation.core.PrimeGen; import io.dummymaker.annotation.simple.number.GenDoubleBig; import io.dummymaker.annotation.simple.string.GenCity; @@ -10,13 +13,9 @@ import io.dummymaker.model.DummyNoFillFields; import io.dummymaker.model.GenContainer; import io.dummymaker.scan.impl.GenScanner; -import org.junit.Test; - import java.lang.reflect.Field; import java.util.Map; - -import static io.dummymaker.model.Dummy.DummyFields.*; -import static org.junit.Assert.*; +import org.junit.Test; /** * ! NO DESCRIPTION ! diff --git a/src/test/java/io/dummymaker/scan/ResourceScannerTests.java b/src/test/java/io/dummymaker/scan/ResourceScannerTests.java index d5c400cb..a0940564 100644 --- a/src/test/java/io/dummymaker/scan/ResourceScannerTests.java +++ b/src/test/java/io/dummymaker/scan/ResourceScannerTests.java @@ -3,12 +3,11 @@ import io.dummymaker.scan.impl.ResourceScanner; import io.dummymaker.writer.IWriter; import io.dummymaker.writer.impl.FileWriter; -import org.junit.Assert; -import org.junit.Test; - import java.nio.file.Path; import java.nio.file.Paths; import java.util.Collection; +import org.junit.Assert; +import org.junit.Test; /** * Resource scanner tests diff --git a/src/test/java/io/dummymaker/scan/SequenceScannerTests.java b/src/test/java/io/dummymaker/scan/SequenceScannerTests.java index 468fc889..0d958fb6 100644 --- a/src/test/java/io/dummymaker/scan/SequenceScannerTests.java +++ b/src/test/java/io/dummymaker/scan/SequenceScannerTests.java @@ -1,17 +1,16 @@ package io.dummymaker.scan; +import static org.junit.Assert.*; + import io.dummymaker.annotation.special.GenSequence; import io.dummymaker.model.DummyArray; import io.dummymaker.model.DummySimple; import io.dummymaker.scan.impl.SequenceScanner; -import org.junit.Test; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.util.List; import java.util.Map; - -import static org.junit.Assert.*; +import org.junit.Test; /** * ! NO DESCRIPTION ! diff --git a/src/test/java/io/dummymaker/scan/UniqueScannerTests.java b/src/test/java/io/dummymaker/scan/UniqueScannerTests.java index 8e31c62c..0c214089 100644 --- a/src/test/java/io/dummymaker/scan/UniqueScannerTests.java +++ b/src/test/java/io/dummymaker/scan/UniqueScannerTests.java @@ -5,14 +5,13 @@ import io.dummymaker.annotation.simple.number.GenShort; import io.dummymaker.model.DummyCast; import io.dummymaker.scan.impl.UniqueScanner; -import org.junit.Assert; -import org.junit.Test; - import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.util.List; import java.util.Map; import java.util.Optional; +import org.junit.Assert; +import org.junit.Test; /** * Unique field annotation scanner tests diff --git a/src/test/java/io/dummymaker/util/CastUtilsTest.java b/src/test/java/io/dummymaker/util/CastUtilsTest.java index b321e7fc..1bda3f7d 100644 --- a/src/test/java/io/dummymaker/util/CastUtilsTest.java +++ b/src/test/java/io/dummymaker/util/CastUtilsTest.java @@ -1,11 +1,10 @@ package io.dummymaker.util; import io.dummymaker.generator.simple.NullGenerator; +import java.time.LocalDate; import org.junit.Assert; import org.junit.Test; -import java.time.LocalDate; - /** * "default comment" * diff --git a/src/test/java/io/dummymaker/util/CollectionUtilsTest.java b/src/test/java/io/dummymaker/util/CollectionUtilsTest.java index 7acee480..e3516c9b 100644 --- a/src/test/java/io/dummymaker/util/CollectionUtilsTest.java +++ b/src/test/java/io/dummymaker/util/CollectionUtilsTest.java @@ -1,10 +1,9 @@ package io.dummymaker.util; +import java.util.*; import org.junit.Assert; import org.junit.Test; -import java.util.*; - /** * "default comment" * diff --git a/src/test/java/io/dummymaker/util/DateUtilsErrorTests.java b/src/test/java/io/dummymaker/util/DateUtilsErrorTests.java index bbe584b2..25b69eb2 100644 --- a/src/test/java/io/dummymaker/util/DateUtilsErrorTests.java +++ b/src/test/java/io/dummymaker/util/DateUtilsErrorTests.java @@ -1,13 +1,12 @@ package io.dummymaker.util; -import org.junit.Assert; -import org.junit.Test; - import java.sql.Timestamp; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; import java.util.Date; +import org.junit.Assert; +import org.junit.Test; /** * "default comment" diff --git a/src/test/java/io/dummymaker/util/DateUtilsValidTest.java b/src/test/java/io/dummymaker/util/DateUtilsValidTest.java index 04a7ad8d..99eb115b 100644 --- a/src/test/java/io/dummymaker/util/DateUtilsValidTest.java +++ b/src/test/java/io/dummymaker/util/DateUtilsValidTest.java @@ -1,13 +1,12 @@ package io.dummymaker.util; -import org.junit.Assert; -import org.junit.Test; - import java.sql.Timestamp; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; import java.util.Date; +import org.junit.Assert; +import org.junit.Test; /** * "default comment" From ff4221e6635d020825811984125b90b0e0a6f91c Mon Sep 17 00:00:00 2001 From: Anton Kurako Date: Sat, 4 Dec 2021 11:46:20 +0300 Subject: [PATCH 03/15] [3.1.0-SNAPSHOT] Existing generators pattern matching improved FullnameGenerator added --- build.gradle | 2 +- .../simple/number/IntegerGenerator.java | 2 +- .../simple/number/IntegerSmallGenerator.java | 2 +- .../simple/string/DescriptionGenerator.java | 3 +- .../simple/string/DocumentGenerator.java | 2 +- .../simple/string/FileGenerator.java | 3 +- .../simple/string/FormatGenerator.java | 2 +- .../simple/string/FullnameGenerator.java | 32 +++++++++++++++++++ .../simple/string/MiddleNameGenerator.java | 2 +- .../simple/string/NameGenerator.java | 2 +- .../simple/string/NounGenerator.java | 3 +- .../simple/string/PhoneGenerator.java | 2 +- .../simple/string/ProductGenerator.java | 3 +- .../generator/simple/string/UrlGenerator.java | 2 +- 14 files changed, 49 insertions(+), 13 deletions(-) create mode 100644 src/main/java/io/dummymaker/generator/simple/string/FullnameGenerator.java diff --git a/build.gradle b/build.gradle index ccc8a497..f330b378 100644 --- a/build.gradle +++ b/build.gradle @@ -41,7 +41,7 @@ dependencies { implementation "me.xdrop:fuzzywuzzy:1.3.1" implementation "javax.inject:javax.inject:1" - testRuntimeOnly "ch.qos.logback:logback-classic:1.2.3" + testRuntimeOnly "ch.qos.logback:logback-classic:1.2.7" testImplementation "junit:junit:4.13.2" } diff --git a/src/main/java/io/dummymaker/generator/simple/number/IntegerGenerator.java b/src/main/java/io/dummymaker/generator/simple/number/IntegerGenerator.java index 7a3e7830..4941b871 100644 --- a/src/main/java/io/dummymaker/generator/simple/number/IntegerGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/number/IntegerGenerator.java @@ -16,7 +16,7 @@ */ public class IntegerGenerator implements IGenerator { - private final Pattern pattern = Pattern.compile("num(ber)?|counter", CASE_INSENSITIVE); + private final Pattern pattern = Pattern.compile("num(ber)?|counter|series", CASE_INSENSITIVE); @Override public @NotNull Integer generate() { diff --git a/src/main/java/io/dummymaker/generator/simple/number/IntegerSmallGenerator.java b/src/main/java/io/dummymaker/generator/simple/number/IntegerSmallGenerator.java index 1ccd19b2..affa7a87 100644 --- a/src/main/java/io/dummymaker/generator/simple/number/IntegerSmallGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/number/IntegerSmallGenerator.java @@ -15,7 +15,7 @@ */ public class IntegerSmallGenerator implements IGenerator { - private final Pattern pattern = Pattern.compile("age|grade|group|amount", CASE_INSENSITIVE); + private final Pattern pattern = Pattern.compile("age|grade|group|amount|inn|snils", CASE_INSENSITIVE); @Override public @NotNull Integer generate() { diff --git a/src/main/java/io/dummymaker/generator/simple/string/DescriptionGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/DescriptionGenerator.java index 4d367990..0fbd257b 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/DescriptionGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/DescriptionGenerator.java @@ -16,7 +16,8 @@ */ public class DescriptionGenerator implements IGenerator { - private final Pattern pattern = Pattern.compile("info|desc(ription)?|phrase|comment|sentence", CASE_INSENSITIVE); + private final Pattern pattern = Pattern.compile("diploma|info|desc(ription)?|phrase|comment|sentence|reason", + CASE_INSENSITIVE); private final IBundle bundle = new PhraseBundle(); diff --git a/src/main/java/io/dummymaker/generator/simple/string/DocumentGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/DocumentGenerator.java index 21e1ac16..fbefa8d8 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/DocumentGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/DocumentGenerator.java @@ -16,7 +16,7 @@ */ public class DocumentGenerator implements IGenerator { - private final Pattern pattern = Pattern.compile("pass(word)?|doc(ument)?|org|project", CASE_INSENSITIVE); + private final Pattern pattern = Pattern.compile("pass(word)?|org|project", CASE_INSENSITIVE); private final IGenerator prefixGenerator = new CharacterGenerator(); diff --git a/src/main/java/io/dummymaker/generator/simple/string/FileGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/FileGenerator.java index 928b6801..927d6796 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/FileGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/FileGenerator.java @@ -17,7 +17,8 @@ */ public class FileGenerator implements IGenerator { - private final Pattern pattern = Pattern.compile("file", CASE_INSENSITIVE); + private final Pattern pattern = Pattern.compile("file|doc(ument)?", CASE_INSENSITIVE); + private final IBundle extensions = new ExtensionBundle(); private final IBundle names = new NounBundle(); diff --git a/src/main/java/io/dummymaker/generator/simple/string/FormatGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/FormatGenerator.java index cb4012a2..53b2aa1a 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/FormatGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/FormatGenerator.java @@ -16,7 +16,7 @@ */ public class FormatGenerator implements IGenerator { - private final Pattern pattern = Pattern.compile("format", CASE_INSENSITIVE); + private final Pattern pattern = Pattern.compile("protocol|format", CASE_INSENSITIVE); private final IBundle formats = new FormatBundle(); diff --git a/src/main/java/io/dummymaker/generator/simple/string/FullnameGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/FullnameGenerator.java new file mode 100644 index 00000000..f11c0bd6 --- /dev/null +++ b/src/main/java/io/dummymaker/generator/simple/string/FullnameGenerator.java @@ -0,0 +1,32 @@ +package io.dummymaker.generator.simple.string; + +import static java.util.regex.Pattern.CASE_INSENSITIVE; + +import io.dummymaker.generator.IGenerator; +import java.util.regex.Pattern; +import org.jetbrains.annotations.NotNull; + +/** + * Generates fullname + * + * @author GoodforGod + * @since 26.05.2017 + */ +public class FullnameGenerator implements IGenerator { + + private final Pattern pattern = Pattern.compile("person|candidate|fullname|fio", CASE_INSENSITIVE); + + private final NameGenerator nameGenerator = new NameGenerator(); + private final MiddleNameGenerator middleNameGenerator = new MiddleNameGenerator(); + private final SurnameGenerator surnameGenerator = new SurnameGenerator(); + + @Override + public @NotNull String generate() { + return nameGenerator + " " + middleNameGenerator + " " + surnameGenerator; + } + + @Override + public @NotNull Pattern pattern() { + return pattern; + } +} diff --git a/src/main/java/io/dummymaker/generator/simple/string/MiddleNameGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/MiddleNameGenerator.java index 97183b8e..da607c85 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/MiddleNameGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/MiddleNameGenerator.java @@ -16,7 +16,7 @@ */ public class MiddleNameGenerator implements IGenerator { - private final Pattern pattern = Pattern.compile("middle(name)?", CASE_INSENSITIVE); + private final Pattern pattern = Pattern.compile("middle(name)?|patronymic", CASE_INSENSITIVE); private final IBundle bundle = new MiddleNameBundle(); diff --git a/src/main/java/io/dummymaker/generator/simple/string/NameGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/NameGenerator.java index a20ab40d..decc186d 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/NameGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/NameGenerator.java @@ -18,7 +18,7 @@ */ public class NameGenerator implements IGenerator { - private final Pattern pattern = Pattern.compile("name|assignee|employe|worker", CASE_INSENSITIVE); + private final Pattern pattern = Pattern.compile("user|account|name|assignee|employe|worker", CASE_INSENSITIVE); private final IBundle maleBundle = new MaleNameBundle(); private final IBundle femaleBundle = new FemaleNameBundle(); diff --git a/src/main/java/io/dummymaker/generator/simple/string/NounGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/NounGenerator.java index 0d13fc1e..f468f0e8 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/NounGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/NounGenerator.java @@ -16,7 +16,8 @@ */ public class NounGenerator implements IGenerator { - private final Pattern pattern = Pattern.compile("word|noun|field|data(base)?|schema|collection|class", CASE_INSENSITIVE); + private final Pattern pattern = Pattern.compile( + "commission|education|subj(ect)?|program|word|noun|field|data(base)?|schema|collection|class", CASE_INSENSITIVE); private final IBundle bundle = new NounBundle(); diff --git a/src/main/java/io/dummymaker/generator/simple/string/PhoneGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/PhoneGenerator.java index f88c8f3e..5868fb35 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/PhoneGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/PhoneGenerator.java @@ -15,7 +15,7 @@ */ public class PhoneGenerator implements IGenerator { - private final Pattern pattern = Pattern.compile("phone|mobile(phone)?|dial", CASE_INSENSITIVE); + private final Pattern pattern = Pattern.compile("telefax|phone|mobile(phone)?|dial", CASE_INSENSITIVE); @Override public @NotNull String generate() { diff --git a/src/main/java/io/dummymaker/generator/simple/string/ProductGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/ProductGenerator.java index d4468f0d..525c3751 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/ProductGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/ProductGenerator.java @@ -17,7 +17,8 @@ */ public class ProductGenerator implements IGenerator { - private final Pattern pattern = Pattern.compile("product|good|supply|topic", CASE_INSENSITIVE); + private final Pattern pattern = Pattern + .compile("association|administrative|academy|university|org(anization)?|product|good|supply|topic", CASE_INSENSITIVE); private final IBundle bundle = new ProductBundle(); @Nullable diff --git a/src/main/java/io/dummymaker/generator/simple/string/UrlGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/UrlGenerator.java index ae717ae8..54bf9b8f 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/UrlGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/UrlGenerator.java @@ -16,7 +16,7 @@ */ public class UrlGenerator extends UriGenerator { - private final Pattern pattern = Pattern.compile("url|server|link", CASE_INSENSITIVE); + private final Pattern pattern = Pattern.compile("site|website|url|server|link", CASE_INSENSITIVE); private final IBundle domains = new LoginBundle(); private final IBundle zones = new DomainBundle(); From 8a5bce90e3bfbade53fff5225c64e56b7d9d55f8 Mon Sep 17 00:00:00 2001 From: Anton Kurako Date: Sat, 4 Dec 2021 13:40:49 +0300 Subject: [PATCH 04/15] [3.1.0-SNAPSHOT] StatusGenerator, LevelGenerator, PhotoGenerator created TypeGenerator simplified --- .../annotation/simple/string/GenFullname.java | 20 +++++++++++ .../annotation/simple/string/GenLevel.java | 20 +++++++++++ .../annotation/simple/string/GenPhoto.java | 20 +++++++++++ .../annotation/simple/string/GenStatus.java | 20 +++++++++++ .../simple/string/LevelGenerator.java | 34 +++++++++++++++++++ .../simple/string/PhotoGenerator.java | 30 ++++++++++++++++ .../simple/string/StatusGenerator.java | 34 +++++++++++++++++++ .../simple/string/TypeGenerator.java | 6 ++-- 8 files changed, 181 insertions(+), 3 deletions(-) create mode 100644 src/main/java/io/dummymaker/annotation/simple/string/GenFullname.java create mode 100644 src/main/java/io/dummymaker/annotation/simple/string/GenLevel.java create mode 100644 src/main/java/io/dummymaker/annotation/simple/string/GenPhoto.java create mode 100644 src/main/java/io/dummymaker/annotation/simple/string/GenStatus.java create mode 100644 src/main/java/io/dummymaker/generator/simple/string/LevelGenerator.java create mode 100644 src/main/java/io/dummymaker/generator/simple/string/PhotoGenerator.java create mode 100644 src/main/java/io/dummymaker/generator/simple/string/StatusGenerator.java diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenFullname.java b/src/main/java/io/dummymaker/annotation/simple/string/GenFullname.java new file mode 100644 index 00000000..2ba4f7b8 --- /dev/null +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenFullname.java @@ -0,0 +1,20 @@ +package io.dummymaker.annotation.simple.string; + +import io.dummymaker.annotation.core.PrimeGen; +import io.dummymaker.generator.simple.string.FullnameGenerator; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * @author GoodforGod + * @see FullnameGenerator + * @since 04.12.2021 + */ +@PrimeGen(FullnameGenerator.class) +@Retention(value = RetentionPolicy.RUNTIME) +@Target(ElementType.FIELD) +public @interface GenFullname { + +} diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenLevel.java b/src/main/java/io/dummymaker/annotation/simple/string/GenLevel.java new file mode 100644 index 00000000..f9bf36f6 --- /dev/null +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenLevel.java @@ -0,0 +1,20 @@ +package io.dummymaker.annotation.simple.string; + +import io.dummymaker.annotation.core.PrimeGen; +import io.dummymaker.generator.simple.string.LevelGenerator; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * @author GoodforGod + * @see LevelGenerator + * @since 04.12.2021 + */ +@PrimeGen(LevelGenerator.class) +@Retention(value = RetentionPolicy.RUNTIME) +@Target(ElementType.FIELD) +public @interface GenLevel { + +} diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenPhoto.java b/src/main/java/io/dummymaker/annotation/simple/string/GenPhoto.java new file mode 100644 index 00000000..cc4545e7 --- /dev/null +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenPhoto.java @@ -0,0 +1,20 @@ +package io.dummymaker.annotation.simple.string; + +import io.dummymaker.annotation.core.PrimeGen; +import io.dummymaker.generator.simple.string.PhotoGenerator; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * @author GoodforGod + * @see PhotoGenerator + * @since 04.12.2021 + */ +@PrimeGen(PhotoGenerator.class) +@Retention(value = RetentionPolicy.RUNTIME) +@Target(ElementType.FIELD) +public @interface GenPhoto { + +} diff --git a/src/main/java/io/dummymaker/annotation/simple/string/GenStatus.java b/src/main/java/io/dummymaker/annotation/simple/string/GenStatus.java new file mode 100644 index 00000000..ab235c31 --- /dev/null +++ b/src/main/java/io/dummymaker/annotation/simple/string/GenStatus.java @@ -0,0 +1,20 @@ +package io.dummymaker.annotation.simple.string; + +import io.dummymaker.annotation.core.PrimeGen; +import io.dummymaker.generator.simple.string.StatusGenerator; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * @author GoodforGod + * @see StatusGenerator + * @since 04.12.2021 + */ +@PrimeGen(StatusGenerator.class) +@Retention(value = RetentionPolicy.RUNTIME) +@Target(ElementType.FIELD) +public @interface GenStatus { + +} diff --git a/src/main/java/io/dummymaker/generator/simple/string/LevelGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/LevelGenerator.java new file mode 100644 index 00000000..594ae5fb --- /dev/null +++ b/src/main/java/io/dummymaker/generator/simple/string/LevelGenerator.java @@ -0,0 +1,34 @@ +package io.dummymaker.generator.simple.string; + +import static java.util.regex.Pattern.CASE_INSENSITIVE; + +import io.dummymaker.generator.IGenerator; +import io.dummymaker.util.CollectionUtils; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; +import org.jetbrains.annotations.NotNull; + +/** + * Generates level from one of present + * + * @author Anton Kurako (GoodforGod) + * @since 04.12.2021 + */ +public class LevelGenerator implements IGenerator { + + private final Pattern pattern = Pattern.compile("level|lvl", CASE_INSENSITIVE); + + private static final List types = Arrays.asList("error", "warn", "info", "debug", "trace"); + + @SuppressWarnings("ConstantConditions") + @Override + public @NotNull String generate() { + return CollectionUtils.random(types); + } + + @Override + public @NotNull Pattern pattern() { + return pattern; + } +} diff --git a/src/main/java/io/dummymaker/generator/simple/string/PhotoGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/PhotoGenerator.java new file mode 100644 index 00000000..86d56672 --- /dev/null +++ b/src/main/java/io/dummymaker/generator/simple/string/PhotoGenerator.java @@ -0,0 +1,30 @@ +package io.dummymaker.generator.simple.string; + +import static java.util.regex.Pattern.CASE_INSENSITIVE; + +import io.dummymaker.generator.IGenerator; +import java.util.regex.Pattern; +import org.jetbrains.annotations.Nullable; + +/** + * Generates photo as base64 + * + * @author Anton Kurako (GoodforGod) + * @since 04.12.2021 + */ +public class PhotoGenerator implements IGenerator { + + private final Pattern pattern = Pattern.compile("pic(ture)?|photo|avatar|base64", CASE_INSENSITIVE); + + private static final String PHOTO_JPG_AS_BASE64 = "/9j/4AAQSkZJRgABAQEAYABgAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAAeAB4DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9pAMmvlz9oL/gqz4J+DHjW88P6PpOoeM9Q02VoL2a2uUtbKCVTho1lYOZGUghtqbQRgMSCB9F/EUaofh34h/sPzP7b/su6/s7y/v/AGnyX8nHv5m3HvX4b2m37LHt+7tGPyoA/Xb9lL9u3wd+1jLcafpsd9oniOzi8+bSb/aXkiBAMkMinbKikgHhWGclcYY+1V+Pv7Bv9pf8Nl/Dn+yfM+1f2uvmbOv2by3+059vs/m59s1+wVAHnn7Sv7Tvhn9lbwEuu+IpZ5JLqQwadp9qA11qMoGSqAkAKoILuxCqCOrMit8J+LLH9m79qjVpvE3/AAlusfBvxLqTmfVNLudNa+sJJm5eWJkUKNzEknemc58pSTnmP+ConxKvfH37YGuafO7iw8JQwaVYxE/KgMSTSvjpuaWVuepVUB+6MfPNAH2h8Fv2g/2e/wBh3xPE/hdvFXxG1rUv9G1PxH9kFuunWx5ZLaKURk5YKWVQSwB/ekAIfvvwh4v0vx/4V0/XNEvrfU9I1aBbm0uoSSk8bdCM4IPUFSAykEEAggfhpX6Df8EXviTfaz4G8aeELh2ks9BurbUbHcc+SLoTCWMei74A4A43SSHqeQD/2Q=="; + + @Override + public @Nullable String generate() { + return PHOTO_JPG_AS_BASE64; + } + + @Override + public @Nullable Pattern pattern() { + return pattern; + } +} diff --git a/src/main/java/io/dummymaker/generator/simple/string/StatusGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/StatusGenerator.java new file mode 100644 index 00000000..214f84b2 --- /dev/null +++ b/src/main/java/io/dummymaker/generator/simple/string/StatusGenerator.java @@ -0,0 +1,34 @@ +package io.dummymaker.generator.simple.string; + +import static java.util.regex.Pattern.CASE_INSENSITIVE; + +import io.dummymaker.generator.IGenerator; +import io.dummymaker.util.CollectionUtils; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; +import org.jetbrains.annotations.NotNull; + +/** + * Generates status from one of lists + * + * @author Anton Kurako (GoodforGod) + * @since 04.12.2021 + */ +public class StatusGenerator implements IGenerator { + + private final Pattern pattern = Pattern.compile("status|type", CASE_INSENSITIVE); + + private static final List types = Arrays.asList("success", "failed", "rejected", "invalid"); + + @SuppressWarnings("ConstantConditions") + @Override + public @NotNull String generate() { + return CollectionUtils.random(types); + } + + @Override + public @NotNull Pattern pattern() { + return pattern; + } +} diff --git a/src/main/java/io/dummymaker/generator/simple/string/TypeGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/TypeGenerator.java index 62cc88ec..502f4c9c 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/TypeGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/TypeGenerator.java @@ -17,10 +17,10 @@ */ public class TypeGenerator implements IGenerator { - private final Pattern pattern = Pattern.compile("type|adjective|level|lvl", CASE_INSENSITIVE); + private final Pattern pattern = Pattern.compile("adjective|intense|difficult|level|lvl", CASE_INSENSITIVE); - private final List types = Arrays.asList("terrible", "bad", "poor", "limited", "neutral", "average", "Decent", "fine", - "superior"); + private static final List types = Arrays.asList("terrible", "bad", "poor", "limited", + "neutral", "average", "decent", "fine", "superior"); @SuppressWarnings("ConstantConditions") @Override From dff783e01d0ed81a4874f33a4e709ff6a2ecdba3 Mon Sep 17 00:00:00 2001 From: Anton Kurako Date: Sat, 4 Dec 2021 13:43:54 +0300 Subject: [PATCH 05/15] [3.1.0-SNAPSHOT] Generators resources make static IGenerator#compareTo and IGenerator#order contracts added Some generators order contract override to prioritize GenSupplier comparator for generators change to support IGenerator#compareTo --- .../java/io/dummymaker/factory/impl/GenSupplier.java | 4 ++-- .../java/io/dummymaker/generator/IGenerator.java | 12 +++++++++++- .../simple/number/IntegerSmallGenerator.java | 5 +++++ .../simple/number/IntegetMediumGenerator.java | 5 +++++ .../simple/string/AddressFullGenerator.java | 2 +- .../generator/simple/string/AddressGenerator.java | 6 +++--- .../generator/simple/string/CityGenerator.java | 2 +- .../generator/simple/string/CompanyGenerator.java | 2 +- .../generator/simple/string/CountryGenerator.java | 2 +- .../simple/string/DescriptionGenerator.java | 2 +- .../generator/simple/string/DistrictGenerator.java | 2 +- .../generator/simple/string/EmailGenerator.java | 6 +++--- .../generator/simple/string/ExtensionGenerator.java | 2 +- .../generator/simple/string/FileGenerator.java | 4 ++-- .../generator/simple/string/FormatGenerator.java | 2 +- .../generator/simple/string/FullnameGenerator.java | 5 +++++ .../generator/simple/string/IdGenerator.java | 5 +++++ .../generator/simple/string/JobGenerator.java | 2 +- .../generator/simple/string/LoginGenerator.java | 2 +- .../generator/simple/string/MiddleNameGenerator.java | 7 ++++++- .../generator/simple/string/NameGenerator.java | 9 +++++++-- .../generator/simple/string/NounGenerator.java | 2 +- .../generator/simple/string/ProductGenerator.java | 2 +- .../generator/simple/string/RoleGenerator.java | 2 +- .../generator/simple/string/StreetGenerator.java | 2 +- .../generator/simple/string/SurnameGenerator.java | 7 ++++++- .../generator/simple/string/TagGenerator.java | 2 +- .../generator/simple/string/UrlGenerator.java | 4 ++-- 28 files changed, 77 insertions(+), 32 deletions(-) diff --git a/src/main/java/io/dummymaker/factory/impl/GenSupplier.java b/src/main/java/io/dummymaker/factory/impl/GenSupplier.java index 033adb97..65b502f8 100644 --- a/src/main/java/io/dummymaker/factory/impl/GenSupplier.java +++ b/src/main/java/io/dummymaker/factory/impl/GenSupplier.java @@ -49,7 +49,7 @@ public GenSupplier() { .collect(Collectors.toMap(Map.Entry::getKey, e -> e.getValue().stream() .map(CastUtils::instantiate) .filter(Objects::nonNull) - .sorted(Comparator.comparing(g -> g.getClass().getSimpleName())) + .sorted(IGenerator::compareTo) .collect(Collectors.toList()))); } @@ -127,7 +127,7 @@ private Optional> getSuitableGeneratorClass(String f final Stream typedGeneratorStream = classifiers.get(type).stream(); return getSuitableGenerator(fieldName, typedGeneratorStream) - .map(g -> g.getClass()); + .map(IGenerator::getClass); } @SuppressWarnings("ConstantConditions") diff --git a/src/main/java/io/dummymaker/generator/IGenerator.java b/src/main/java/io/dummymaker/generator/IGenerator.java index 83067743..d869fa1d 100644 --- a/src/main/java/io/dummymaker/generator/IGenerator.java +++ b/src/main/java/io/dummymaker/generator/IGenerator.java @@ -2,6 +2,7 @@ import io.dummymaker.annotation.core.PrimeGen; import java.util.regex.Pattern; +import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; /** @@ -11,7 +12,7 @@ * @see PrimeGen * @since 26.05.2017 */ -public interface IGenerator { +public interface IGenerator extends Comparable { @Nullable T generate(); @@ -20,4 +21,13 @@ public interface IGenerator { default Pattern pattern() { return null; } + + default int order() { + return 0; + } + + @Override + default int compareTo(@NotNull IGenerator o) { + return Integer.compare(order(), o.order()); + } } diff --git a/src/main/java/io/dummymaker/generator/simple/number/IntegerSmallGenerator.java b/src/main/java/io/dummymaker/generator/simple/number/IntegerSmallGenerator.java index affa7a87..e8671f1d 100644 --- a/src/main/java/io/dummymaker/generator/simple/number/IntegerSmallGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/number/IntegerSmallGenerator.java @@ -26,4 +26,9 @@ public class IntegerSmallGenerator implements IGenerator { public @NotNull Pattern pattern() { return pattern; } + + @Override + public int order() { + return -50; + } } diff --git a/src/main/java/io/dummymaker/generator/simple/number/IntegetMediumGenerator.java b/src/main/java/io/dummymaker/generator/simple/number/IntegetMediumGenerator.java index 45b9ce70..fc13876a 100644 --- a/src/main/java/io/dummymaker/generator/simple/number/IntegetMediumGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/number/IntegetMediumGenerator.java @@ -26,4 +26,9 @@ public class IntegetMediumGenerator implements IGenerator { public @NotNull Pattern pattern() { return pattern; } + + @Override + public int order() { + return -50; + } } diff --git a/src/main/java/io/dummymaker/generator/simple/string/AddressFullGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/AddressFullGenerator.java index 779e2376..daff9c2e 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/AddressFullGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/AddressFullGenerator.java @@ -20,7 +20,7 @@ public class AddressFullGenerator implements IGenerator { private final Pattern pattern = Pattern.compile("addr(ess)?full|place|residence|home|location", CASE_INSENSITIVE); private final IGenerator generator = new AddressGenerator(); - private final IBundle countryBundle = new CountryBundle(); + private static final IBundle countryBundle = new CountryBundle(); @Override public @NotNull String generate() { diff --git a/src/main/java/io/dummymaker/generator/simple/string/AddressGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/AddressGenerator.java index d6ccc1a7..d4446703 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/AddressGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/AddressGenerator.java @@ -22,9 +22,9 @@ public class AddressGenerator implements IGenerator { private final Pattern pattern = Pattern.compile("addr(ess)?", CASE_INSENSITIVE); - private final IBundle streetBundle = new StreetBundle(); - private final IBundle districtBundle = new DistrictBundle(); - private final IBundle cityBundle = new CityBundle(); + private static final IBundle streetBundle = new StreetBundle(); + private static final IBundle districtBundle = new DistrictBundle(); + private static final IBundle cityBundle = new CityBundle(); @Override public @NotNull String generate() { diff --git a/src/main/java/io/dummymaker/generator/simple/string/CityGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/CityGenerator.java index 883d505d..18bfd507 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/CityGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/CityGenerator.java @@ -18,7 +18,7 @@ public class CityGenerator implements IGenerator { private final Pattern pattern = Pattern.compile("city|town|village|settlement", CASE_INSENSITIVE); - private final IBundle bundle = new CityBundle(); + private static final IBundle bundle = new CityBundle(); @Override public @NotNull String generate() { diff --git a/src/main/java/io/dummymaker/generator/simple/string/CompanyGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/CompanyGenerator.java index 0dc10588..51be1bd4 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/CompanyGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/CompanyGenerator.java @@ -19,7 +19,7 @@ public class CompanyGenerator implements IGenerator { private final Pattern pattern = Pattern.compile("organization|company|corp(oration)?|fund|business|shop|store", CASE_INSENSITIVE); - private final IBundle bundle = new CompanyBundle(); + private static final IBundle bundle = new CompanyBundle(); @Override public @NotNull String generate() { diff --git a/src/main/java/io/dummymaker/generator/simple/string/CountryGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/CountryGenerator.java index f3cf0151..50c981a1 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/CountryGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/CountryGenerator.java @@ -18,7 +18,7 @@ public class CountryGenerator implements IGenerator { private final Pattern pattern = Pattern.compile("country", CASE_INSENSITIVE); - private final IBundle bundle = new CountryBundle(); + private static final IBundle bundle = new CountryBundle(); @Override public @NotNull String generate() { diff --git a/src/main/java/io/dummymaker/generator/simple/string/DescriptionGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/DescriptionGenerator.java index 0fbd257b..e394f089 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/DescriptionGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/DescriptionGenerator.java @@ -19,7 +19,7 @@ public class DescriptionGenerator implements IGenerator { private final Pattern pattern = Pattern.compile("diploma|info|desc(ription)?|phrase|comment|sentence|reason", CASE_INSENSITIVE); - private final IBundle bundle = new PhraseBundle(); + private static final IBundle bundle = new PhraseBundle(); @Override public @NotNull String generate() { diff --git a/src/main/java/io/dummymaker/generator/simple/string/DistrictGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/DistrictGenerator.java index 00ef2f71..e56d6bcb 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/DistrictGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/DistrictGenerator.java @@ -18,7 +18,7 @@ public class DistrictGenerator implements IGenerator { private final Pattern pattern = Pattern.compile("state|region|district|locale?", CASE_INSENSITIVE); - private final IBundle bundle = new DistrictBundle(); + private static final IBundle bundle = new DistrictBundle(); @Override public @NotNull String generate() { diff --git a/src/main/java/io/dummymaker/generator/simple/string/EmailGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/EmailGenerator.java index 06666910..19ccc6df 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/EmailGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/EmailGenerator.java @@ -20,9 +20,9 @@ public class EmailGenerator implements IGenerator { private final Pattern pattern = Pattern.compile("e?mail", CASE_INSENSITIVE); - private final IBundle nickBundle = new LoginBundle(); - private final IBundle emailBundle = new EmailServicesBundle(); - private final IBundle domainBundle = new DomainBundle(); + private static final IBundle nickBundle = new LoginBundle(); + private static final IBundle emailBundle = new EmailServicesBundle(); + private static final IBundle domainBundle = new DomainBundle(); @Override public @NotNull String generate() { diff --git a/src/main/java/io/dummymaker/generator/simple/string/ExtensionGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/ExtensionGenerator.java index c64cb59a..9afa776a 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/ExtensionGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/ExtensionGenerator.java @@ -17,7 +17,7 @@ public class ExtensionGenerator implements IGenerator { private final Pattern pattern = Pattern.compile("ext(ension)?", CASE_INSENSITIVE); - private final IBundle bundle = new ExtensionBundle(); + private static final IBundle bundle = new ExtensionBundle(); @Nullable @Override diff --git a/src/main/java/io/dummymaker/generator/simple/string/FileGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/FileGenerator.java index 927d6796..6ebc6bae 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/FileGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/FileGenerator.java @@ -19,8 +19,8 @@ public class FileGenerator implements IGenerator { private final Pattern pattern = Pattern.compile("file|doc(ument)?", CASE_INSENSITIVE); - private final IBundle extensions = new ExtensionBundle(); - private final IBundle names = new NounBundle(); + private static final IBundle extensions = new ExtensionBundle(); + private static final IBundle names = new NounBundle(); @Nullable @Override diff --git a/src/main/java/io/dummymaker/generator/simple/string/FormatGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/FormatGenerator.java index 53b2aa1a..533811a4 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/FormatGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/FormatGenerator.java @@ -18,7 +18,7 @@ public class FormatGenerator implements IGenerator { private final Pattern pattern = Pattern.compile("protocol|format", CASE_INSENSITIVE); - private final IBundle formats = new FormatBundle(); + private static final IBundle formats = new FormatBundle(); @Override public @NotNull String generate() { diff --git a/src/main/java/io/dummymaker/generator/simple/string/FullnameGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/FullnameGenerator.java index f11c0bd6..5faab3ec 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/FullnameGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/FullnameGenerator.java @@ -29,4 +29,9 @@ public class FullnameGenerator implements IGenerator { public @NotNull Pattern pattern() { return pattern; } + + @Override + public int order() { + return -10; + } } diff --git a/src/main/java/io/dummymaker/generator/simple/string/IdGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/IdGenerator.java index 33214971..28b53ebd 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/IdGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/IdGenerator.java @@ -24,4 +24,9 @@ public class IdGenerator implements IGenerator { public @NotNull Pattern pattern() { return pattern; } + + @Override + public int order() { + return -100; + } } diff --git a/src/main/java/io/dummymaker/generator/simple/string/JobGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/JobGenerator.java index d1a50a3e..cf5a773a 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/JobGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/JobGenerator.java @@ -18,7 +18,7 @@ public class JobGenerator implements IGenerator { private final Pattern pattern = Pattern.compile("job|work|position", CASE_INSENSITIVE); - private final IBundle bundle = new JobBundle(); + private static final IBundle bundle = new JobBundle(); @Override public @NotNull String generate() { diff --git a/src/main/java/io/dummymaker/generator/simple/string/LoginGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/LoginGenerator.java index 839965bc..ce21a1da 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/LoginGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/LoginGenerator.java @@ -19,7 +19,7 @@ public class LoginGenerator implements IGenerator { private final Pattern pattern = Pattern.compile("nick(name)?|login", CASE_INSENSITIVE); - private final IBundle bundle = new LoginBundle(); + private static final IBundle bundle = new LoginBundle(); @Override public @NotNull String generate() { diff --git a/src/main/java/io/dummymaker/generator/simple/string/MiddleNameGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/MiddleNameGenerator.java index da607c85..c1de5223 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/MiddleNameGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/MiddleNameGenerator.java @@ -18,7 +18,7 @@ public class MiddleNameGenerator implements IGenerator { private final Pattern pattern = Pattern.compile("middle(name)?|patronymic", CASE_INSENSITIVE); - private final IBundle bundle = new MiddleNameBundle(); + private static final IBundle bundle = new MiddleNameBundle(); @Override public @NotNull String generate() { @@ -29,4 +29,9 @@ public class MiddleNameGenerator implements IGenerator { public @NotNull Pattern pattern() { return pattern; } + + @Override + public int order() { + return -10; + } } diff --git a/src/main/java/io/dummymaker/generator/simple/string/NameGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/NameGenerator.java index decc186d..34b1835e 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/NameGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/NameGenerator.java @@ -20,8 +20,8 @@ public class NameGenerator implements IGenerator { private final Pattern pattern = Pattern.compile("user|account|name|assignee|employe|worker", CASE_INSENSITIVE); - private final IBundle maleBundle = new MaleNameBundle(); - private final IBundle femaleBundle = new FemaleNameBundle(); + private static final IBundle maleBundle = new MaleNameBundle(); + private static final IBundle femaleBundle = new FemaleNameBundle(); @Override public @NotNull String generate() { @@ -34,4 +34,9 @@ public class NameGenerator implements IGenerator { public @NotNull Pattern pattern() { return pattern; } + + @Override + public int order() { + return -10; + } } diff --git a/src/main/java/io/dummymaker/generator/simple/string/NounGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/NounGenerator.java index f468f0e8..657d76ec 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/NounGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/NounGenerator.java @@ -19,7 +19,7 @@ public class NounGenerator implements IGenerator { private final Pattern pattern = Pattern.compile( "commission|education|subj(ect)?|program|word|noun|field|data(base)?|schema|collection|class", CASE_INSENSITIVE); - private final IBundle bundle = new NounBundle(); + private static final IBundle bundle = new NounBundle(); @Override public @NotNull String generate() { diff --git a/src/main/java/io/dummymaker/generator/simple/string/ProductGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/ProductGenerator.java index 525c3751..94dedd39 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/ProductGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/ProductGenerator.java @@ -19,7 +19,7 @@ public class ProductGenerator implements IGenerator { private final Pattern pattern = Pattern .compile("association|administrative|academy|university|org(anization)?|product|good|supply|topic", CASE_INSENSITIVE); - private final IBundle bundle = new ProductBundle(); + private static final IBundle bundle = new ProductBundle(); @Nullable @Override diff --git a/src/main/java/io/dummymaker/generator/simple/string/RoleGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/RoleGenerator.java index b7a9684e..d002f4e4 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/RoleGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/RoleGenerator.java @@ -18,7 +18,7 @@ public class RoleGenerator implements IGenerator { private final Pattern pattern = Pattern.compile("role", CASE_INSENSITIVE); - private final IBundle bundle = new JobBundle(); + private static final IBundle bundle = new JobBundle(); @Nullable @Override diff --git a/src/main/java/io/dummymaker/generator/simple/string/StreetGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/StreetGenerator.java index 230efa10..91d33f46 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/StreetGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/StreetGenerator.java @@ -18,7 +18,7 @@ public class StreetGenerator implements IGenerator { private final Pattern pattern = Pattern.compile("street", CASE_INSENSITIVE); - private final IBundle bundle = new StreetBundle(); + private static final IBundle bundle = new StreetBundle(); @Override public @NotNull String generate() { diff --git a/src/main/java/io/dummymaker/generator/simple/string/SurnameGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/SurnameGenerator.java index a02f1bbb..7e41f2b3 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/SurnameGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/SurnameGenerator.java @@ -18,7 +18,7 @@ public class SurnameGenerator implements IGenerator { private final Pattern pattern = Pattern.compile("surname", CASE_INSENSITIVE); - private final IBundle bundle = new SurnameBundle(); + private static final IBundle bundle = new SurnameBundle(); @Override public @NotNull String generate() { @@ -29,4 +29,9 @@ public class SurnameGenerator implements IGenerator { public @NotNull Pattern pattern() { return pattern; } + + @Override + public int order() { + return -10; + } } diff --git a/src/main/java/io/dummymaker/generator/simple/string/TagGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/TagGenerator.java index be69f415..cb5bdd8c 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/TagGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/TagGenerator.java @@ -18,7 +18,7 @@ public class TagGenerator implements IGenerator { private final Pattern pattern = Pattern.compile("(hash)?tag", CASE_INSENSITIVE); - private final IBundle bundle = new TagsBundle(); + private static final IBundle bundle = new TagsBundle(); @Override public @NotNull String generate() { diff --git a/src/main/java/io/dummymaker/generator/simple/string/UrlGenerator.java b/src/main/java/io/dummymaker/generator/simple/string/UrlGenerator.java index 54bf9b8f..93b18ce2 100644 --- a/src/main/java/io/dummymaker/generator/simple/string/UrlGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/string/UrlGenerator.java @@ -18,8 +18,8 @@ public class UrlGenerator extends UriGenerator { private final Pattern pattern = Pattern.compile("site|website|url|server|link", CASE_INSENSITIVE); - private final IBundle domains = new LoginBundle(); - private final IBundle zones = new DomainBundle(); + private static final IBundle domains = new LoginBundle(); + private static final IBundle zones = new DomainBundle(); @Override public @NotNull String generate() { From 21928072ddbebce53dac2043ce3e7ca7b3c3fa05 Mon Sep 17 00:00:00 2001 From: Anton Kurako Date: Sun, 5 Dec 2021 02:50:55 +0300 Subject: [PATCH 06/15] [3.1.0-SNAPSHOT] Time patterns improved Time generators inner generators as static OffsetDateTimeGenerator and OffsetTimeGenerator added --- .../simple/time/DateSqlGenerator.java | 2 +- .../simple/time/LocalDateGenerator.java | 7 +- .../simple/time/LocalDateTimeGenerator.java | 7 +- .../simple/time/LocalTimeGenerator.java | 7 +- .../simple/time/OffsetDateTimeGenerator.java | 31 +++++ .../simple/time/OffsetTimeGenerator.java | 31 +++++ .../generator/simple/time/TimeGenerator.java | 2 +- .../simple/time/TimestampGenerator.java | 2 +- .../export/asfile/SqlExportAsFileTest.java | 2 +- .../export/validators/CsvValidator.java | 30 +++-- .../export/validators/JsonValidator.java | 8 ++ .../export/validators/SqlValidator.java | 116 +++++++++++------- .../export/validators/XmlValidator.java | 55 ++++++--- .../java/io/dummymaker/model/DummyTime.java | 18 ++- .../dummymaker/model/DummyTimeFormatter.java | 14 ++- .../io/dummymaker/model/DummyUnixTime.java | 14 ++- 16 files changed, 259 insertions(+), 87 deletions(-) create mode 100644 src/main/java/io/dummymaker/generator/simple/time/OffsetDateTimeGenerator.java create mode 100644 src/main/java/io/dummymaker/generator/simple/time/OffsetTimeGenerator.java diff --git a/src/main/java/io/dummymaker/generator/simple/time/DateSqlGenerator.java b/src/main/java/io/dummymaker/generator/simple/time/DateSqlGenerator.java index 409f61ee..2d7fd2fb 100644 --- a/src/main/java/io/dummymaker/generator/simple/time/DateSqlGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/time/DateSqlGenerator.java @@ -14,7 +14,7 @@ */ public class DateSqlGenerator implements ITimeGenerator { - private final LocalDateGenerator generator = new LocalDateGenerator(); + private static final LocalDateGenerator generator = new LocalDateGenerator(); @Override public @NotNull Date generate() { diff --git a/src/main/java/io/dummymaker/generator/simple/time/LocalDateGenerator.java b/src/main/java/io/dummymaker/generator/simple/time/LocalDateGenerator.java index de750fc0..5b729a45 100644 --- a/src/main/java/io/dummymaker/generator/simple/time/LocalDateGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/time/LocalDateGenerator.java @@ -19,7 +19,7 @@ public class LocalDateGenerator implements ITimeGenerator { private final Pattern pattern = Pattern.compile("birth(date)?|date", CASE_INSENSITIVE); - private final LocalDateTimeGenerator generator = new LocalDateTimeGenerator(); + private static final LocalDateTimeGenerator generator = new LocalDateTimeGenerator(); @Override public @NotNull LocalDate generate() { @@ -35,4 +35,9 @@ public class LocalDateGenerator implements ITimeGenerator { public @NotNull Pattern pattern() { return pattern; } + + @Override + public int order() { + return -60; + } } diff --git a/src/main/java/io/dummymaker/generator/simple/time/LocalDateTimeGenerator.java b/src/main/java/io/dummymaker/generator/simple/time/LocalDateTimeGenerator.java index a36d6e8e..1702ce0a 100644 --- a/src/main/java/io/dummymaker/generator/simple/time/LocalDateTimeGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/time/LocalDateTimeGenerator.java @@ -19,7 +19,7 @@ */ public class LocalDateTimeGenerator implements ITimeGenerator { - private final Pattern pattern = Pattern.compile("stamp|timestamp|expired?", CASE_INSENSITIVE); + private final Pattern pattern = Pattern.compile("datetime|stamp|timestamp|expired?", CASE_INSENSITIVE); @Override public @NotNull LocalDateTime generate() { @@ -49,4 +49,9 @@ public class LocalDateTimeGenerator implements ITimeGenerator { public @NotNull Pattern pattern() { return pattern; } + + @Override + public int order() { + return -60; + } } diff --git a/src/main/java/io/dummymaker/generator/simple/time/LocalTimeGenerator.java b/src/main/java/io/dummymaker/generator/simple/time/LocalTimeGenerator.java index 22865ebf..a30647b0 100644 --- a/src/main/java/io/dummymaker/generator/simple/time/LocalTimeGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/time/LocalTimeGenerator.java @@ -19,7 +19,7 @@ public class LocalTimeGenerator implements ITimeGenerator { private final Pattern pattern = Pattern.compile("time", CASE_INSENSITIVE); - private final LocalDateTimeGenerator generator = new LocalDateTimeGenerator(); + private static final LocalDateTimeGenerator generator = new LocalDateTimeGenerator(); @Override public @NotNull LocalTime generate() { @@ -35,4 +35,9 @@ public class LocalTimeGenerator implements ITimeGenerator { public @NotNull Pattern pattern() { return pattern; } + + @Override + public int order() { + return -60; + } } diff --git a/src/main/java/io/dummymaker/generator/simple/time/OffsetDateTimeGenerator.java b/src/main/java/io/dummymaker/generator/simple/time/OffsetDateTimeGenerator.java new file mode 100644 index 00000000..c769246b --- /dev/null +++ b/src/main/java/io/dummymaker/generator/simple/time/OffsetDateTimeGenerator.java @@ -0,0 +1,31 @@ +package io.dummymaker.generator.simple.time; + +import io.dummymaker.annotation.complex.GenTime; +import io.dummymaker.generator.ITimeGenerator; +import java.time.OffsetDateTime; +import java.time.ZoneOffset; +import java.util.concurrent.ThreadLocalRandom; +import org.jetbrains.annotations.NotNull; + +/** + * Generates LocalDateTime from 1970 to 3000 (exclusive) year with seconds precision + * + * @author GoodforGod + * @see OffsetDateTime + * @since 05.12.2021 + */ +public class OffsetDateTimeGenerator implements ITimeGenerator { + + private static final LocalDateTimeGenerator generator = new LocalDateTimeGenerator(); + + @Override + public @NotNull OffsetDateTime generate() { + return generate(0, GenTime.MAX_UNIX); + } + + @Override + public @NotNull OffsetDateTime generate(final long minUnix, final long maxUnix) { + final ZoneOffset zoneOffset = ZoneOffset.ofHours(ThreadLocalRandom.current().nextInt(-18, 18)); + return OffsetDateTime.of(generator.generate(), zoneOffset); + } +} diff --git a/src/main/java/io/dummymaker/generator/simple/time/OffsetTimeGenerator.java b/src/main/java/io/dummymaker/generator/simple/time/OffsetTimeGenerator.java new file mode 100644 index 00000000..da0cd147 --- /dev/null +++ b/src/main/java/io/dummymaker/generator/simple/time/OffsetTimeGenerator.java @@ -0,0 +1,31 @@ +package io.dummymaker.generator.simple.time; + +import io.dummymaker.annotation.complex.GenTime; +import io.dummymaker.generator.ITimeGenerator; +import java.time.OffsetTime; +import java.time.ZoneOffset; +import java.util.concurrent.ThreadLocalRandom; +import org.jetbrains.annotations.NotNull; + +/** + * Generates localTime object with range from 00:00:00 to 24:00:00 + * + * @author GoodforGod + * @see OffsetTime + * @since 05.12.2021 + */ +public class OffsetTimeGenerator implements ITimeGenerator { + + private static final LocalTimeGenerator generator = new LocalTimeGenerator(); + + @Override + public @NotNull OffsetTime generate() { + return generate(0, GenTime.MAX_UNIX); + } + + @Override + public @NotNull OffsetTime generate(final long minUnix, final long maxUnix) { + final ZoneOffset zoneOffset = ZoneOffset.ofHours(ThreadLocalRandom.current().nextInt(-18, 18)); + return OffsetTime.of(generator.generate(minUnix, maxUnix), zoneOffset); + } +} diff --git a/src/main/java/io/dummymaker/generator/simple/time/TimeGenerator.java b/src/main/java/io/dummymaker/generator/simple/time/TimeGenerator.java index d1c9d5b6..46fa3c17 100644 --- a/src/main/java/io/dummymaker/generator/simple/time/TimeGenerator.java +++ b/src/main/java/io/dummymaker/generator/simple/time/TimeGenerator.java @@ -14,7 +14,7 @@ */ public class TimeGenerator implements ITimeGenerator