Package jnr.posix

Source Code of jnr.posix.JavaFileStatTest

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package jnr.posix;

import jnr.posix.JavaFileStat;
import junit.framework.TestCase;

import jnr.posix.util.Platform;

/**
*
* @author nicksieger
*/
public class JavaFileStatTest extends TestCase {
    public void testSetup() {
        JavaFileStat fs = new JavaFileStat(null, null);
        if (Platform.IS_WINDOWS) {
            fs.setup("c:/");
        } else {
            fs.setup("/");
        }
        assertFalse(fs.isSymlink());
    }
}
TOP

Related Classes of jnr.posix.JavaFileStatTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.