@@ -89,10 +89,10 @@ private void testAlternateLockDir(final LockableFileWriter lfw1) {
8989
9090 // try to open a second writer
9191 try (LockableFileWriter lfw2 = new LockableFileWriter (file , StandardCharsets .UTF_8 , true , altLockDir .getAbsolutePath ())) {
92- fail ("Somehow able to open a locked file. " );
92+ fail ("Somehow able to open a locked file." );
9393 } catch (final IOException ioe ) {
9494 final String msg = ioe .getMessage ();
95- assertTrue (msg .startsWith ("Can't write file, lock " ), "Exception message does not start correctly. " );
95+ assertTrue (msg .startsWith ("Can't write file, lock " ), "Exception message does not start correctly." );
9696 assertTrue (file .exists ());
9797 assertTrue (altLockFile .exists ());
9898 }
@@ -163,20 +163,20 @@ public void testFileLocked() throws IOException {
163163
164164 // try to open a second writer
165165 try (LockableFileWriter lfw2 = new LockableFileWriter (file )) {
166- fail ("Somehow able to open a locked file. " );
166+ fail ("Somehow able to open a locked file." );
167167 } catch (final IOException ioe ) {
168168 final String msg = ioe .getMessage ();
169- assertTrue (msg .startsWith ("Can't write file, lock " ), "Exception message does not start correctly. " );
169+ assertTrue (msg .startsWith ("Can't write file, lock " ), "Exception message does not start correctly." );
170170 assertTrue (file .exists ());
171171 assertTrue (lockFile .exists ());
172172 }
173173
174174 // try to open a third writer
175175 try (LockableFileWriter lfw3 = new LockableFileWriter (file )) {
176- fail ("Somehow able to open a locked file. " );
176+ fail ("Somehow able to open a locked file." );
177177 } catch (final IOException ioe ) {
178178 final String msg = ioe .getMessage ();
179- assertTrue (msg .startsWith ("Can't write file, lock " ), "Exception message does not start correctly. " );
179+ assertTrue (msg .startsWith ("Can't write file, lock " ), "Exception message does not start correctly." );
180180 assertTrue (file .exists ());
181181 assertTrue (lockFile .exists ());
182182 }
0 commit comments