Fix typos in comment and test

Closes gh-32628
This commit is contained in:
laterlaugh
2024-04-12 20:56:33 +08:00
committed by Sam Brannen
parent b13963ee81
commit 5012843b12
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -58,7 +58,7 @@ class PackagesAnnotationFilterTests {
@Test
void matchesWhenNotInPackageReturnsFalse() {
PackagesAnnotationFilter filter = new PackagesAnnotationFilter("com.example");
assertThat(filter.matches("org.springframework.sterotype.Component")).isFalse();
assertThat(filter.matches("org.springframework.stereotype.Component")).isFalse();
}
@Test

View File

@@ -332,7 +332,7 @@ class PathMatchingResourcePatternResolverTests {
// Tests fail if we use resource.getURL().getPath(). They would also fail on macOS when
// using resource.getURI().getPath() if the resource paths are not Unicode normalized.
//
// On the JVM, all tests should pass when using resouce.getFile().getPath(); however,
// On the JVM, all tests should pass when using resource.getFile().getPath(); however,
// we use FileSystemResource#getPath since this test class is sometimes run within a
// GraalVM native image which cannot support Path#toFile.
//