Skip to content

Commit

Permalink
fixing invalid-directory test
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaum committed Apr 20, 2012
1 parent ed55ad1 commit 9399cae
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/
package org.neo4j.server.startup.healthcheck;

import static java.io.File.separator;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertThat;
Expand Down Expand Up @@ -104,8 +105,13 @@ public void shouldFailWhenEnabledWithBadLoggingLocation() throws Exception

private File badDirectory() throws Exception
{
<<<<<<< Updated upstream
File f = new File( "/does-not-exist?:" );

=======
File f = new File( File.createTempFile("anywhere","") + "/does/not/exist" );
System.err.println(f.getAbsolutePath());
>>>>>>> Stashed changes
if ( f.exists() || f.canWrite() )
{
throw new RuntimeException(
Expand Down

0 comments on commit 9399cae

Please sign in to comment.