Merge pull request #1135 from kekkyojin/totvstring-unittest
Add unit test for LbryUri.toTvString
This commit is contained in:
commit
2761857fe8
1 changed files with 13 additions and 0 deletions
|
@ -113,6 +113,19 @@ public class LbryUriTest {
|
||||||
assertEquals(expectedForChannel, obtained);
|
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
|
@NotNull
|
||||||
private LbryUri sinthesizeExpected() {
|
private LbryUri sinthesizeExpected() {
|
||||||
LbryUri expectedForChannel = new LbryUri();
|
LbryUri expectedForChannel = new LbryUri();
|
||||||
|
|
Loading…
Reference in a new issue