Examples of BencodeString


Examples of net.flexbencode.bencode.BencodeString

        assertEquals(1L, d.getInt());
    }

    @Test
    public void testStringCreation () {
        BencodeString d = BencodeData.createBencodeString("abc");
        assertEquals(BencodeType.STRING, d.getType());
        assertEquals("abc", d.getString());
        assertEquals("abc", d.get());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.