Skip to content

Commit

Permalink
test: fix regression tests that did not predict the rank value
Browse files Browse the repository at this point in the history
  • Loading branch information
renanfranca committed Jan 27, 2025
1 parent 2d55a58 commit c955daf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package tech.jhipster.lite.module.domain.landscape;

import static tech.jhipster.lite.module.domain.resource.JHipsterModuleRank.*;
import static tech.jhipster.lite.module.domain.resource.JHipsterModulesResourceFixture.*;

import java.util.Collection;
Expand All @@ -24,6 +25,7 @@ public static JHipsterLandscapeModule noDependencyLandscapeModule(String slug) {
.module(slug)
.operation("operation")
.propertiesDefinition(propertiesDefinition())
.rank(RANK_D)
.withoutDependencies();
}

Expand All @@ -32,6 +34,7 @@ public static JHipsterLandscapeModule oneModuleDependencyLandscapeModule(String
.module(slug)
.operation("operation")
.propertiesDefinition(propertiesDefinition())
.rank(RANK_D)
.dependencies(landscapeModuleDependencies(dependency));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import static tech.jhipster.lite.module.domain.JHipsterModulesFixture.*;
import static tech.jhipster.lite.module.domain.landscape.JHipsterLandscapeFixture.*;
import static tech.jhipster.lite.module.domain.landscape.JHipsterLandscapeFixture.moduleResources;
import static tech.jhipster.lite.module.domain.resource.JHipsterModuleRank.*;
import static tech.jhipster.lite.module.domain.resource.JHipsterModulesResourceFixture.*;

import java.util.Iterator;
Expand Down Expand Up @@ -147,6 +148,7 @@ void shouldBuildThreeLevelsLandscapeFromFourModules() {
.module("forth")
.operation("operation")
.propertiesDefinition(propertiesDefinition())
.rank(RANK_D)
.dependencies(List.of(new JHipsterFeatureDependency(new JHipsterFeatureSlug("my-feature"))))
)
);
Expand Down

0 comments on commit c955daf

Please sign in to comment.