assertThat( PROVIDER.readAttributes( path, "*" ) ).isNotNull().hasSize( 10 );
assertThat( PROVIDER.readAttributes( path, "basic:*" ) ).isNotNull().hasSize( 10 );
assertThat( PROVIDER.readAttributes( path, "basic:isRegularFile" ) ).isNotNull().hasSize( 1 );
assertThat( PROVIDER.readAttributes( path, "basic:isRegularFile,isDirectory" ) ).isNotNull().hasSize( 2 );
assertThat( PROVIDER.readAttributes( path, "basic:isRegularFile,isDirectory,someThing" ) ).isNotNull().hasSize( 2 );
assertThat( PROVIDER.readAttributes( path, "basic:someThing" ) ).isNotNull().hasSize( 0 );
assertThat( PROVIDER.readAttributes( path, "version:version" ) ).isNotNull().hasSize( 1 );
assertThat( PROVIDER.readAttributes( path, "isRegularFile" ) ).isNotNull().hasSize( 1 );
assertThat( PROVIDER.readAttributes( path, "isRegularFile,isDirectory" ) ).isNotNull().hasSize( 2 );
assertThat( PROVIDER.readAttributes( path, "isRegularFile,isDirectory,someThing" ) ).isNotNull().hasSize( 2 );
assertThat( PROVIDER.readAttributes( path, "someThing" ) ).isNotNull().hasSize( 0 );
PROVIDER.readAttributes( path, ":someThing" );
failBecauseExceptionWasNotThrown( IllegalArgumentException.class );
} catch ( IllegalArgumentException ex ) {
PROVIDER.readAttributes( path, "advanced:isRegularFile" );
failBecauseExceptionWasNotThrown( UnsupportedOperationException.class );
} catch ( UnsupportedOperationException ex ) {
assertThat( PROVIDER.readAttributes( rootPath, "*" ) ).isNotNull().hasSize( 10 );
assertThat( PROVIDER.readAttributes( rootPath, "basic:*" ) ).isNotNull().hasSize( 10 );
assertThat( PROVIDER.readAttributes( rootPath, "basic:isRegularFile" ) ).isNotNull().hasSize( 1 );
assertThat( PROVIDER.readAttributes( rootPath, "basic:isRegularFile,isDirectory" ) ).isNotNull().hasSize( 2 );
assertThat( PROVIDER.readAttributes( rootPath, "basic:isRegularFile,isDirectory,someThing" ) ).isNotNull().hasSize( 2 );
assertThat( PROVIDER.readAttributes( rootPath, "basic:someThing" ) ).isNotNull().hasSize( 0 );
assertThat( PROVIDER.readAttributes( rootPath, "isRegularFile" ) ).isNotNull().hasSize( 1 );