diff --git a/generators/base-application/support/prepare-field.mjs b/generators/base-application/support/prepare-field.mjs index 30319f644c97..9caf68e64587 100644 --- a/generators/base-application/support/prepare-field.mjs +++ b/generators/base-application/support/prepare-field.mjs @@ -21,6 +21,7 @@ import { fieldTypes, validations } from '../../../jdl/jhipster/index.mjs'; import { getTypescriptType, prepareField as prepareClientFieldForTemplates } from '../../client/support/index.mjs'; import { prepareField as prepareServerFieldForTemplates } from '../../server/support/index.mjs'; import { fieldIsEnum } from './field-utils.mjs'; +import { mutateData } from '../../base/support/config.mjs'; const { BlobTypes, CommonDBTypes, RelationalOnlyDBTypes } = fieldTypes; const { @@ -266,14 +267,18 @@ export default function prepareField(entityWithConfig, field, generator) { } function prepareCommonFieldForTemplates(entityWithConfig, field, generator) { - _.defaults(field, { - propertyName: field.fieldName, + mutateData(field, { path: [field.fieldName], - fieldNameCapitalized: _.upperFirst(field.fieldName), - fieldNameUnderscored: _.snakeCase(field.fieldName), - fieldNameHumanized: _.startCase(field.fieldName), - fieldTranslationKey: `${entityWithConfig.i18nKeyPrefix}.${field.fieldName}`, - tsType: getTypescriptType(field.fieldType), + propertyName: field.fieldName, + propertyNameCapitalized: ({ propertyName }) => _.upperFirst(propertyName), + fieldNameCapitalized: ({ fieldName }) => _.upperFirst(fieldName), + fieldNameUnderscored: ({ fieldName }) => _.snakeCase(fieldName), + fieldNameHumanized: ({ fieldName }) => _.startCase(fieldName), + fieldTranslationKey: ({ fieldName }) => `${entityWithConfig.i18nKeyPrefix}.${fieldName}`, + tsType: ({ fieldType }) => getTypescriptType(fieldType), + }); + + _.defaults(field, { entity: entityWithConfig, }); const fieldType = field.fieldType; diff --git a/generators/base-application/support/prepare-relationship.mjs b/generators/base-application/support/prepare-relationship.mjs index 30f6862de900..4292087a80bc 100644 --- a/generators/base-application/support/prepare-relationship.mjs +++ b/generators/base-application/support/prepare-relationship.mjs @@ -29,6 +29,7 @@ import { import { upperFirstCamelCase } from '../../base/support/string.mjs'; import { getJoinTableName, hibernateSnakeCase } from '../../server/support/index.mjs'; import { stringifyApplicationData } from './debug.mjs'; +import { mutateData } from '../../base/support/config.mjs'; const { isReservedTableName } = reservedKeywords; const { NEO4J, NO: DATABASE_NO } = databaseTypes; @@ -160,8 +161,9 @@ export default function prepareRelationship(entityWithConfig, relationship, gene otherEntityNameCapitalizedPlural: pluralize(relationship.otherEntityNameCapitalized), }); - _.defaults(relationship, { + mutateData(relationship, { propertyName: relationship.collection ? relationship.relationshipFieldNamePlural : relationship.relationshipFieldName, + propertyNameCapitalized: ({ propertyName }) => _.upperFirst(propertyName), }); if (entityWithConfig.dto === MAPSTRUCT) { diff --git a/generators/bootstrap-application/generator.spec.mts b/generators/bootstrap-application/generator.spec.mts index 0e9db408337b..a1cdab77d07c 100644 --- a/generators/bootstrap-application/generator.spec.mts +++ b/generators/bootstrap-application/generator.spec.mts @@ -310,6 +310,9 @@ describe(`generator - ${generator}`, () => { "generateFakeData": Any, "id": true, "javaFieldType": "UUID", + "javaValueGenerator": "UUID.randomUUID()", + "javaValueSample1": "UUID.fromString("23d8dc04-a48b-45d9-a01d-4b728f0ad4aa")", + "javaValueSample2": "UUID.fromString("ad79f240-3727-46c3-b89f-2cf6ebd74367")", "jpaGeneratedValue": true, "jpaGeneratedValueIdentity": false, "jpaGeneratedValueSequence": false, @@ -387,6 +390,9 @@ describe(`generator - ${generator}`, () => { "filterableField": true, "generateFakeData": Any, "javaFieldType": "String", + "javaValueGenerator": "UUID.randomUUID().toString()", + "javaValueSample1": ""id1"", + "javaValueSample2": ""id2"", "loadColumnType": "string", "nullable": true, "path": [ @@ -459,6 +465,9 @@ describe(`generator - ${generator}`, () => { "filterableField": true, "generateFakeData": Any, "javaFieldType": "String", + "javaValueGenerator": "UUID.randomUUID().toString()", + "javaValueSample1": ""id1"", + "javaValueSample2": ""id2"", "loadColumnType": "string", "nullable": true, "path": [ @@ -531,6 +540,9 @@ describe(`generator - ${generator}`, () => { "filterableField": true, "generateFakeData": Any, "javaFieldType": "String", + "javaValueGenerator": "UUID.randomUUID().toString()", + "javaValueSample1": ""id1"", + "javaValueSample2": ""id2"", "loadColumnType": "string", "nullable": true, "path": [ @@ -793,6 +805,9 @@ describe(`generator - ${generator}`, () => { "generateFakeData": Any, "id": true, "javaFieldType": "UUID", + "javaValueGenerator": "UUID.randomUUID()", + "javaValueSample1": "UUID.fromString("23d8dc04-a48b-45d9-a01d-4b728f0ad4aa")", + "javaValueSample2": "UUID.fromString("ad79f240-3727-46c3-b89f-2cf6ebd74367")", "jpaGeneratedValue": true, "jpaGeneratedValueIdentity": false, "jpaGeneratedValueSequence": false, @@ -1112,6 +1127,9 @@ describe(`generator - ${generator}`, () => { "generateFakeData": Any, "id": true, "javaFieldType": "UUID", + "javaValueGenerator": "UUID.randomUUID()", + "javaValueSample1": "UUID.fromString("23d8dc04-a48b-45d9-a01d-4b728f0ad4aa")", + "javaValueSample2": "UUID.fromString("ad79f240-3727-46c3-b89f-2cf6ebd74367")", "jpaGeneratedValue": true, "jpaGeneratedValueIdentity": false, "jpaGeneratedValueSequence": false, diff --git a/generators/entities/__snapshots__/generator.spec.mts.snap b/generators/entities/__snapshots__/generator.spec.mts.snap index 0ac42a745958..39a557dcee49 100644 --- a/generators/entities/__snapshots__/generator.spec.mts.snap +++ b/generators/entities/__snapshots__/generator.spec.mts.snap @@ -278,12 +278,21 @@ exports[`generator - entities regenerating all entities should match snapshot 1` "src/test/java/com/mycompany/myapp/domain/BarTest.java": { "stateCleared": "modified", }, + "src/test/java/com/mycompany/myapp/domain/BarTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/mycompany/myapp/domain/FooTest.java": { "stateCleared": "modified", }, + "src/test/java/com/mycompany/myapp/domain/FooTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/mycompany/myapp/domain/SkipTest.java": { "stateCleared": "modified", }, + "src/test/java/com/mycompany/myapp/domain/SkipTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/mycompany/myapp/web/rest/BarResourceIT.java": { "stateCleared": "modified", }, @@ -565,9 +574,15 @@ exports[`generator - entities regenerating some entities should match snapshot 1 "src/test/java/com/mycompany/myapp/domain/BarTest.java": { "stateCleared": "modified", }, + "src/test/java/com/mycompany/myapp/domain/BarTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/mycompany/myapp/domain/FooTest.java": { "stateCleared": "modified", }, + "src/test/java/com/mycompany/myapp/domain/FooTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/mycompany/myapp/web/rest/BarResourceIT.java": { "stateCleared": "modified", }, diff --git a/generators/java/__snapshots__/generator.spec.mts.snap b/generators/java/__snapshots__/generator.spec.mts.snap index fc5219c05efa..49f389117b89 100644 --- a/generators/java/__snapshots__/generator.spec.mts.snap +++ b/generators/java/__snapshots__/generator.spec.mts.snap @@ -35,8 +35,14 @@ exports[`generator - java with default config should match files snapshot 1`] = "src/test/java/com/mycompany/myapp/domain/BarTest.java": { "stateCleared": "modified", }, + "src/test/java/com/mycompany/myapp/domain/BarTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/mycompany/myapp/domain/FooTest.java": { "stateCleared": "modified", }, + "src/test/java/com/mycompany/myapp/domain/FooTestSamples.java": { + "stateCleared": "modified", + }, } `; diff --git a/generators/java/entity-files.mts b/generators/java/entity-files.mts index 81ba42e610a3..6857e635e70b 100644 --- a/generators/java/entity-files.mts +++ b/generators/java/entity-files.mts @@ -27,7 +27,7 @@ export const entityServerFiles: WriteFileSection = { ], modelTestFiles: [ javaTestPackageTemplatesBlock({ - templates: ['_entityPackage_/domain/_persistClass_Test.java'], + templates: ['_entityPackage_/domain/_persistClass_Test.java', '_entityPackage_/domain/_persistClass_TestSamples.java'], }), ], server: [ diff --git a/generators/java/templates/src/test/java/_package_/_entityPackage_/domain/_persistClass_Test.java.ejs b/generators/java/templates/src/test/java/_package_/_entityPackage_/domain/_persistClass_Test.java.ejs index 89b4fe2a1289..c1bafe097b50 100644 --- a/generators/java/templates/src/test/java/_package_/_entityPackage_/domain/_persistClass_Test.java.ejs +++ b/generators/java/templates/src/test/java/_package_/_entityPackage_/domain/_persistClass_Test.java.ejs @@ -18,6 +18,13 @@ -%> package <%= entityAbsolutePackage %>.domain; +import static <%= entityAbsolutePackage %>.domain.<%= persistClass %>TestSamples.*; +<%_ for (const otherEntity of otherEntities.filter(otherEntity => !otherEntity.builtIn)) { _%> +import static <%= otherEntity.entityAbsolutePackage %>.domain.<%= otherEntity.persistClass %>TestSamples.*; +<%_ } _%> +<%_ for (const otherEntity of otherEntities.filter(otherEntity => entityPackage !== otherEntity.entityPackage)) { _%> +import <%= otherEntity.entityAbsolutePackage %>.domain.<%= otherEntity.persistClass %>; +<%_ } _%> import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; import <%= packageName %>.web.rest.TestUtil; @@ -31,15 +38,55 @@ class <%= persistClass %>Test { void equalsVerifier() throws Exception { TestUtil.equalsVerifier(<%= persistClass %>.class); <%_if (!embedded) { _%> - <%= persistClass %> <%= persistInstance %>1 = new <%= persistClass %>(); - <%= persistInstance %>1.set<%= primaryKey.nameCapitalized %>(<% if (primaryKey.typeInteger) { %>1<% } else if (primaryKey.typeLong) { %>1L<% } else if (primaryKey.typeString) { %>"id1"<% } else if (primaryKey.typeUUID) { %>UUID.randomUUID()<% } %>); + <%= persistClass %> <%= persistInstance %>1 = get<%= persistClass %>Sample1(); <%= persistClass %> <%= persistInstance %>2 = new <%= persistClass %>(); + assertThat(<%= persistInstance %>1).isNotEqualTo(<%= persistInstance %>2); + <%= persistInstance %>2.set<%= primaryKey.nameCapitalized %>(<%= persistInstance %>1.get<%= primaryKey.nameCapitalized %>()); assertThat(<%= persistInstance %>1).isEqualTo(<%= persistInstance %>2); - <%= persistInstance %>2.set<%= primaryKey.nameCapitalized %>(<% if (primaryKey.typeInteger) { %>2<% } else if (primaryKey.typeLong) { %>2L<% } else if (primaryKey.typeString) { %>"id2"<% } else if (primaryKey.typeUUID) { %>UUID.randomUUID()<% } %>); - assertThat(<%= persistInstance %>1).isNotEqualTo(<%= persistInstance %>2); - <%= persistInstance %>1.set<%= primaryKey.nameCapitalized %>(null); + + <%= persistInstance %>2 = get<%= persistClass %>Sample2(); assertThat(<%= persistInstance %>1).isNotEqualTo(<%= persistInstance %>2); <%_} _%> } +<%_ for (const relationship of relationships.filter(relationship => !relationship.otherEntity.builtIn)) { _%> + + @Test + void <%- relationship.relationshipName %>Test() throws Exception { + <%= persistClass %> <%= persistInstance %> = get<%= persistClass %>RandomSampleGenerator(); + <%= relationship.otherEntity.persistClass %> <%= relationship.otherEntity.persistInstance %>Back = get<%= relationship.otherEntity.persistClass %>RandomSampleGenerator(); + <%_ if (relationship.collection) { _%> + + <%= persistInstance %>.add<%- relationship.relationshipNameCapitalized %>(<%= relationship.otherEntity.persistInstance %>Back); + assertThat(<%= persistInstance %>.get<%- relationship.propertyNameCapitalized %>()).containsOnly(<%= relationship.otherEntity.persistInstance %>Back); + <%_ } else { _%> + + <%= persistInstance %>.set<%- relationship.relationshipNameCapitalized %>(<%= relationship.otherEntity.persistInstance %>Back); + assertThat(<%= persistInstance %>.get<%- relationship.propertyNameCapitalized %>()).isEqualTo(<%= relationship.otherEntity.persistInstance %>Back); + <%_ } _%> + <%_ if (relationship.otherRelationship && !relationship.ownerSide && !relationship.otherEntity.embedded) { _%> + <%_ if (relationship.otherRelationship.collection) { _%> + assertThat(<%= relationship.otherEntity.persistInstance %>Back.get<%- relationship.otherRelationship.propertyNameCapitalized %>()).containsOnly(<%= persistInstance %>); + <%_ } else { _%> + assertThat(<%= relationship.otherEntity.persistInstance %>Back.get<%- relationship.otherRelationship.propertyNameCapitalized %>()).isEqualTo(<%= persistInstance %>); + <%_ } _%> + <%_ } _%> + <%_ if (relationship.collection) { _%> + + <%= persistInstance %>.remove<%- relationship.relationshipNameCapitalized %>(<%= relationship.otherEntity.persistInstance %>Back); + assertThat(<%= persistInstance %>.get<%- relationship.propertyNameCapitalized %>()).doesNotContain(<%= relationship.otherEntity.persistInstance %>Back); + <%_ } else { _%> + + <%= persistInstance %>.set<%- relationship.relationshipNameCapitalized %>(null); + assertThat(<%= persistInstance %>.get<%- relationship.propertyNameCapitalized %>()).isNull(); + <%_ } _%> + <%_ if (relationship.otherRelationship && !relationship.ownerSide && !relationship.otherEntity.embedded) { _%> + <%_ if (relationship.otherRelationship.collection) { _%> + assertThat(<%= relationship.otherEntity.persistInstance %>Back.get<%- relationship.propertyNameCapitalized %>()).doesNotContain(<%= relationship.otherEntity.persistInstance %>); + <%_ } else { _%> + assertThat(<%= relationship.otherEntity.persistInstance %>Back.get<%- relationship.otherRelationship.propertyNameCapitalized %>()).isNull(); + <%_ } _%> + <%_ } _%> + } +<%_ } _%> } diff --git a/generators/java/templates/src/test/java/_package_/_entityPackage_/domain/_persistClass_TestSamples.java.ejs b/generators/java/templates/src/test/java/_package_/_entityPackage_/domain/_persistClass_TestSamples.java.ejs new file mode 100644 index 000000000000..bb0d4d9b4237 --- /dev/null +++ b/generators/java/templates/src/test/java/_package_/_entityPackage_/domain/_persistClass_TestSamples.java.ejs @@ -0,0 +1,85 @@ +<%# + Copyright 2013-2023 the original author or authors from the JHipster project. + + This file is part of the JHipster project, see https://www.jhipster.tech/ + for more information. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +-%> +package <%= entityAbsolutePackage %>.domain; + +import org.junit.jupiter.api.Test; +import static org.assertj.core.api.Assertions.assertThat; +import <%= packageName %>.web.rest.TestUtil; +<%_ if (fields.some(field => field.fieldTypeString) || fields.some(field => field.fieldTypeUUID)) { _%> +import java.util.UUID; +<%_ } _%> +<%_ if (fields.some(field => field.fieldTypeLong || field.fieldTypeInteger)) { _%> +import java.util.Random; +<%_ } _%> +<%_ if (fields.some(field => field.fieldTypeLong)) { _%> +import java.util.concurrent.atomic.AtomicLong; +<%_ } _%> +<%_ if (fields.some(field => field.fieldTypeInteger)) { _%> +import java.util.concurrent.atomic.AtomicInteger; +<%_ } _%> + +<%_ const sampleFields = fields.filter(field => !field.mapstructExpression && (field.fieldTypeInteger || field.fieldTypeLong || field.fieldTypeString || field.fieldTypeUUID)); _%> +public class <%= persistClass %>TestSamples { + +<%_ if (fields.some(field => field.fieldTypeLong || field.fieldTypeInteger)) { _%> + private static final Random random = new Random(); +<%_ } _%> +<%_ if (fields.some(field => field.fieldTypeLong)) { _%> + private static final AtomicLong longCount = new AtomicLong(random.nextInt() + ( 2 * Integer.MAX_VALUE )); +<%_ } _%> +<%_ if (fields.some(field => field.fieldTypeInteger)) { _%> + private static final AtomicInteger intCount = new AtomicInteger(random.nextInt() + ( 2 * Short.MAX_VALUE )); +<%_ } _%> + + public static <%= persistClass %> get<%= persistClass %>Sample1() { +<%_ if (fluentMethods) { _%> + return new <%= persistClass %>()<% sampleFields.forEach(field => { %>.<%- field.fieldName %>(<%- field.javaValueSample1 %>)<% }) %>; +<%_ } else { _%> + <%= persistClass %> <%= persistInstance %> = new <%= persistClass %>(); + <%_ for (const field of sampleFields) { _%> + <%= persistInstance %>.set<%= field.fieldNameCapitalized %>(<%- field.javaValueSample1 %>); + <%_ } _%> + return <%= persistInstance %>; +<%_ } _%> + } + + public static <%= persistClass %> get<%= persistClass %>Sample2() { +<%_ if (fluentMethods) { _%> + return new <%= persistClass %>()<% sampleFields.forEach(field => { %>.<%- field.fieldName %>(<%- field.javaValueSample2 %>)<% }) %>; +<%_ } else { _%> + <%= persistClass %> <%= persistInstance %> = new <%= persistClass %>(); + <%_ for (const field of sampleFields) { _%> + <%= persistInstance %>.set<%= field.fieldNameCapitalized %>(<%- field.javaValueSample2 %>); + <%_ } _%> + return <%= persistInstance %>; +<%_ } _%> + } + + public static <%= persistClass %> get<%= persistClass %>RandomSampleGenerator() { +<%_ if (fluentMethods) { _%> + return new <%= persistClass %>()<% sampleFields.forEach(field => { %>.<%- field.fieldName %>(<%- field.javaValueGenerator %>)<% }) %>; +<%_ } else { _%> + <%= persistClass %> <%= persistInstance %> = new <%= persistClass %>(); + <%_ for (const field of sampleFields) { _%> + <%= persistInstance %>.set<%= field.fieldNameCapitalized %>(<%- field.javaValueGenerator %>); + <%_ } _%> + return <%= persistInstance %>; +<%_ } _%> + } +} diff --git a/generators/server/__snapshots__/generator.spec.mjs.snap b/generators/server/__snapshots__/generator.spec.mjs.snap index af4ccadc7dff..80276344abe1 100644 --- a/generators/server/__snapshots__/generator.spec.mjs.snap +++ b/generators/server/__snapshots__/generator.spec.mjs.snap @@ -1121,9 +1121,15 @@ exports[`generator - server with entities should match files snapshot 1`] = ` "src/test/java/com/mycompany/myapp/domain/BarTest.java": { "stateCleared": "modified", }, + "src/test/java/com/mycompany/myapp/domain/BarTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/mycompany/myapp/domain/FooTest.java": { "stateCleared": "modified", }, + "src/test/java/com/mycompany/myapp/domain/FooTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/mycompany/myapp/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, diff --git a/generators/server/support/prepare-field.mjs b/generators/server/support/prepare-field.mjs index 2ddc4988da48..66322d66d7e9 100644 --- a/generators/server/support/prepare-field.mjs +++ b/generators/server/support/prepare-field.mjs @@ -22,6 +22,7 @@ import * as _ from 'lodash-es'; import { databaseTypes, entityOptions, fieldTypes, reservedKeywords } from '../../../jdl/jhipster/index.mjs'; import { getUXConstraintName } from './database.mjs'; import { hibernateSnakeCase } from './string.mjs'; +import { getJavaValueGeneratorForType } from './templates/field-values.mjs'; import { formatDocAsApiDescription, formatDocAsJavaDoc } from './doc.mjs'; const TYPE_BYTES = fieldTypes.RelationalOnlyDBTypes.BYTES; @@ -152,5 +153,21 @@ export default function prepareField(entityWithConfig, field, generator) { field.javaFieldType = field.fieldType; } + if (field.fieldTypeInteger || field.fieldTypeLong || field.fieldTypeString || field.fieldTypeUUID) { + if (field.fieldTypeInteger) { + field.javaValueSample1 = '1'; + field.javaValueSample2 = '2'; + } else if (field.fieldTypeLong) { + field.javaValueSample1 = '1L'; + field.javaValueSample2 = '2L'; + } else if (field.fieldTypeString) { + field.javaValueSample1 = `"${field.fieldName}1"`; + field.javaValueSample2 = `"${field.fieldName}2"`; + } else if (field.fieldTypeUUID) { + field.javaValueSample1 = 'UUID.fromString("23d8dc04-a48b-45d9-a01d-4b728f0ad4aa")'; + field.javaValueSample2 = 'UUID.fromString("ad79f240-3727-46c3-b89f-2cf6ebd74367")'; + } + field.javaValueGenerator = getJavaValueGeneratorForType(field.javaFieldType); + } field.filterableField = ![TYPE_BYTES, TYPE_BYTE_BUFFER].includes(field.fieldType); } diff --git a/generators/server/support/templates/field-values.mjs b/generators/server/support/templates/field-values.mjs index 7269b14caf02..70d0366d09d2 100644 --- a/generators/server/support/templates/field-values.mjs +++ b/generators/server/support/templates/field-values.mjs @@ -33,8 +33,11 @@ export const getJavaValueGeneratorForType = (type) => { if (type === UUID) { return 'UUID.randomUUID()'; } - if (type === LONG || type === INTEGER) { - return 'count.incrementAndGet()'; + if (type === INTEGER) { + return 'intCount.incrementAndGet()'; + } + if (type === LONG) { + return 'longCount.incrementAndGet()'; } throw new Error(`Java type ${type} does not have a random generator implemented`); } diff --git a/generators/server/templates/src/test/java/_package_/_entityPackage_/web/rest/_entityClass_ResourceIT.java.ejs b/generators/server/templates/src/test/java/_package_/_entityPackage_/web/rest/_entityClass_ResourceIT.java.ejs index 3a0fef700030..a82ae9b2d90e 100644 --- a/generators/server/templates/src/test/java/_package_/_entityPackage_/web/rest/_entityClass_ResourceIT.java.ejs +++ b/generators/server/templates/src/test/java/_package_/_entityPackage_/web/rest/_entityClass_ResourceIT.java.ejs @@ -439,9 +439,9 @@ if (field.fieldTypeString || field.blobContentTypeText) { private static Random random = new Random(); <%_ if (primaryKey.hasLong) { _%> - private static AtomicLong count = new AtomicLong(random.nextInt() + ( 2 * Integer.MAX_VALUE )); + private static AtomicLong longCount = new AtomicLong(random.nextInt() + ( 2 * Integer.MAX_VALUE )); <%_ } else if (primaryKey.hasInteger) { _%> - private static AtomicInteger count = new AtomicInteger(random.nextInt() + ( 2 * Short.MAX_VALUE )); + private static AtomicInteger intCount = new AtomicInteger(random.nextInt() + ( 2 * Short.MAX_VALUE )); <%_ } _%> <%_ } _%> diff --git a/generators/spring-data-cassandra/__snapshots__/generator.spec.mts.snap b/generators/spring-data-cassandra/__snapshots__/generator.spec.mts.snap index 13eb9874f17f..3bd9a0437e69 100644 --- a/generators/spring-data-cassandra/__snapshots__/generator.spec.mts.snap +++ b/generators/spring-data-cassandra/__snapshots__/generator.spec.mts.snap @@ -377,9 +377,15 @@ exports[`generator - cassandra gateway-jwt-gradle-enableTranslation(true)-com.pa "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -802,9 +808,15 @@ exports[`generator - cassandra gateway-oauth2-maven-enableTranslation(false)-tec "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -1143,9 +1155,15 @@ exports[`generator - cassandra microservice-jwt-reactive(false)-maven-enableTran "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -1484,9 +1502,15 @@ exports[`generator - cassandra microservice-jwt-reactive(true)-gradle-enableTran "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -1858,9 +1882,15 @@ exports[`generator - cassandra microservice-oauth2-reactive(false)-maven-enableT "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -2229,9 +2259,15 @@ exports[`generator - cassandra microservice-oauth2-reactive(true)-gradle-enableT "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -2654,9 +2690,15 @@ exports[`generator - cassandra monolith-jwt-reactive(false)-maven-enableTranslat "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -3049,9 +3091,15 @@ exports[`generator - cassandra monolith-jwt-reactive(true)-gradle-enableTranslat "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -3441,9 +3489,15 @@ exports[`generator - cassandra monolith-oauth2-reactive(false)-maven-enableTrans "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -3854,9 +3908,15 @@ exports[`generator - cassandra monolith-oauth2-reactive(true)-gradle-enableTrans "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -4282,9 +4342,15 @@ exports[`generator - cassandra monolith-session-reactive(false)-maven-enableTran "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/DomainUserDetailsServiceIT.java": { "stateCleared": "modified", }, @@ -4644,9 +4710,15 @@ exports[`generator - cassandra monolith-session-reactive(true)-gradle-enableTran "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, diff --git a/generators/spring-data-couchbase/__snapshots__/generator.spec.mts.snap b/generators/spring-data-couchbase/__snapshots__/generator.spec.mts.snap index fef4aaa118ef..18ab22e4646b 100644 --- a/generators/spring-data-couchbase/__snapshots__/generator.spec.mts.snap +++ b/generators/spring-data-couchbase/__snapshots__/generator.spec.mts.snap @@ -395,9 +395,15 @@ exports[`generator - couchbase gateway-jwt-gradle-enableTranslation(true)-com.pa "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -835,9 +841,15 @@ exports[`generator - couchbase gateway-oauth2-maven-enableTranslation(false)-tec "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -1176,9 +1188,15 @@ exports[`generator - couchbase microservice-jwt-reactive(false)-maven-enableTran "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -1517,9 +1535,15 @@ exports[`generator - couchbase microservice-jwt-reactive(true)-gradle-enableTran "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -1915,9 +1939,15 @@ exports[`generator - couchbase microservice-oauth2-reactive(false)-maven-enableT "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -2307,9 +2337,15 @@ exports[`generator - couchbase microservice-oauth2-reactive(true)-gradle-enableT "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/repository/CouchbaseSearchRepositoryTest.java": { "stateCleared": "modified", }, @@ -2750,9 +2786,15 @@ exports[`generator - couchbase monolith-jwt-reactive(false)-maven-enableTranslat "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -3151,9 +3193,15 @@ exports[`generator - couchbase monolith-jwt-reactive(true)-gradle-enableTranslat "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -3561,9 +3609,15 @@ exports[`generator - couchbase monolith-oauth2-reactive(false)-maven-enableTrans "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -3995,9 +4049,15 @@ exports[`generator - couchbase monolith-oauth2-reactive(true)-gradle-enableTrans "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/repository/CouchbaseSearchRepositoryTest.java": { "stateCleared": "modified", }, @@ -4441,9 +4501,15 @@ exports[`generator - couchbase monolith-session-reactive(false)-maven-enableTran "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/DomainUserDetailsServiceIT.java": { "stateCleared": "modified", }, @@ -4809,9 +4875,15 @@ exports[`generator - couchbase monolith-session-reactive(true)-gradle-enableTran "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/repository/CouchbaseSearchRepositoryTest.java": { "stateCleared": "modified", }, diff --git a/generators/spring-data-elasticsearch/__snapshots__/generator.spec.mts.snap b/generators/spring-data-elasticsearch/__snapshots__/generator.spec.mts.snap index 95e145acb806..6647356746e4 100644 --- a/generators/spring-data-elasticsearch/__snapshots__/generator.spec.mts.snap +++ b/generators/spring-data-elasticsearch/__snapshots__/generator.spec.mts.snap @@ -410,15 +410,24 @@ exports[`generator - elasticsearch gateway-jwt-gradle-enableTranslation(true)-co "src/test/java/com/package/custom/domain/EntityWithCustomIdTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/custom/domain/EntityWithCustomIdTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -871,15 +880,24 @@ exports[`generator - elasticsearch gateway-oauth2-maven-enableTranslation(false) "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -1260,18 +1278,30 @@ exports[`generator - elasticsearch microservice-jwt-reactive(false)-maven-enable "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/MicroserviceEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/MicroserviceEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -1655,18 +1685,30 @@ exports[`generator - elasticsearch microservice-jwt-reactive(true)-gradle-enable "src/test/java/com/package/custom/domain/EntityWithCustomIdTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/custom/domain/EntityWithCustomIdTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/MicroserviceTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/MicroserviceTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -2074,18 +2116,30 @@ exports[`generator - elasticsearch microservice-oauth2-reactive(false)-maven-ena "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/MicroserviceEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/MicroserviceEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -2496,18 +2550,30 @@ exports[`generator - elasticsearch microservice-oauth2-reactive(true)-gradle-ena "src/test/java/com/package/custom/domain/EntityWithCustomIdTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/custom/domain/EntityWithCustomIdTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/MicroserviceTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/MicroserviceTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -2972,18 +3038,30 @@ exports[`generator - elasticsearch monolith-jwt-reactive(false)-maven-enableTran "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/MicroserviceEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/MicroserviceEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -3424,18 +3502,30 @@ exports[`generator - elasticsearch monolith-jwt-reactive(true)-gradle-enableTran "src/test/java/com/package/custom/domain/EntityWithCustomIdTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/custom/domain/EntityWithCustomIdTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/MicroserviceTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/MicroserviceTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -3888,18 +3978,30 @@ exports[`generator - elasticsearch monolith-oauth2-reactive(false)-maven-enableT "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/MicroserviceEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/MicroserviceEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -4385,18 +4487,30 @@ exports[`generator - elasticsearch monolith-oauth2-reactive(true)-gradle-enableT "src/test/java/com/package/custom/domain/EntityWithCustomIdTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/custom/domain/EntityWithCustomIdTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/MicroserviceTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/MicroserviceTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -4885,18 +4999,30 @@ exports[`generator - elasticsearch monolith-session-reactive(false)-maven-enable "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/MicroserviceEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/MicroserviceEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/DomainUserDetailsServiceIT.java": { "stateCleared": "modified", }, @@ -5316,18 +5442,30 @@ exports[`generator - elasticsearch monolith-session-reactive(true)-gradle-enable "src/test/java/com/package/custom/domain/EntityWithCustomIdTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/custom/domain/EntityWithCustomIdTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/MicroserviceTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/MicroserviceTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, diff --git a/generators/spring-data-mongodb/__snapshots__/generator.spec.mts.snap b/generators/spring-data-mongodb/__snapshots__/generator.spec.mts.snap index 29b5daba20cb..625b0cad7ad5 100644 --- a/generators/spring-data-mongodb/__snapshots__/generator.spec.mts.snap +++ b/generators/spring-data-mongodb/__snapshots__/generator.spec.mts.snap @@ -365,9 +365,15 @@ exports[`generator - mongodb gateway-jwt-gradle-enableTranslation(true)-com.pack "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -781,9 +787,15 @@ exports[`generator - mongodb gateway-oauth2-maven-enableTranslation(false)-tech. "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -1113,9 +1125,15 @@ exports[`generator - mongodb microservice-jwt-reactive(false)-maven-enableTransl "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -1442,9 +1460,15 @@ exports[`generator - mongodb microservice-jwt-reactive(true)-gradle-enableTransl "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -1816,9 +1840,15 @@ exports[`generator - mongodb microservice-oauth2-reactive(false)-maven-enableTra "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -2184,9 +2214,15 @@ exports[`generator - mongodb microservice-oauth2-reactive(true)-gradle-enableTra "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -2603,9 +2639,15 @@ exports[`generator - mongodb monolith-jwt-reactive(false)-maven-enableTranslatio "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -2986,9 +3028,15 @@ exports[`generator - mongodb monolith-jwt-reactive(true)-gradle-enableTranslatio "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -3372,9 +3420,15 @@ exports[`generator - mongodb monolith-oauth2-reactive(false)-maven-enableTransla "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -3776,9 +3830,15 @@ exports[`generator - mongodb monolith-oauth2-reactive(true)-gradle-enableTransla "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -4198,9 +4258,15 @@ exports[`generator - mongodb monolith-session-reactive(false)-maven-enableTransl "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/DomainUserDetailsServiceIT.java": { "stateCleared": "modified", }, @@ -4548,9 +4614,15 @@ exports[`generator - mongodb monolith-session-reactive(true)-gradle-enableTransl "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, diff --git a/generators/spring-data-neo4j/__snapshots__/generator.spec.mts.snap b/generators/spring-data-neo4j/__snapshots__/generator.spec.mts.snap index 5d752534e034..3525b8b9517d 100644 --- a/generators/spring-data-neo4j/__snapshots__/generator.spec.mts.snap +++ b/generators/spring-data-neo4j/__snapshots__/generator.spec.mts.snap @@ -371,9 +371,15 @@ exports[`generator - neo4j gateway-jwt-gradle-enableTranslation(true)-com.packag "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -793,9 +799,15 @@ exports[`generator - neo4j gateway-oauth2-maven-enableTranslation(false)-tech.jh "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -1119,9 +1131,15 @@ exports[`generator - neo4j microservice-jwt-reactive(false)-maven-enableTranslat "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -1445,9 +1463,15 @@ exports[`generator - neo4j microservice-jwt-reactive(true)-gradle-enableTranslat "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -1822,9 +1846,15 @@ exports[`generator - neo4j microservice-oauth2-reactive(false)-maven-enableTrans "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -2196,9 +2226,15 @@ exports[`generator - neo4j microservice-oauth2-reactive(true)-gradle-enableTrans "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -2618,9 +2654,15 @@ exports[`generator - neo4j monolith-jwt-reactive(false)-maven-enableTranslation( "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -2998,9 +3040,15 @@ exports[`generator - neo4j monolith-jwt-reactive(true)-gradle-enableTranslation( "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/management/SecurityMetersServiceTests.java": { "stateCleared": "modified", }, @@ -3387,9 +3435,15 @@ exports[`generator - neo4j monolith-oauth2-reactive(false)-maven-enableTranslati "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -3797,9 +3851,15 @@ exports[`generator - neo4j monolith-oauth2-reactive(true)-gradle-enableTranslati "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, @@ -4222,9 +4282,15 @@ exports[`generator - neo4j monolith-session-reactive(false)-maven-enableTranslat "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/security/DomainUserDetailsServiceIT.java": { "stateCleared": "modified", }, @@ -4569,9 +4635,15 @@ exports[`generator - neo4j monolith-session-reactive(true)-gradle-enableTranslat "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/security/SecurityUtilsUnitTest.java": { "stateCleared": "modified", }, diff --git a/generators/spring-data-relational/__snapshots__/sql-entities.spec.mts.snap b/generators/spring-data-relational/__snapshots__/sql-entities.spec.mts.snap index 72235f77e139..207236f23f19 100644 --- a/generators/spring-data-relational/__snapshots__/sql-entities.spec.mts.snap +++ b/generators/spring-data-relational/__snapshots__/sql-entities.spec.mts.snap @@ -158,15 +158,24 @@ exports[`generator - sql - entities gateway-jwt-gradle-enableTranslation(true)-c "src/test/java/com/package/custom/domain/EntityWithCustomIdTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/custom/domain/EntityWithCustomIdTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/service/UserServiceIT.java": { "stateCleared": "modified", }, @@ -355,15 +364,24 @@ exports[`generator - sql - entities gateway-oauth2-maven-enableTranslation(false "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/service/UserServiceIT.java": { "stateCleared": "modified", }, @@ -501,18 +519,30 @@ exports[`generator - sql - entities microservice-jwt-reactive(false)-maven-enabl "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/MicroserviceEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/MicroserviceEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/service/dto/AnotherSimpleDTOTest.java": { "stateCleared": "modified", }, @@ -683,18 +713,30 @@ exports[`generator - sql - entities microservice-jwt-reactive(true)-gradle-enabl "src/test/java/com/package/custom/domain/EntityWithCustomIdTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/custom/domain/EntityWithCustomIdTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/MicroserviceTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/MicroserviceTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/service/dto/AnotherSimpleRestTest.java": { "stateCleared": "modified", }, @@ -844,18 +886,30 @@ exports[`generator - sql - entities microservice-oauth2-reactive(false)-maven-en "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/MicroserviceEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/MicroserviceEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/service/UserServiceIT.java": { "stateCleared": "modified", }, @@ -1062,18 +1116,30 @@ exports[`generator - sql - entities microservice-oauth2-reactive(true)-gradle-en "src/test/java/com/package/custom/domain/EntityWithCustomIdTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/custom/domain/EntityWithCustomIdTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/MicroserviceTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/MicroserviceTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/service/UserServiceIT.java": { "stateCleared": "modified", }, @@ -1235,18 +1301,30 @@ exports[`generator - sql - entities monolith-jwt-reactive(false)-maven-enableTra "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/MicroserviceEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/MicroserviceEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/service/UserServiceIT.java": { "stateCleared": "modified", }, @@ -1429,18 +1507,30 @@ exports[`generator - sql - entities monolith-jwt-reactive(true)-gradle-enableTra "src/test/java/com/package/custom/domain/EntityWithCustomIdTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/custom/domain/EntityWithCustomIdTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/MicroserviceTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/MicroserviceTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/service/dto/AnotherSimpleRestTest.java": { "stateCleared": "modified", }, @@ -1590,18 +1680,30 @@ exports[`generator - sql - entities monolith-oauth2-reactive(false)-maven-enable "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/MicroserviceEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/MicroserviceEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/service/UserServiceIT.java": { "stateCleared": "modified", }, @@ -1808,18 +1910,30 @@ exports[`generator - sql - entities monolith-oauth2-reactive(true)-gradle-enable "src/test/java/com/package/custom/domain/EntityWithCustomIdTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/custom/domain/EntityWithCustomIdTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/MicroserviceTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/MicroserviceTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/service/UserServiceIT.java": { "stateCleared": "modified", }, @@ -1981,18 +2095,30 @@ exports[`generator - sql - entities monolith-session-reactive(false)-maven-enabl "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/custom/domain/EntityWithCustomIdEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/AnotherSimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/MicroserviceEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/MicroserviceEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/domain/SimpleEntityTest.java": { "stateCleared": "modified", }, + "src/test/java/tech/jhipster/domain/SimpleEntityTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/tech/jhipster/service/UserServiceIT.java": { "stateCleared": "modified", }, @@ -2175,18 +2301,30 @@ exports[`generator - sql - entities monolith-session-reactive(true)-gradle-enabl "src/test/java/com/package/custom/domain/EntityWithCustomIdTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/custom/domain/EntityWithCustomIdTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/custom/web/rest/EntityWithCustomIdResourceIT.java": { "stateCleared": "modified", }, "src/test/java/com/package/domain/AnotherSimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/AnotherSimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/MicroserviceTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/MicroserviceTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/domain/SimpleTest.java": { "stateCleared": "modified", }, + "src/test/java/com/package/domain/SimpleTestSamples.java": { + "stateCleared": "modified", + }, "src/test/java/com/package/service/dto/AnotherSimpleRestTest.java": { "stateCleared": "modified", },