<commit_before>package com.alexrnl.commons.translation;

import static org.junit.Assert.fail;

import org.junit.Before;
import org.junit.Test;

/**
 * Test suite for the {@link AbstractDialog} class.
 * @author Alex
 */
public class AbstractDialogTest {
	
	/**
	 * Basic class extending the abstract dialog.
	 * @author Alex
	 */
	private static class HelloDialog extends AbstractDialog {
		/** The key to the translation dialog */
		private final String	helloKey;
		/** Parameters of the dialog */
		private final Object[]	parameters;
		
		/**
		 * Constructor #1.<br />
		 * @param name
		 *        the name to say hello to.
		 */
		public HelloDialog (final String name) {
			super();
			this.helloKey = "commons.dialogs.hello";
			this.parameters = new Object[1];
			parameters[0] = name;
		}
		
		@Override
		public String toString () {
			return helloKey;
		}
		
		@Override
		public Object[] getParameters () {
			return parameters;
		}
		
	}
	
	/**
	 * Set up test attributes.
	 */
	@Before
	public void setUp () {
	}
	
	/**
	 * Test method for {@link com.alexrnl.commons.translation.AbstractDialog#title()}.
	 */
	@Test
	public void testTitle () {
		fail("Not yet implemented"); // TODO
	}
	
	/**
	 * Test method for {@link com.alexrnl.commons.translation.AbstractDialog#message()}.
	 */
	@Test
	public void testMessage () {
		fail("Not yet implemented"); // TODO
	}
	
	/**
	 * Test method for {@link com.alexrnl.commons.translation.AbstractDialog#toString()}.
	 */
	@Test
	public void testToString () {
		fail("Not yet implemented"); // TODO
	}
	
	/**
	 * Test method for {@link com.alexrnl.commons.translation.AbstractDialog#getParameters()}.
	 */
	@Test
	public void testGetParameters () {
		fail("Not yet implemented"); // TODO
	}
}<commit_msg>Implement test for the AbstractDialog class<commit_after>package com.alexrnl.commons.translation;

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

import org.junit.Before;
import org.junit.Test;

/**
 * Test suite for the {@link AbstractDialog} class.
 * @author Alex
 */
public class AbstractDialogTest {
	/** The dialog to test */
	private HelloDialog	dialog;
	
	/**
	 * Basic class extending the abstract dialog.
	 * @author Alex
	 */
	private static class HelloDialog extends AbstractDialog {
		/** The key to the translation dialog */
		private final String	helloKey;
		
		/**
		 * Constructor #1.<br />
		 */
		public HelloDialog () {
			super();
			this.helloKey = "commons.dialogs.hello";
		}
		
		@Override
		public String toString () {
			return helloKey;
		}
		
	}
	
	/**
	 * Set up test attributes.
	 */
	@Before
	public void setUp () {
		dialog = new HelloDialog();
	}
	
	/**
	 * Test method for {@link com.alexrnl.commons.translation.AbstractDialog#title()}.
	 */
	@Test
	public void testTitle () {
		assertEquals("commons.dialogs.hello.title", dialog.title());
	}
	
	/**
	 * Test method for {@link com.alexrnl.commons.translation.AbstractDialog#message()}.
	 */
	@Test
	public void testMessage () {
		assertEquals("commons.dialogs.hello.message", dialog.message());
	}
	
	/**
	 * Test method for {@link com.alexrnl.commons.translation.AbstractDialog#toString()}.
	 */
	@Test
	public void testToString () {
		assertEquals("commons.dialogs.hello", dialog.toString());
	}
	
	/**
	 * Test method for {@link com.alexrnl.commons.translation.AbstractDialog#getParameters()}.
	 */
	@Test
	public void testGetParameters () {
		assertNotNull(dialog.getParameters());
		assertEquals(0, dialog.getParameters().length);
	}
}
{'fraction_non_alphanumeric': 0.1355259427275305, 'fraction_numerical': 0.001417635384179189, 'mean_word_length': 3.3288343558282207, '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': '5712780', 'n_tokens_mistral': 1169, 'n_tokens_neox': 1027, 'n_words': 277}