Applying testing annotations

Report a typo

Match the numbers with annotations to make the following testing class correct.

{1}
{2}({"/schema.sql", "/data.sql"})
class ApplicationTests {

    {3}
    private UserRepository userRepository;

    {4}
    void testDefiningSizeOfTable() {
        User user = userRepository.findByName("Jack");
        assertEquals("Jack", user.getName());
    }
}
Match the items from left and right columns
{1}
{2}
{3}
{4}
@DataJpaTest
@Sql
@Test
@Autowired
___

Create a free account to access the full topic