Add unit test for LbryUri.toTvString #1135

Merged
kekkyojin merged 1 commit from totvstring-unittest into master 2021-02-22 20:07:55 +01:00

View file

@ -113,6 +113,19 @@ public class LbryUriTest {
assertEquals(expectedForChannel, obtained);
}
@Test
public void lbryToTvString() {
LbryUri obtained = new LbryUri();
try {
obtained = LbryUri.parse("lbry://@lbry#3f/lbryturns4#6",false);
} catch (LbryUriException e) {
e.printStackTrace();
}
assertEquals("https://lbry.tv/@lbry:3f/lbryturns4:6", obtained.toTvString());
}
@NotNull
private LbryUri sinthesizeExpected() {
LbryUri expectedForChannel = new LbryUri();