package beaform.entities;

import org.junit.Test;

import junit.framework.TestCase;

/**
 * Test for the formula tag.
 * @author Steven Post
 *
 */
public class FormulaTagTest extends TestCase {

	/**
	 * Test equals.
	 */
	@Test
	public static void testEquals() {
		final FormulaTag tag1 = new FormulaTag("test");
		final FormulaTag tag2 = new FormulaTag("test");
		assertEquals("The tags are not equal", tag1, tag2);
	}

	/**
	 * Test not equals.
	 */
	@Test
	public static void testNotEqual() {
		final FormulaTag tag1 = new FormulaTag("test1");
		final FormulaTag tag2 = new FormulaTag("test2");
		assertFalse("The tags are equal", tag1.equals(tag2));
	}

	/**
	 * Test hash.
	 */
	@Test
	public static void testEqualsHash() {
		final FormulaTag tag1 = new FormulaTag("test");
		final FormulaTag tag2 = new FormulaTag("test");
		assertEquals("The tags are not equal", tag1.hashCode(), tag2.hashCode());
	}

	/**
	 * Test not equals.
	 */
	@Test
	public static void testNotEqualsHash() {
		final FormulaTag tag1 = new FormulaTag("test1");
		final FormulaTag tag2 = new FormulaTag("test2");
		assertFalse("The tags are equal", tag1.hashCode() == tag2.hashCode());
	}

}

@@ -193,35 +193,8 @@
  %7B%0A%0A
-%09/**%0A%09 * Test equals.%0A%09 */%0A
 %09@Te
@@ -393,39 +393,8 @@
 %09%7D%0A%0A
-%09/**%0A%09 * Test not equals.%0A%09 */%0A
 %09@Te

Remove useless JavaDoc