Browsed by
Month: February 2019

How to add canonical link to all routers in Angular 7?

How to add canonical link to all routers in Angular 7?

How to add canonical link to all routers in Angular 7? When I was trying to find a snippet on how to add canonical link to all routers in Angular 7, I was able to find out lot of snippets in stackoverflow, github and few other blogs. But When I tested all the snippets from both stackoverflow and github, below snippet is the one which is working properly without any issues in all the use cases. Few issues I observed…

Read More Read More

803 total views, 2 views today

Letsencrypt commands for beginners

Letsencrypt commands for beginners

Letsencrypt commands for beginners ./certbot-auto certificates: This commands lists down all the letsencrypt certificates (both active and expired) with exact path details where the certificate exists. ./certbot-auto certonly -a standalone: This command helps to create a new ssl certificate, if you want to create for more than one domain then enter the domain names with comma. ./letsencrypt-auto renew: This command renews all your existing letsencrypt certificates. This blog explain in detail about the letsencrypt certificate renewal process and stuffs. ./certbot-auto…

Read More Read More

626 total views, no views today

Mockito for beginners

Mockito for beginners

Mockito for beginners: Mockito is an open source testing framework, and it is a widely used for junit testing with mocking beans/repositories in frameworks such as spring mvc & spring boot. The framework allows the creation of test double objects in automated unit tests for the purpose of test-driven development or behavior-driven development. The framework’s name and logo are a play on mojitos, a type of drink. How to Mock void method ? doNothing().when(couponRepository).deleteAll(Mockito.any()); Note: deleteAll is a void method….

Read More Read More

660 total views, no views today