Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in ApplicationModuleDetectionStrategy.explicitlyAnnotated() #745

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static ApplicationModuleDetectionStrategy directSubPackage() {
*
* @return will never be {@literal null}.
*/
static ApplicationModuleDetectionStrategy explictlyAnnotated() {
static ApplicationModuleDetectionStrategy explicitlyAnnotated() {
return pkg -> Stream.of(ApplicationModule.class, JMoleculesTypes.getModuleAnnotationTypeIfPresent())
.filter(Objects::nonNull)
.flatMap(pkg::getSubPackagesAnnotatedWith);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static ApplicationModuleDetectionStrategy getStrategy() {
case "direct-sub-packages":
return ApplicationModuleDetectionStrategy.directSubPackage();
case "explicitly-annotated":
return ApplicationModuleDetectionStrategy.explictlyAnnotated();
return ApplicationModuleDetectionStrategy.explicitlyAnnotated();
}

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void usesExplicitlyAnnotatedStrategyIfConfigured() {
System.setProperty("spring.config.additional-location", "classpath:detection/explicitly-annotated.properties");

assertThat(ApplicationModuleDetectionStrategyLookup.getStrategy())
.isEqualTo(ApplicationModuleDetectionStrategy.explictlyAnnotated());
.isEqualTo(ApplicationModuleDetectionStrategy.explicitlyAnnotated());
}

@Test // GH-652
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void detectsJMoleculesAnnotatedModule() {

var javaPackage = JavaPackage.of(Classes.of(classes), "jmolecules");

assertThat(ApplicationModuleDetectionStrategy.explictlyAnnotated().getModuleBasePackages(javaPackage))
assertThat(ApplicationModuleDetectionStrategy.explicitlyAnnotated().getModuleBasePackages(javaPackage))
.containsExactly(javaPackage);
}
}