Skip to content

Commit

Permalink
Updated field initialization in test (#1463)
Browse files Browse the repository at this point in the history
* Updated field initialization in test

- Changed the initialization of a field in a test from null to default

* Updated blueprint version in generator spec

- The blueprint version for 'generator-jhipster-dotnetcore' has been updated
- Previous version was 4.0.0
- New version is 4.1.0
  • Loading branch information
flyingbag authored Apr 3, 2024
1 parent 8c0486a commit f0f5d2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ exports[`SubGenerator bootstrap-application of dotnetcore JHipster blueprint > r
"blueprints": [
{
"name": "generator-jhipster-dotnetcore",
"version": "4.0.0",
"version": "4.1.0",
},
],
"buildTool": "maven",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ namespace <%= namespace %>.Test.Controllers
{
var databaseSizeBeforeTest = await _<%= camelCasedEntityClass %>Repository.CountAsync();
// Set the field to null
_<%= camelCasedEntityClass %>.<%= field.fieldNamePascalized %> = null;
// Set the field to default
_<%= camelCasedEntityClass %>.<%= field.fieldNamePascalized %> = default;
// Create the <%= pascalizedEntityClass %>, which fails.
<%_ if (hasDto) { _%>
Expand Down

0 comments on commit f0f5d2c

Please sign in to comment.