Fix ModelTest - forgot to close session and factory
This commit is contained in:
parent
32fcd46e08
commit
0c76a493b9
1 changed files with 8 additions and 0 deletions
|
@ -3,6 +3,7 @@ package org.keycloak.test;
|
|||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
@ -27,6 +28,13 @@ public class ModelTest extends AbstractKeycloakServerTest {
|
|||
manager = new RealmManager(identitySession);
|
||||
}
|
||||
|
||||
@After
|
||||
public void after() throws Exception {
|
||||
identitySession.getTransaction().commit();
|
||||
identitySession.close();
|
||||
factory.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void importExportRealm() {
|
||||
RealmModel realm = manager.createRealm("original");
|
||||
|
|
Loading…
Reference in a new issue