1 33 34 package edu.rice.cs.drjava.config; 35 36 import edu.rice.cs.drjava.DrJavaTestCase; 37 38 41 public final class StringOptionTest extends DrJavaTestCase { 42 43 public StringOptionTest(String name) { super(name); } 44 45 public void testGetName() { 46 StringOption so = new StringOption("classpath",null); 47 assertEquals("classpath", so.getName()); 48 } 49 50 public void testParse() { 51 StringOption so = new StringOption("classpath",null); 52 assertEquals("3", so.parse("3")); 53 assertEquals(".:..", so.parse(".:..")); 54 } 55 56 public void testFormat() { 57 StringOption so = new StringOption("classpath",null); 58 assertEquals("3", so.format("3")); 59 assertEquals(".:..", so.format(".:..")); 60 } 61 } 62 | Popular Tags |