<commit_before><commit_msg>add test case for user object<commit_after>/**
 * 
 */
package com.consoleconnect.mw.sonarqube.sample.test;

import java.util.UUID;

import org.junit.Assert;
import org.junit.Test;

import com.consoleconnect.mw.sonarqube.sample.entity.User;

/**
 * @author dxiong
 *
 */

public class UserTest {

	private static final String ID = UUID.randomUUID().toString();
	private static User USER = new User(ID);

	@Test
	public void testId() {
		Assert.assertTrue(USER.getId().equals(ID));
	}

	@Test
	public void testEmail() {
		Assert.assertNull(USER.getEmail());
		USER.setEmail("<EMAIL>");
		Assert.assertTrue(USER.getEmail().equals("<EMAIL>"));
	}
}

{'fraction_non_alphanumeric': 0.15601783060921248, 'fraction_numerical': 0.0, 'mean_word_length': 4.524590163934426, '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': '2566826', 'n_tokens_mistral': 238, 'n_tokens_neox': 232, 'n_words': 45}