<commit_before>package org.codenergic.theskeleton.core.mail;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.verify;

import org.codenergic.theskeleton.core.mail.EmailService;
import org.codenergic.theskeleton.core.mail.impl.EmailServiceImpl;
import org.junit.Before;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;

public class EmailServiceTest {
	private EmailService emailService;
	@Mock
	private JavaMailSender mailSender;
	@Value("${spring.mail.username}")
	private String fromEmail;
	private ArgumentCaptor<SimpleMailMessage> simpleMailMessageCaptor;
	
	@Before
	public void init() {
		MockitoAnnotations.initMocks(this);
		this.emailService = new EmailServiceImpl(mailSender);<commit_msg>#27: remove one of constructor<commit_after>package org.codenergic.theskeleton.core.mail;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.verify;

import org.codenergic.theskeleton.core.mail.EmailService;
import org.codenergic.theskeleton.core.mail.impl.EmailServiceImpl;
import org.codenergic.theskeleton.core.mail.impl.MailContentBuilder;
import org.junit.Before;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;

public class EmailServiceTest {
	private EmailService emailService;
	@Mock
	private JavaMailSender mailSender;
	@Mock
	private MailContentBuilder mailContentBuilder;
	@Value("${spring.mail.username}")
	private String fromEmail;
	private ArgumentCaptor<SimpleMailMessage> simpleMailMessageCaptor;
	
	@Before
	public void init() {
		MockitoAnnotations.initMocks(this);
		this.emailService = new EmailServiceImpl(mailSender, mailContentBuilder);
{'fraction_non_alphanumeric': 0.09232218558643429, 'fraction_numerical': 0.0009420631182289214, 'mean_word_length': 7.1692307692307695, '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': '4155778', 'n_tokens_mistral': 643, 'n_tokens_neox': 628, 'n_words': 116}