In any application, which solves real world problems, having problems in it’s unit tests – is least desirable thing. Good written tests are assets while badly written tests are burden to your application. In this tutorial, we will learn unit testing FIRST principles that can help make your tests shine and ensure that they pay […]
Web application’s performance is very critical for the success of the project, in any company and with any client. You should have a good thought process about possible bottlenecks and their solutions. Recently, Sriman, one of the blog reader, asked this question to me. Well, I assumed that answer to this question may help larger […]
If you are working in a project built on Spring, hibernate or JPA, and you want to unit test it’s data access layer (DAO) then information given in this tutorial may help you. As we are going to test DAO layer, we will need access to a database as well. But you may not be […]
Spring is a powerful framework, which uses a wide range of configuration options. Its best feature is that it provides enterprise services to Plain Old Java Objects (POJOs) called beans. Spring uses dependency injection (DI) to achieve simplification and increased testability. Spring beans, dependencies and the services needed by beans are specified in xml configuration […]
If you have been in software development for a long time, then you can easily relate with the importance of unit testing. Experts say that most of bugs can be captured in unit testing phase itself, which eventually get passed to quality teams, IF we follow these best practices for writing junit unit tests. “It’s […]
Learn SOLID principles in Java with examples. Single Responsibility Principle, Open Closed Principle, Liskov’s Substitution Principle, Interface Segregation Principle, Dependency Inversion Principle.
Learn the top Java exception handling best practices to follow in any Java application. These best practices are application for kind of java applications.
I am assuming that you know the basics of JUnit. If you do not have the basic knowledge, first read JUnit tutorial (Updated for JUnit 5). Now we will go through the junit best practices you must consider while writing your test cases. It’s overwhelmingly easy to write bad unit tests that add very little […]