JSR-352: Simplify EntityManager closing in tests

Description

AbstractBatchIndexingIT.java

1 2 3 4 5 6 7 8 9 10 11 12 try { em = emf.createEntityManager(); // ... } finally { try { em.close(); } catch (Exception e) { log.error( e ); } }

The try-catch block is not really necessary in tests, neither the logger. The goal here is just to ensure the entity-manager is closed at the end.

Environment

None

Status

Assignee

Mincong Huang

Reporter

Mincong Huang

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Trivial