From 0a05418a74966c893918282cb8f23d114b26d4da Mon Sep 17 00:00:00 2001 From: Jorge Rego Date: Mon, 6 Jun 2022 17:05:25 +0200 Subject: [PATCH] Added two extra tests to get getType function triggered for both coin types. --- .../hummingbird/registry/CryptoCoinInfoTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/test/java/com/sparrowwallet/hummingbird/registry/CryptoCoinInfoTest.java b/src/test/java/com/sparrowwallet/hummingbird/registry/CryptoCoinInfoTest.java index a89331d..7ad975f 100644 --- a/src/test/java/com/sparrowwallet/hummingbird/registry/CryptoCoinInfoTest.java +++ b/src/test/java/com/sparrowwallet/hummingbird/registry/CryptoCoinInfoTest.java @@ -17,6 +17,18 @@ public class CryptoCoinInfoTest { Assert.assertSame(coinInfo.getType().typeValue, CryptoCoinInfo.Type.ETHEREUM.typeValue); } + @Test + public void testBitcoinTypeCoinInfo() { + CryptoCoinInfo coinInfo = new CryptoCoinInfo(CryptoCoinInfo.Type.BITCOIN, CryptoCoinInfo.Network.MAINNET); + Assert.assertSame(coinInfo.getType(), CryptoCoinInfo.Type.BITCOIN); + } + + @Test + public void testEthereumTypeCoinInfo() { + CryptoCoinInfo coinInfo = new CryptoCoinInfo(CryptoCoinInfo.Type.ETHEREUM, CryptoCoinInfo.Network.MAINNET); + Assert.assertSame(coinInfo.getType(), CryptoCoinInfo.Type.ETHEREUM); + } + @Test public void testNullTypeCoinInfo() { CryptoCoinInfo coinInfo = new CryptoCoinInfo(null, CryptoCoinInfo.Network.MAINNET);