This repository was archived by the owner on Jul 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
cypher-shell/src/test/java/org/neo4j/shell/cli Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1717import static java .lang .System .getProperty ;
1818import static org .junit .Assert .assertEquals ;
1919import static org .junit .Assert .assertNotNull ;
20+ import static org .mockito .Matchers .contains ;
2021import static org .mockito .Mockito .doReturn ;
2122import static org .mockito .Mockito .mock ;
2223import static org .mockito .Mockito .verify ;
@@ -46,11 +47,11 @@ public void defaultHistoryFile() throws Exception {
4647 @ Test
4748 public void noHistoryFileGivesMemoryHistory () throws Exception {
4849 Historian historian = FileHistorian .setupHistory (reader , logger ,
49- new File ( "/ temp/ aasbzs/ asfaz/asdfasvzx/asfdasdf/asdfasd" ));
50+ Paths . get ( " temp" , " aasbzs" , " asfaz" ). toFile ( ));
5051
5152 assertNotNull (historian );
5253
53- verify (logger ).printError ("Could not load history file. Falling back to session-based history.\n " +
54- "Failed to create directory for history: /temp/aasbzs/asfaz/asdfasvzx/asfdasdf" );
54+ verify (logger ).printError (contains ( "Could not load history file. Falling back to session-based history.\n " +
55+ "Failed to create directory for history" ) );
5556 }
5657}
You can’t perform that action at this time.
0 commit comments