Skip to content

Releases: usmanakram232/log-assert

Release list

log-assert 1.0.2

Choose a tag to compare

@usmanakram232 usmanakram232 released this 20 Jun 20:37

What's new in 1.0.2

Added

  • atLevelAtLeast(Level) filter on LogsAssert — keeps entries at or above a minimum severity (e.g. atLevelAtLeast(Level.WARN) captures WARN and ERROR)
  • hasThrowableWithMessageContaining(String) on LogEntryAssert — partial match on throwable message; complements the existing exact-match hasThrowableWithMessage
  • @since 1.0.0 Javadoc tags on every public type and method
  • ThrowableInfo.MAX_CAUSE_DEPTH promoted to public static final
  • RELEASING.md — step-by-step release checklist for maintainers
  • 5 new tests (95 total): @EchoLogs lifecycle, annotation superclass inheritance, withMinLevel double-call invariant

Fixed

  • hasSize(1) failure message now reads "1 log entry" (singular) instead of "1 log entries"
  • snapshot() in LogCaptorStore is now synchronized, consistent with append and clear
  • setAccessible(true) now catches InaccessibleObjectException with an actionable message containing the required opens directive
  • getCaptor() now throws LogCaptorConfigurationException instead of bare IllegalStateException
  • Bug: @FailOnUncheckedError and @PrintLogsOnFailure now carry @Inherited — annotations placed on a superclass are now correctly detected in subclass tests
  • @FailOnUncheckedError Javadoc corrected: check fires only when the test itself passed

Changed

  • LogCaptorStore internal storage: ConcurrentLinkedDeque + AtomicIntegerArrayDeque + int (all access already serialised by synchronized)
  • LogCaptorExtension EchoLogs key: System.identityHashCode(h)consoleHandlers.indexOf(h)
  • GPG signing and Central Portal publishing moved to -Prelease Maven 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 doclint noneall,-missing
  • quarkus-junit5 version 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