@@ -79,6 +79,18 @@ void gasOracleBuilder() {
79
79
80
80
assertNotNull (value );
81
81
assertEquals (Wei .ofWei (1000000000 ), value .getFastGasPriceInWei ());
82
+
83
+ GasOracle value2 = GasOracle .builder ()
84
+ .withFastGasPrice (Wei .ofWei (1000000000 ))
85
+ .withProposeGasPrice (Wei .ofWei (1000000000 ))
86
+ .withSafeGasPrice (Wei .ofWei (1000000000 ))
87
+ .withGasUsedRatio (Collections .singletonList (new BigDecimal (1 )))
88
+ .withLastBlock (1L )
89
+ .withSuggestBaseFee (1.0 )
90
+ .build ();
91
+ assertEquals (value , value2 );
92
+ assertEquals (value .hashCode (), value2 .hashCode ());
93
+ assertEquals (value .toString (), value2 .toString ());
82
94
}
83
95
84
96
@ Test
@@ -289,6 +301,16 @@ void ethSupplyBuilder() {
289
301
.build ();
290
302
assertNotNull (valueEmpty );
291
303
assertEquals (BigInteger .ZERO , valueEmpty .getTotal ().asWei ());
304
+
305
+ EthSupply value2 = EthSupply .builder ()
306
+ .withBurntFees (Wei .ofWei (1 ))
307
+ .withEth2Staking (Wei .ofWei (1 ))
308
+ .withEthSupply (Wei .ofWei (1 ))
309
+ .withWithdrawnTotal (Wei .ofWei (1 ))
310
+ .build ();
311
+ assertEquals (value , value2 );
312
+ assertEquals (value .hashCode (), value2 .hashCode ());
313
+ assertEquals (value .toString (), value2 .toString ());
292
314
}
293
315
294
316
@ Test
@@ -368,4 +390,13 @@ void blockProxyBuilder() {
368
390
assertNotNull (value );
369
391
assertEquals (BigInteger .valueOf (1 ), value .getGasUsed ().asWei ());
370
392
}
393
+
394
+ @ Test
395
+ void gasEstimate () {
396
+ GasEstimate gas1 = new GasEstimate (1 );
397
+ GasEstimate gas2 = new GasEstimate (1 );
398
+ assertEquals (gas1 , gas2 );
399
+ assertEquals (gas1 .hashCode (), gas2 .hashCode ());
400
+ assertEquals (gas1 .toString (), gas2 .toString ());
401
+ }
371
402
}
0 commit comments