commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1808390 [3/3] - in /commons/proper/vfs/trunk: commons-vfs2-sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/ commons-vfs2-sandbox/src/main/java/org/apache/commons/vfs2/util/ commons-vfs2-sandbox/src/test/java/org/apache/commons/v...
Date Thu, 14 Sep 2017 19:48:26 GMT
Modified: commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/MonitorInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/MonitorInputStream.java?rev=1808390&r1=1808389&r2=1808390&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/MonitorInputStream.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/MonitorInputStream.java
Thu Sep 14 19:48:24 2017
@@ -36,7 +36,7 @@ public class MonitorInputStream extends
 
     /**
      * Returns 0 if the stream is at EOF, else the underlying inputStream will be queried.
-     * 
+     *
      * @return The number of bytes that are available.
      * @throws IOException if an error occurs.
      * @since 2.0
@@ -52,7 +52,7 @@ public class MonitorInputStream extends
 
     /**
      * Reads a character.
-     * 
+     *
      * @return The character that was read as an integer.
      * @throws IOException if an error occurs.
      */
@@ -75,7 +75,7 @@ public class MonitorInputStream extends
 
     /**
      * Reads bytes from this input stream.
-     * 
+     *
      * @param buffer A byte array in which to place the characters read.
      * @param offset The offset at which to start reading.
      * @param length The maximum number of bytes to read.
@@ -101,7 +101,7 @@ public class MonitorInputStream extends
 
     /**
      * Closes this input stream and releases any system resources associated with the stream.
-     * 
+     *
      * @throws IOException if an error occurs.
      */
     @Override
@@ -133,7 +133,7 @@ public class MonitorInputStream extends
 
     /**
      * Called after the stream has been closed. This implementation does nothing.
-     * 
+     *
      * @throws IOException if an error occurs.
      */
     protected void onClose() throws IOException {
@@ -141,7 +141,7 @@ public class MonitorInputStream extends
 
     /**
      * Get the number of bytes read by this input stream.
-     * 
+     *
      * @return The number of bytes read by this input stream.
      */
     public long getCount() {

Modified: commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/MonitorRandomAccessContent.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/MonitorRandomAccessContent.java?rev=1808390&r1=1808389&r2=1808390&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/MonitorRandomAccessContent.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/MonitorRandomAccessContent.java
Thu Sep 14 19:48:24 2017
@@ -43,7 +43,7 @@ public class MonitorRandomAccessContent
 
     /**
      * Closes this content.
-     * 
+     *
      * @throws IOException if an error occurs.
      */
     @Override

Modified: commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/Os.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/Os.java?rev=1808390&r1=1808389&r2=1808390&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/Os.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/Os.java
Thu Sep 14 19:48:24 2017
@@ -96,7 +96,7 @@ public final class Os {
 
     /**
      * Determines if the OS on which Ant is executing matches the given OS version.
-     * 
+     *
      * @param version The version to check.
      * @return true if the version matches.
      */
@@ -106,7 +106,7 @@ public final class Os {
 
     /**
      * Determines if the OS on which Ant is executing matches the given OS architecture.
-     * 
+     *
      * @param arch The architecture to check.
      * @return true if the architecture mataches.
      */
@@ -116,7 +116,7 @@ public final class Os {
 
     /**
      * Determines if the OS on which Ant is executing matches the given OS family.
-     * 
+     *
      * @param family The family to check.
      * @return true if the family matches.
      */
@@ -126,7 +126,7 @@ public final class Os {
 
     /**
      * Determines if the OS on which Ant is executing matches the given OS family.
-     * 
+     *
      * @param family The family to check.
      * @return true if the family matches.
      */

Modified: commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/OsFamily.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/OsFamily.java?rev=1808390&r1=1808389&r2=1808390&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/OsFamily.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/OsFamily.java
Thu Sep 14 19:48:24 2017
@@ -35,7 +35,7 @@ public final class OsFamily {
 
     /**
      * Returns the name of this family.
-     * 
+     *
      * @return The name of this family.
      */
     public String getName() {
@@ -44,7 +44,7 @@ public final class OsFamily {
 
     /**
      * Returns the OS families that this family belongs to.
-     * 
+     *
      * @return an array of OSFamily objects that this family belongs to.
      */
     public OsFamily[] getFamilies() {

Modified: commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/WeakRefFileListener.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/WeakRefFileListener.java?rev=1808390&r1=1808389&r2=1808390&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/WeakRefFileListener.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/WeakRefFileListener.java
Thu Sep 14 19:48:24 2017
@@ -42,7 +42,7 @@ public class WeakRefFileListener impleme
 
     /**
      * This will install the {@code listener} at the given {@code file}.
-     * 
+     *
      * @param file The FileObject to listen on.
      * @param listener The FileListener
      */
@@ -55,7 +55,7 @@ public class WeakRefFileListener impleme
     /**
      * returns the wrapped listener. If it is gone, the WeakRefFileListener wrapper will
remove itself from the list of
      * listeners.
-     * 
+     *
      * @return The FileListener.
      * @throws Exception if an error occurs.
      */
@@ -70,7 +70,7 @@ public class WeakRefFileListener impleme
 
     /**
      * Called when a file is created.
-     * 
+     *
      * @param event The FileChangeEvent.
      * @throws Exception if an error occurs.
      */
@@ -85,7 +85,7 @@ public class WeakRefFileListener impleme
 
     /**
      * Called when a file is deleted.
-     * 
+     *
      * @param event The FileChangeEvent.
      * @throws Exception if an error occurs.
      */

Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/FileSystemOptionsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/FileSystemOptionsTest.java?rev=1808390&r1=1808389&r2=1808390&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/FileSystemOptionsTest.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/FileSystemOptionsTest.java
Thu Sep 14 19:48:24 2017
@@ -21,7 +21,7 @@ import org.junit.Test;
 
 /**
  * Check FileSystemOptions.
- * 
+ *
  * @since 2.1
  */
 public class FileSystemOptionsTest {

Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/FileTypeTest.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/FileTypeTest.java?rev=1808390&r1=1808389&r2=1808390&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/FileTypeTest.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/FileTypeTest.java
Thu Sep 14 19:48:24 2017
@@ -24,7 +24,7 @@ import org.junit.Test;
 
 /**
  * Sanity check that a custom enum can be properly serialized and deserialized on a give
JRE.
- * 
+ *
  * @since 2.1
  */
 public class FileTypeTest {

Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/operations/BasicOperationsTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/operations/BasicOperationsTestCase.java?rev=1808390&r1=1808389&r2=1808390&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/operations/BasicOperationsTestCase.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/operations/BasicOperationsTestCase.java
Thu Sep 14 19:48:24 2017
@@ -96,7 +96,7 @@ public class BasicOperationsTestCase {
 
     /**
      * JUnit Fixture: Prepare a simple FSM.
-     * 
+     *
      * @throws FileSystemException for runtime problems
      */
     @Before
@@ -109,7 +109,7 @@ public class BasicOperationsTestCase {
 
     /**
      * Ensure FileOperationProviders which are VfsComponents are set up and teared down.
-     * 
+     *
      * @throws FileSystemException for runtime problems
      */
     @Test
@@ -126,7 +126,7 @@ public class BasicOperationsTestCase {
 
     /**
      * Ensure you can use FileOperationProvider which is not a VfsComponnt.
-     * 
+     *
      * @throws FileSystemException for runtime problems
      */
     @Test
@@ -141,7 +141,7 @@ public class BasicOperationsTestCase {
 
     /**
      * Ensures getOperations calls collect and allows empty response.
-     * 
+     *
      * @throws FileSystemException for runtime problems
      */
     @Test
@@ -160,7 +160,7 @@ public class BasicOperationsTestCase {
 
     /**
      * Ensure proper response for not found FileOperation.
-     * 
+     *
      * @throws FileSystemException for runtime problems
      */
     @Test
@@ -183,7 +183,7 @@ public class BasicOperationsTestCase {
 
     /**
      * JUnit Fixture: Tear Down the FSM.
-     * 
+     *
      * @throws FileSystemException for runtime problems
      */
     @After

Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ftp/test/FtpProviderTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ftp/test/FtpProviderTestCase.java?rev=1808390&r1=1808389&r2=1808390&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ftp/test/FtpProviderTestCase.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ftp/test/FtpProviderTestCase.java
Thu Sep 14 19:48:24 2017
@@ -78,7 +78,7 @@ public class FtpProviderTestCase extends
 
     /**
      * Creates and starts an embedded Apache FTP Server (MINA).
-     * 
+     *
      * @param rootDirectory the local FTP server rootDirectory
      * @param fileSystemFactory optional local FTP server FileSystemFactory
      * @throws FtpException

Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ftps/test/FtpsProviderImplicitTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ftps/test/FtpsProviderImplicitTestCase.java?rev=1808390&r1=1808389&r2=1808390&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ftps/test/FtpsProviderImplicitTestCase.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ftps/test/FtpsProviderImplicitTestCase.java
Thu Sep 14 19:48:24 2017
@@ -26,7 +26,7 @@ import org.apache.commons.vfs2.provider.
  *
  * TODO: Fails for concurrent access. Note, that the implicit mode is not standardized and
the protocol may differ
  * between the FTPS servers.
- * 
+ *
  * @see <a href="http://en.wikipedia.org/wiki/FTPS#Implicit">Wikipedia: FTPS/Implicit</a>
  */
 public class FtpsProviderImplicitTestCase extends AbstractFtpsProviderTestCase {

Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/sftp/test/SftpProviderTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/sftp/test/SftpProviderTestCase.java?rev=1808390&r1=1808389&r2=1808390&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/sftp/test/SftpProviderTestCase.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/sftp/test/SftpProviderTestCase.java
Thu Sep 14 19:48:24 2017
@@ -496,7 +496,7 @@ public class SftpProviderTestCase extend
 
     /**
      * Creates a pipe thread that connects an input to an output
-     * 
+     *
      * @param name The name of the thread (for debugging purposes)
      * @param in The input stream
      * @param out The output stream

Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/tar/test/LargeTarTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/tar/test/LargeTarTestCase.java?rev=1808390&r1=1808389&r2=1808390&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/tar/test/LargeTarTestCase.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/tar/test/LargeTarTestCase.java
Thu Sep 14 19:48:24 2017
@@ -87,7 +87,7 @@ public class LargeTarTestCase {
      * public void testFileCheck() throws Exception { String[] expectedFiles = { "plugins.tsv",
"languages.tsv",
      * "browser_type.tsv", "timezones.tsv", "color_depth.tsv", "resolution.tsv", "connection_type.tsv",
      * "search_engines.tsv", "javascript_version.tsv", "operating_systems.tsv", "country.tsv",
"browser.tsv" };
-     * 
+     *
      * fileCheck(expectedFiles, "tar:file://c:/temp/data/data/data-small.tar"); }
      */
 

Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java?rev=1808390&r1=1808389&r2=1808390&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java
Thu Sep 14 19:48:24 2017
@@ -140,7 +140,7 @@ public class FileLockTestCase {
     /**
      * This test checks whether we can modify an underlying Zip file after we have performed
IO operations on files
      * within it, but although we no longer have any FileObjects explicitly open.
-     * 
+     *
      * @throws Exception
      */
     @Test

Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/ZipFileObjectTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/ZipFileObjectTestCase.java?rev=1808390&r1=1808389&r2=1808390&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/ZipFileObjectTestCase.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/ZipFileObjectTestCase.java
Thu Sep 14 19:48:24 2017
@@ -63,7 +63,7 @@ public class ZipFileObjectTestCase {
     /**
      * Tests that when we read a file inside a file Zip and leave it open, we can still delete
the Zip after we clean up
      * the Zip file.
-     * 
+     *
      * @throws IOException
      */
     @Test
@@ -81,7 +81,7 @@ public class ZipFileObjectTestCase {
 
     /**
      * Tests that we can read more than one file within a Zip file, especially after closing
each FileObject.
-     * 
+     *
      * @throws IOException
      */
     @Test
@@ -111,7 +111,7 @@ public class ZipFileObjectTestCase {
     /**
      * Tests that we can get a stream from one file in a zip file, then close another file
from the same zip, then
      * process the initial input stream.
-     * 
+     *
      * @throws IOException
      */
     @Test
@@ -135,7 +135,7 @@ public class ZipFileObjectTestCase {
     /**
      * Tests that we can get a stream from one file in a zip file, then close another file
from the same zip, then
      * process the initial input stream.
-     * 
+     *
      * @throws IOException
      */
     @Test
@@ -161,7 +161,7 @@ public class ZipFileObjectTestCase {
     /**
      * Tests that we can resolve a file in a Zip file, then close the container zip, which
should still let us delete
      * the Zip file.
-     * 
+     *
      * @throws IOException
      */
     @Test

Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/AbstractProviderTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/AbstractProviderTestCase.java?rev=1808390&r1=1808389&r2=1808390&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/AbstractProviderTestCase.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/AbstractProviderTestCase.java
Thu Sep 14 19:48:24 2017
@@ -86,7 +86,7 @@ public abstract class AbstractProviderTe
 
     /**
      * creates a new uninitialized file system manager
-     * 
+     *
      * @throws Exception
      */
     protected DefaultFileSystemManager createManager() throws Exception {
@@ -141,7 +141,7 @@ public abstract class AbstractProviderTe
 
     /**
      * Sets the write test folder.
-     * 
+     *
      * @param folder
      */
     protected void setWriteFolder(final FileObject folder) {
@@ -275,7 +275,7 @@ public abstract class AbstractProviderTe
 
     /**
      * Builds the expected structure of the read tests folder.
-     * 
+     *
      * @throws FileSystemException (possibly)
      */
     protected FileInfo buildExpectedStructure() throws FileSystemException {

Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/LastModifiedTests.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/LastModifiedTests.java?rev=1808390&r1=1808389&r2=1808390&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/LastModifiedTests.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/LastModifiedTests.java
Thu Sep 14 19:48:24 2017
@@ -51,7 +51,7 @@ public class LastModifiedTests extends A
 
     /**
      * Tests FileSystem#getLastModTimeAccuracy for sane values.
-     * 
+     *
      * @throws FileSystemException if error occurred
      */
     public void testGetAccurary() throws FileSystemException {
@@ -65,7 +65,7 @@ public class LastModifiedTests extends A
 
     /**
      * Tests getting the last modified time of a folder.
-     * 
+     *
      * @throws FileSystemException if error occurred
      */
     public void testGetLastModifiedFolder() throws FileSystemException {
@@ -75,7 +75,7 @@ public class LastModifiedTests extends A
 
     /**
      * Tests getting the last modified time of a file.
-     * 
+     *
      * @throws FileSystemException if error occurred
      */
     public void testGetLastModifiedFile() throws FileSystemException {
@@ -85,7 +85,7 @@ public class LastModifiedTests extends A
 
     /**
      * Tests setting the last modified time of a folder.
-     * 
+     *
      * @throws FileSystemException if error occurred
      */
     public void testSetLastModifiedFolder() throws FileSystemException {
@@ -104,7 +104,7 @@ public class LastModifiedTests extends A
 
     /**
      * Tests setting the last modified time of file.
-     * 
+     *
      * @throws FileSystemException if error occurred
      */
     public void testSetLastModifiedFile() throws FileSystemException {

Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/ProviderWriteTests.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/ProviderWriteTests.java?rev=1808390&r1=1808389&r2=1808390&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/ProviderWriteTests.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/ProviderWriteTests.java
Thu Sep 14 19:48:24 2017
@@ -287,11 +287,11 @@ public class ProviderWriteTests extends
     /*
      * imario@apache.org leave this to some sort of LockManager public void testConcurrentReadWrite()
throws Exception {
      * final FileObject scratchFolder = createScratchFolder();
-     * 
+     *
      * final FileObject file = scratchFolder.resolveFile("file1.txt"); file.createFile();
-     * 
+     *
      * // Start reading from the file final InputStream instr = file.getContent().getInputStream();
-     * 
+     *
      * try { // Try to write to the file file.getContent().getOutputStream(); fail(); } catch
(final FileSystemException
      * e) { // Check error message assertSameMessage("vfs.provider/write-in-use.error", file,
e); } finally {
      * instr.close(); } }
@@ -303,17 +303,17 @@ public class ProviderWriteTests extends
     /*
      * imario@apache.org leave this to some sort of LockManager public void testConcurrentWrite()
throws Exception {
      * final FileObject scratchFolder = createScratchFolder();
-     * 
+     *
      * final FileObject file = scratchFolder.resolveFile("file1.txt"); file.createFile();
-     * 
+     *
      * // Start writing to the file final OutputStream outstr = file.getContent().getOutputStream();
final String
      * testContent = "some content"; try { // Write some content to the first stream
      * outstr.write(testContent.getBytes());
-     * 
+     *
      * // Try to open another output stream file.getContent().getOutputStream(); fail();
} catch (final
      * FileSystemException e) { // Check error message assertSameMessage("vfs.provider/write-in-use.error",
file, e); }
      * finally { outstr.close(); }
-     * 
+     *
      * // Make sure that the content written to the first stream is actually applied assertSameContent(testContent,
      * file); }
      */



Mime
View raw message