mirror of
https://github.com/sparrowwallet/hummingbird.git
synced 2024-11-02 10:36:44 +00:00
Added two extra tests to get getType function triggered for both coin types.
This commit is contained in:
parent
236f91a7e0
commit
0a05418a74
1 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue