Package org.uberfire.java.nio.fs.file

Examples of org.uberfire.java.nio.fs.file.SimpleWindowsFileStore.type()


    public void simpleTests() {
        final Path path = GeneralPathImpl.create( fileSystem, "something", false );
        final FileStore fileStore = new SimpleWindowsFileStore( roots, path );

        assertThat( fileStore.name() ).isNotNull().isEqualTo( "c:\\" );
        assertThat( fileStore.type() ).isNull();
        assertThat( fileStore.isReadOnly() ).isFalse();
        assertThat( fileStore.getTotalSpace() ).isEqualTo( 0L );
        assertThat( fileStore.getUsableSpace() ).isEqualTo( 0L );

        assertThat( fileStore.supportsFileAttributeView( BasicFileAttributeView.class ) ).isTrue();
View Full Code Here

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.