hiero-ledger / hiero-ledger/hiero-enterprise-java
Issue 9 — Test suite for contract event/log observation
- Dominant language
- Java
- Stars
- 6
- Forks
- 21
- Avg merge
- 10h 27m
- Merged PRs (30d)
- 37
Description
### Scope
* Unit tests: EventParam factories, EventLog construction, ContractSubscription lifecycle, ContractListener provider resolution, event signature encoding, log decoding for all supported types.
* Integration tests against Hedera testnet in hiero-enterprise-test: deploy a small test contract emitting 1–2 event types, call functions that emit them, assert delivery and decoding through all three subscribeEvent overloads, and assert that closing the returned ContractSubscription stops further delivery.
* Failure-path tests: unsupported LedgerId throws as expected; double unsubscribe() doesn't throw; malformed logs don't crash the subscription.
### Acceptance Criteria
[x] ./mvnw verify passes end-to-end with test credentials configured.
[x] Coverage includes the plain API from both a direct base-module test and at least one test exercising it via an injected client in a Spring or Microprofile context.
Contributor guide
Assessment
This issue has not been assessed yet.