@@ -0,0 +1,1025 @@
+package beaform.utilities;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport org.junit.Test;%0A%0Aimport beaform.entities.FormulaTag;%0A%0A/**%0A * Test for the formula tag.%0A * @author Steven Post%0A *%0A */%0Apublic class TagComparatorTest %7B%0A%0A%09@Test%0A%09public void testDifferentTags() %7B%0A%0A%09%09final TagComparator tagComp = new TagComparator();%0A%0A%09%09final FormulaTag tag1 = new FormulaTag(%22testa%22);%0A%09%09final FormulaTag tag2 = new FormulaTag(%22testb%22);%0A%0A%09%09assertTrue(%22The tags are expected to have another ordering%22, tagComp.compare(tag1, tag2) %3C 0);%0A%09%09assertTrue(%22The tags are expected to have another ordering%22, tagComp.compare(tag2, tag1) %3E 0);%0A%09%7D%0A%0A%09@Test%0A%09public void testSameTags() %7B%0A%0A%09%09final TagComparator tagComp = new TagComparator();%0A%0A%09%09final FormulaTag tag1 = new FormulaTag(%22test%22);%0A%09%09final FormulaTag tag2 = new FormulaTag(%22test%22);%0A%0A%09%09assertTrue(%22The tags are expected to have the same ordering%22, tagComp.compare(tag1, tag2) == 0);%0A%09%09assertTrue(%22The tags are expected to have the same ordering%22, tagComp.compare(tag2, tag1) == 0);%0A%09%7D%0A%0A%7D%0A

Add tests for the Tagcomparator