@Test public void testCreateRemotePathDirectory() { final File notFile = mock(File.class); when(notFile.exists()).thenReturn(Boolean.TRUE); IllegalArgumentException e = assertThrows(IllegalArgumentException.class, () -> { FileAssistant.createRemotePath(notFile, mock(Environment.class)); }); assertThat(e.getMessage()).isEqualTo("File must be an actual file."); }
public static URI createRemotePath(final File localFile) { return createRemotePath(localFile, Environment.getEnvironment()); }
FileAssistant { public static URI createRemotePath(final File localFile) { return createRemotePath(localFile, Environment.getEnvironment()); } }
FileAssistant { public static URI createRemotePath(final File localFile) { return createRemotePath(localFile, Environment.getEnvironment()); } private  FileAssistant(); }
FileAssistant { public static URI createRemotePath(final File localFile) { return createRemotePath(localFile, Environment.getEnvironment()); } private  FileAssistant(); static URI createRemotePath(final File localFile); static URI createRemotePath(final File localFile, final Environment environment); }
FileAssistant { public static URI createRemotePath(final File localFile) { return createRemotePath(localFile, Environment.getEnvironment()); } private  FileAssistant(); static URI createRemotePath(final File localFile); static URI createRemotePath(final File localFile, final Environment environment);  }