Skip to content

Conversation

@mercyblitz
Copy link
Contributor

No description provided.

dependabot bot and others added 30 commits October 28, 2025 18:48
Bumps the maven group with 1 update in the /microsphere-spring-parent directory: org.apache.tomcat.embed:tomcat-embed-core.


Updates `org.apache.tomcat.embed:tomcat-embed-core` from 10.1.46 to 10.1.47

---
updated-dependencies:
- dependency-name: org.apache.tomcat.embed:tomcat-embed-core
  dependency-version: 10.1.47
  dependency-type: direct:production
  dependency-group: maven
...

Signed-off-by: dependabot[bot] <support@github.com>
Updated the <revision> property in pom.xml to start the next development iteration.
…crosphere-spring-parent/maven-71b22309ad

Bump org.apache.tomcat.embed:tomcat-embed-core from 10.1.46 to 10.1.47 in /microsphere-spring-parent in the maven group across 1 directory
Added <optional>true</optional> to several Tomcat, Zookeeper, and Curator dependencies in microsphere-spring-test to make them optional. Also added tomcat-embed-core as a test dependency in microsphere-spring-webmvc. This improves modularity and reduces unnecessary transitive dependencies.
Updated WebEndpointMapping.Builder to default to all HTTP methods if none are specified. Adjusted related test to verify that all HTTP methods are set by default instead of throwing an exception.
Bumped the latest version numbers for branches 0.2.x and 0.1.x in the README to reflect recent releases.
Deleted <distributionManagement> and <repositories> sections from pom.xml to simplify project configuration and remove Sonatype OSSRH deployment settings.
Added the Spring Portfolio Milestone Repository to the list of repositories and introduced a new 'spring-framework-7.0' profile with updated versions for Spring, Reactor, and JUnit. This enables building against Spring Framework 7.0 release candidates.
Added a stub implementation of getBeanProvider accepting ParameterizedTypeReference<T> to the test class. This supports newer Spring API requirements and ensures compatibility with updated interfaces.
Added SPRING_6_2_12 and SPRING_7_0_0 enum constants to the SpringVersion enum to support newer Spring Framework versions.
Updated the microsphere-java.version property in the parent POM from 0.1.6 to 0.1.7 to use the latest release.
Introduced a new SPRING_7_0 constant in the SpringVersion enum to support future Spring 7.0 releases.
Added a test case in SpringVersionTest to verify the version range for Spring Framework 7.0, ensuring coverage for the latest version.
Updated WebSourceTest to use LinkedMultiValueMap instead of HttpHeaders for matrix variable tests. This change removes the dependency on org.springframework.http.HttpHeaders and uses a more generic MultiValueMap implementation.
Introduced a default version(String version) method to the RequestPredicateVisitorAdapter interface, with documentation indicating its availability since Spring Framework 7.0.
Introduced a default version(String version) method to the RequestPredicateVisitorAdapter interface, with documentation indicating its availability since Spring Framework 7.0.
Introduced a public static inner class SpecificityComparator to allow sorting of MimeType instances by specificity, considering wildcard types, subtypes, and parameter count. This facilitates more precise handling and ordering of MIME types in collections.
Introduces unit tests for the SpecificityComparator inner class in MimeTypeUtils, covering various cases of MIME type specificity and parameter comparison.
Introduced MediaTypeUtils utility class providing a SPECIFICITY_COMPARATOR for MediaType, prioritizing quality values when comparing parameters. This aids in sorting MediaType instances by specificity and quality.
Replaces direct use of HttpHeaders.keySet() with a new HashSet populated from the headers, ensuring a proper iterator is returned. This change improves compatibility and avoids potential issues with the underlying key set implementation.
Replaces the import of SPECIFICITY_COMPARATOR from Spring's MediaType with the local MediaTypeUtils version. This change likely improves encapsulation or customizes comparator behavior for the project.
Updated ReversedProxyHandlerMappingTest to use a static value ('1') for the ID_HEADER_NAME header instead of the currentTimeMillis() value. This change improves test determinism and repeatability.
Updated the testResponseEntity method in ReversedProxyHandlerMappingTest to use a static header value ('1') instead of the dynamic currentTimeMillis(). This change improves test determinism and repeatability.
Simplified assertions in ConfigurableContentNegotiationManagerWebMvcConfigurerTest by removing checks for specific PathExtensionContentNegotiationStrategy and adjusting the strategy count assertion to require more than one strategy.
Commented out the mocking of pathContainer in several test methods within RequestPredicateKindTest. This may be in preparation for refactoring or due to changes in how path information is handled in the tests.
Replaces manual substring logic in getSubtypeSuffix with StringUtils.substringAfter and checks for EMPTY_STRING. This improves code readability and consistency by leveraging existing utility methods.
Added additional assertions to test equality and comparison logic in MimeTypeUtilsTest, improving coverage for cases where MimeTypes are equal.
Introduces MediaTypeUtilsTest to verify the behavior of the SPECIFICITY_COMPARATOR, ensuring correct comparison of MediaType instances with different quality and parameters.
Changed the visibility of testBuildWithoutMethods from public to package-private to align with JUnit 5 conventions.
Renamed variables in testSPECIFICITY_COMPARATOR for clarity and consistency, improving code readability.
Deleted unused commented lines in testPredicateOnAnd and testPredicateOnOr methods to clean up the test file.
Corrected 'aServletendpoint' to 'a Servlet endpoint' in the JavaDoc example usage comment for better readability.
Fix typo in JavaDoc example usage comment
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 7, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
5.6% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@codecov
Copy link

codecov bot commented Nov 7, 2025

Codecov Report

❌ Patch coverage is 92.30769% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...io/microsphere/spring/web/util/MediaTypeUtils.java 87.50% 1 Missing ⚠️
...unction/server/RequestPredicateVisitorAdapter.java 0.00% 1 Missing ⚠️
...rvlet/function/RequestPredicateVisitorAdapter.java 0.00% 1 Missing ⚠️
Files with missing lines Coverage Δ Complexity Δ
...java/io/microsphere/spring/core/SpringVersion.java 88.63% <100.00%> (+0.40%) 8.00 <0.00> (ø)
...java/io/microsphere/spring/util/MimeTypeUtils.java 97.14% <100.00%> (+7.14%) 13.00 <0.00> (ø)
...sphere/spring/web/metadata/WebEndpointMapping.java 100.00% <100.00%> (ø) 54.00 <0.00> (ø)
...re/spring/web/rule/GenericMediaTypeExpression.java 100.00% <ø> (ø) 22.00 <0.00> (ø)
...ring/webflux/context/request/ServerWebRequest.java 100.00% <100.00%> (ø) 49.00 <1.00> (+1.00)
...io/microsphere/spring/web/util/MediaTypeUtils.java 87.50% <87.50%> (ø) 1.00 <1.00> (?)
...unction/server/RequestPredicateVisitorAdapter.java 94.11% <0.00%> (-5.89%) 15.00 <0.00> (ø)
...rvlet/function/RequestPredicateVisitorAdapter.java 94.11% <0.00%> (-5.89%) 15.00 <0.00> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mercyblitz mercyblitz merged commit 6cd6650 into main Nov 7, 2025
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants