• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aspectran / aspectran / #5085

24 Mar 2026 05:55AM UTC coverage: 41.772% (+0.1%) from 41.673%
#5085

push

github

topframe
[mybatis] Implement dynamic routing and enhance transaction management

MyBatis Integration:
- Support transaction isolation level and read-only mode in SqlSessionAdvice.
- Implement dynamic aspect routing in SqlSessionProvider and SqlSessionAgent
  to automatically switch between writable and read-only sessions based on
  method name patterns.
- Enhance SqlSessionAdviceRegister to support Aspectran-standard include/exclude
  pointcut patterns for method-level advice.
- Simplify SqlMapperAccess by using Java generics to automatically resolve
  mapper types, reducing boilerplate code in DAO constructors.
- Ensure transactional integrity in ConsoleTxAspect by removing auto-commit
  and adding explicit @ExceptionThrown advice for rollback.

Testing Framework:
- Rename WebAspectranTester to WebActivityTester to better reflect its
  role in testing WebActivity.
- Introduce ActivityTester in the aspectran-test module to simplify
  executing test logic within an InstantActivity context.
- Update AspectranExtension and WebAspectranExtension to support injection
  of ActivityTester into test methods.
- Add comprehensive test cases in SqlSessionRoutingTest to verify
  dynamic routing and transaction rollback.

56 of 64 new or added lines in 3 files covered. (87.5%)

17811 of 42639 relevant lines covered (41.77%)

0.42 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

72.06
/with-mybatis/src/main/java/com/aspectran/mybatis/SqlSessionProvider.java


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc