[bisq-network/bisq] List PickleProtocol (#2202)

lilcryptomoon notifications at github.com
Wed Jan 9 14:04:40 UTC 2019


lilcryptomoon commented on this pull request.



> + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with Bisq. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+package bisq.asset.coins;
+
+import bisq.asset.Coin;
+import bisq.asset.DefaultAddressValidator;
+
+public class PickleProtocol extends Coin {
+    public PickleProtocol() {
+
+        super("PickleProtocol", "PCK", new DefaultAddressValidator());

package bisq.asset.coins;

import bisq.asset.AbstractAssetWithDefaultValidatorTest;

import org.junit.Test;


public class PickleProtocolTest extends AbstractAssetWithDefaultValidatorTest {
    
    public PickleProtocolTest() {
    super(new PickleProtocol());
}
@ Test
    public void testValidAddresses() {
    assertValidAddress("NvkiGCx55W3cGPq3Q2kyQp4dncFypGH7DP");
    assertValidAddress("Nqbi28Hs4WwdqjdEEJWFPg3PryDFReuNgF");
    assertValidAddress("P7nkiTEHb7PWZVxi165tuBwjRhN5XsdYij");
}
@ Test
    public void testInvalidAddresses() {
    assertInvalidAddress("");
    assertInvalidAddress("Pqbi28Hs4WwdqjdEEJWFPg3PryDFReuNgF");
    assertInvalidAddress("N7nkiTEHb7PWZVxi165tuBwjRhN5XsdYij");
}
}


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/2202#discussion_r246392190
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20190109/64a72612/attachment.html>


More information about the bisq-github mailing list