Releases: usmanakram232/log-assert
Releases · usmanakram232/log-assert
Release list
log-assert 1.0.2
What's new in 1.0.2
Added
atLevelAtLeast(Level)filter onLogsAssert— keeps entries at or above a minimum severity (e.g.atLevelAtLeast(Level.WARN)captures WARN and ERROR)hasThrowableWithMessageContaining(String)onLogEntryAssert— partial match on throwable message; complements the existing exact-matchhasThrowableWithMessage@since 1.0.0Javadoc tags on every public type and methodThrowableInfo.MAX_CAUSE_DEPTHpromoted topublic static finalRELEASING.md— step-by-step release checklist for maintainers- 5 new tests (95 total):
@EchoLogslifecycle, annotation superclass inheritance,withMinLeveldouble-call invariant
Fixed
hasSize(1)failure message now reads "1 log entry" (singular) instead of "1 log entries"snapshot()inLogCaptorStoreis nowsynchronized, consistent withappendandclearsetAccessible(true)now catchesInaccessibleObjectExceptionwith an actionable message containing the requiredopensdirectivegetCaptor()now throwsLogCaptorConfigurationExceptioninstead of bareIllegalStateException- Bug:
@FailOnUncheckedErrorand@PrintLogsOnFailurenow carry@Inherited— annotations placed on a superclass are now correctly detected in subclass tests @FailOnUncheckedErrorJavadoc corrected: check fires only when the test itself passed
Changed
LogCaptorStoreinternal storage:ConcurrentLinkedDeque+AtomicInteger→ArrayDeque+int(all access already serialised bysynchronized)LogCaptorExtensionEchoLogs key:System.identityHashCode(h)→consoleHandlers.indexOf(h)- GPG signing and Central Portal publishing moved to
-PreleaseMaven profile maven-compiler-plugin:<source>/<target>→<release>21</release>- Added
maven-enforcer-plugin(Java 21+, Maven 3.9+) - Reproducible builds via
project.build.outputTimestamp - Javadoc
doclintnone→all,-missing quarkus-junit5version extracted to${quarkus.junit5.version}property
Maven
<dependency>
<groupId>io.github.usmanakram232</groupId>
<artifactId>log-assert</artifactId>
<version>1.0.2</version>
<scope>test</scope>
</dependency>Full changelog: https://github.com/usmanakram232/log-assert/blob/main/CHANGELOG.md