Assertions in JUnit are used to verify that a method returns the expected result. If an assertion fails, it indicates a problem in the code. Assertions help ensure that individual components function correctly, which is fundamental in building reliable software. For example, in a method that calculates the total price of a shopping cart, you might assert that the total is as expected for given item prices and quantities.