<commit_before>/**
 * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.security.user;

import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNotNull;
import static org.testng.AssertJUnit.assertNull;
import static org.testng.AssertJUnit.assertTrue;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Factory;
import org.testng.annotations.Test;

import com.opengamma.util.test.DbTest;
import com.opengamma.util.test.TransactionalHibernateTest;

/**
 * Test HibernateUserManager.
 */
public class HibernateUserManagerTest extends TransactionalHibernateTest {

  private HibernateUserManager _userManager;

  @Factory(dataProvider = "databases", dataProviderClass = DbTest.class)
  public HibernateUserManagerTest(String databaseType, final String databaseVersion) {
    super(databaseType, databaseVersion);
  }

  @Override
  public Class<?>[] getHibernateMappingClasses() {
    return new HibernateUserManagerFiles().getHibernateMappingFiles();
  }

  @BeforeMethod
  public void setUp() throws Exception {
    super.setUp();
    _userManager = new HibernateUserManager(getSessionFactory());
    
    System.err.println("User Manager initialization complete:" + _userManager);
  }

  @AfterMethod
  public void tearDown() throws Exception {
    super.tearDown();
  }<commit_msg>Checkstyle<commit_after>/**
 * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.security.user;

import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNotNull;
import static org.testng.AssertJUnit.assertNull;
import static org.testng.AssertJUnit.assertTrue;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Factory;
import org.testng.annotations.Test;

import com.opengamma.util.test.DbTest;
import com.opengamma.util.test.TransactionalHibernateTest;

/**
 * Test HibernateUserManager.
 */
public class HibernateUserManagerTest extends TransactionalHibernateTest {

  private HibernateUserManager _userManager;

  @Factory(dataProvider = "databases", dataProviderClass = DbTest.class)
  public HibernateUserManagerTest(String databaseType, final String databaseVersion) {
    super(databaseType, databaseVersion);
  }

  @Override
  public Class<?>[] getHibernateMappingClasses() {
    return new HibernateUserManagerFiles().getHibernateMappingFiles();
  }

  @SuppressWarnings("deprecation")
  @BeforeMethod
  public void setUp() throws Exception {
    super.setUp();
    _userManager = new HibernateUserManager(getSessionFactory());
    
    System.err.println("User Manager initialization complete:" + _userManager);
  }

  @AfterMethod
  public void tearDown() throws Exception {
    super.tearDown();
  }
{'fraction_non_alphanumeric': 0.0948002536461636, 'fraction_numerical': 0.0025364616360177552, 'mean_word_length': 5.31, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1120906', 'n_tokens_mistral': 922, 'n_tokens_neox': 886, 'n_words': 205}