01: package de.java2html.util.test;
02:
03: import java.io.File;
04:
05: import de.java2html.util.IoUtilities;
06: import junit.framework.TestCase;
07:
08: /**
09: * @author Markus Gebhard
10: */
11: public class IoUtilitiesTest extends TestCase {
12: public void testExchangeFileExtension() {
13: assertEquals(
14: new File("c:/test.txt"), IoUtilities.exchangeFileExtension( //$NON-NLS-1$
15: new File("c:/test.java"), //$NON-NLS-1$
16: "txt")); //$NON-NLS-1$
17: }
18: }
|