package skrueger.linux; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import java.io.File; import java.io.IOException; import org.junit.After; import org.junit.Before; import org.junit.Test; import schmitzm.junit.TestingClass; import schmitzm.swing.TestingUtil; public class LinuxUtilTest extends TestingClass { @Before public void setUp() throws Exception { } @After public void tearDown() throws Exception { } @Test public void testCreateSymlink() throws IOException, InterruptedException { File from = TestingUtil.getNewTempDir(); File to = new File(TestingUtil.getNewTempDir(), "link"); assertFalse(to.exists()); LinuxUtil.createSymlink(from, to); assertTrue(to.exists()); } }