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 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 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 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 void testNotEqualsHash() {
		final FormulaTag tag1 = new FormulaTag("test1");
		final FormulaTag tag2 = new FormulaTag("test2");
		assertFalse("The tags are equal", tag1.hashCode() == tag2.hashCode());
	}

}

@@ -223,32 +223,39 @@
 %0A%09@Test%0A%09public 
+static 
 void testEquals(
@@ -254,24 +254,24 @@
 tEquals() %7B%0A
-
 %09%09final Form
@@ -454,32 +454,39 @@
 %0A%09@Test%0A%09public 
+static 
 void testNotEqua
@@ -685,32 +685,39 @@
 %0A%09@Test%0A%09public 
+static 
 void testEqualsH
@@ -942,24 +942,24 @@
 %0A%09@Test%0A
-
 %09public 
 void tes
@@ -950,16 +950,23 @@
 %09public 
+static 
 void tes

Make methods static where possible