Posts

UnitTesting with JUnit5

Architecture Table of Contents Architecture JUnit Jupiter Module JUnit Platform Module JUnit Vintage Module Artifacts Until JUnit 5.4 From JUnit 5.4 Gradle Native Support Mockito3 Static Method Mocking @Mock Vs @InjectMock @Mock Vs @Spy Source Code Additional Scenarios Architecture Unlike JUnit4, JUnit5 promotes a better separation of concerns and comes with following modules. JUnit Jupiter Module JUnit Platform Module JUnit Vintage Module junit-jupiter-migration-support: - supports backward compatibility to select JUnit 4 Rules. JUnit Jupiter Module This Aggregator dependency( junit-jupiter ) Contains Three Child Dependencies API against which we write tests ( junit-jupiter-api ) Engine that understands it.( junit-jupiter-engine ) Jupiter Parameters library, which helps to write parameterized tests ( junit-jupiter-params ) If you are writing tests on JUnit5 this is the only dependency you need...

Blockchain Essentials

Top Crypto Currencies Blockchain is a system of recording information in a way that makes it difficult or impossible to change, hack or cheat the system. Blockchain is essentially a digital ledger of transactions that is duplicated and distributed across the entire network of computer systems on the blockchain. DAPP (decentralized application) , is a software application that runs on a distributed network. It is not hosted on a centralized server, but instead on a peer-to-peer decentralized network. DAPP = FrontEnd+ Smart Contract backend Backend code is written in an Ethereum specific language, including solidity , Serpent, and Vyper. Top Crypto Currencies Bitcoin Lite Coin Ethereum Top Exchanges Coinbase Binance Wazirx Ethereum wallets Bitcoin are stored in a digital wallet. which exists either in the cloud or on a users computer. Trust Ledger MyCrypto Metamask Blockchain platforms and Frame...