Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Ensure test cleans up its ScrollableResults
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Jun 13, 2013
1 parent 306b5d0 commit 9765beb
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -20,6 +20,8 @@
*/
package org.zanata.dao;

import lombok.Cleanup;

import org.dbunit.operation.DatabaseOperation;
import org.hibernate.ScrollableResults;
import org.hibernate.Session;
Expand Down Expand Up @@ -94,6 +96,7 @@ public void testQuery()
{
HDocument doc = (HDocument) getSession().get(HDocument.class, 1L);
HLocale hLocale = (HLocale) getSession().get(HLocale.class, 1L);
this.textFlowTargetDAO.findMatchingTranslations(doc, hLocale, true, true, true, true);
@Cleanup
ScrollableResults scroll = this.textFlowTargetDAO.findMatchingTranslations(doc, hLocale, true, true, true, true);
}
}

0 comments on commit 9765beb

Please sign in to comment.