Skip to content

Commit

Permalink
Google Java Format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jul 21, 2022
1 parent 543d477 commit 700b55e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/test/java/com/jfposton/ytdlp/YtDlpResponseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public class YtDlpResponseTest {

@Test
public void getFormatsCanHandleLargerVideos() throws YtDlpException {
List<VideoFormat> videoFormats = YtDlp.getFormats("https://www.youtube.com/watch?v=jPTO3lcPpik");
List<VideoFormat> videoFormats =
YtDlp.getFormats("https://www.youtube.com/watch?v=jPTO3lcPpik");
assertTrue(videoFormats.get(0).getUrl().contains("jPTO3lcPpik"));
}
}
6 changes: 3 additions & 3 deletions src/test/java/com/jfposton/ytdlp/YtDlpTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ public class YtDlpTest {

private static final String DIRECTORY = System.getProperty("java.io.tmpdir");
private static final String VIDEO_URL = "https://www.youtube.com/watch?v=dQw4w9WgXcQ";
private static final String NONE_EXISTENT_VIDEO_URL = "https://www.youtube.com/watch?v=dQw4w9WgXcZ";
private static final String NONE_EXISTENT_VIDEO_URL =
"https://www.youtube.com/watch?v=dQw4w9WgXcZ";

/**
* @Test public void testUsingOwnExecutablePath() throws YtDlpException {
* YtDlp.setExecutablePath("/usr/bin/yt-dlp");
* Assert.assertNotNull(YtDlp.getVersion()); }
* YtDlp.setExecutablePath("/usr/bin/yt-dlp"); Assert.assertNotNull(YtDlp.getVersion()); }
*/
@Test
public void testGetVersion() throws YtDlpException {
Expand Down

0 comments on commit 700b55e

Please sign in to comment.