예제 #1
0
 /** Test of get method, of class FileExtension. */
 @Test
 public void testGet() {
   System.out.println("get");
   String filename = "somefile.ext";
   String expResult = "ext";
   String result = FileExtension.get(filename);
   assertEquals(expResult, result);
   String filename2 = "somefile.longext";
   String expResult2 = "longext";
   String result2 = FileExtension.get(filename2);
   assertEquals(expResult2, result2);
 }
 @Override
 public KeywordSubstitutionWrapper valueOf(FileExtension extension) {
   return extension.getKeywordSubstitution();
 }
 @Override
 public void setValue(FileExtension extension, KeywordSubstitutionWrapper aValue) {
   extension.setKeywordSubstitution(aValue);
 }
 @Override
 public String valueOf(FileExtension o) {
   return o.getExtension();
 }