1 package com.sri.emo.wizard; 2 3 import junit.framework.*; 4 5 /*** 6 * 7 * @author Michael Rimov 8 */ 9 public class TestValidValueWithComment extends TestCase { 10 11 public void testBase() { 12 ValidValueWithComment vvc = new ValidValueWithComment("key","descrip"); 13 assertEquals("key", vvc.getKey()); 14 assertEquals("descrip", vvc.getDescription()); 15 } 16 17 public void testGetComment() { 18 ValidValueWithComment vvc = new ValidValueWithComment("key","descrip","comment"); 19 assertEquals("comment", vvc.getComment()); 20 } 21 22 public void testIsSelected() { 23 ValidValueWithComment vvc = new ValidValueWithComment("key","descrip","comment"); 24 assertFalse(vvc.isSelected()); 25 vvc.setSelected(true); 26 27 assertTrue(vvc.isSelected()); 28 } 29 30 31 }