1 26 package org.objectweb.util.explorer.core.menu; 27 28 import junit.framework.Assert; 29 import junit.framework.TestCase; 30 31 import org.objectweb.util.explorer.core.menu.api.MnemonicDescription; 32 import org.objectweb.util.explorer.core.menu.lib.BasicMnemonicDescription; 33 34 35 43 public class MnemonicDescriptionTest 44 extends TestCase 45 { 46 47 53 protected char c1_='A',c2_='B'; 54 55 61 67 73 public void testEqualsMethod(){ 74 MnemonicDescription mnemDesc = new BasicMnemonicDescription(); 75 mnemDesc.setMnemonicCharacter(c1_); 76 MnemonicDescription expected = new BasicMnemonicDescription(); 77 expected.setMnemonicCharacter(c2_); 78 Assert.assertNotSame(expected,mnemDesc); 79 expected.setMnemonicCharacter(c1_); 80 Assert.assertEquals(expected,mnemDesc); 81 } 82 83 } 84 85 | Popular Tags |