<commit_before>package de.atomfrede.mate.domain.entities.user;

import java.util.List;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import de.atomfrede.mate.domain.dao.user.UserDao;


@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration( { "../../../../../../domain-context.xml" })
public class UserDaoTest {
	
	@Autowired
	ApplicationContext context;
	
	@Autowired
	UserDao userDao;
	
	User testUser;
	
	@Before
	public void addUser(){
		testUser = new User();
		testUser.setEmail("<EMAIL>");
		testUser.setFirstname("Max");
		testUser.setLastname("Muster");
		testUser.setUsername("mmuster");
		userDao.persist(testUser);	
	}
	
	@After
	public void clear(){
		userDao.remove(testUser);
	}
	
	@Test
	public void findAllTest(){
		List<User> allUsers = userDao.findAll();
		assertNotNull(allUsers);
		assertEquals(1, allUsers.size());
	}
	
	@Test
	public void deleteTest(){
		
	}

}<commit_msg>Fixed Test regarding non nullable account property.<commit_after>package de.atomfrede.mate.domain.entities.user;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

import java.util.List;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import de.atomfrede.mate.domain.dao.user.UserDao;
import de.atomfrede.mate.domain.entities.account.Account;


@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration( { "../../../../../../domain-context.xml" })
public class UserDaoTest {
	
	@Autowired
	ApplicationContext context;
	
	@Autowired
	UserDao userDao;
	
	User testUser;
	
	@Before
	public void addUser(){
		testUser = new User();
		testUser.setEmail("<EMAIL>");
		testUser.setFirstname("Max");
		testUser.setLastname("Muster");
		testUser.setUsername("mmuster");
		testUser.setAccount(new Account());
		userDao.persist(testUser);	
	}
	
	@After
	public void clear(){
		userDao.remove(testUser);
	}
	
	@Test
	public void findAllTest(){
		List<User> allUsers = userDao.findAll();
		assertNotNull(allUsers);
		assertEquals(1, allUsers.size());
	}
	
	@Test
	public void deleteTest(){
		
	}

}
{'fraction_non_alphanumeric': 0.1329416085200147, 'fraction_numerical': 0.0029379360998898272, 'mean_word_length': 4.986813186813187, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '20617', 'n_tokens_mistral': 897, 'n_tokens_neox': 873, 'n_words': 155}