|
1 |
| -package org.quinnandrews.spring.local.postgresql; |
| 1 | +package io.github.quinnandrews.spring.local.postgresql; |
2 | 2 |
|
3 | 3 | import com.zaxxer.hikari.HikariDataSource;
|
4 |
| -import org.junit.jupiter.api.MethodOrderer; |
5 |
| -import org.junit.jupiter.api.Order; |
6 |
| -import org.junit.jupiter.api.Test; |
7 |
| -import org.junit.jupiter.api.TestMethodOrder; |
8 |
| -import org.quinnandrews.spring.local.postgresql.application.Application; |
9 |
| -import org.quinnandrews.spring.local.postgresql.application.data.guitarpedals.repository.GuitarPedalRepository; |
| 4 | +import io.github.quinnandrews.spring.local.postgresql.application.Application; |
| 5 | +import io.github.quinnandrews.spring.local.postgresql.application.data.guitarpedals.repository.GuitarPedalRepository; |
| 6 | +import org.junit.jupiter.api.*; |
10 | 7 | import org.springframework.beans.factory.annotation.Autowired;
|
11 | 8 | import org.springframework.boot.test.context.SpringBootTest;
|
12 | 9 | import org.springframework.data.domain.Sort;
|
@@ -79,12 +76,12 @@ void guitarPedalRepository_initialized_dataAccessible() {
|
79 | 76 | // and the database contains the three pedals
|
80 | 77 | assertEquals(3, guitarPedalRepository.count());
|
81 | 78 | final var pedals = guitarPedalRepository.findAll(Sort.by("name"));
|
82 |
| - assertEquals(3L, pedals.get(0).getId()); |
83 |
| - assertEquals("Catalinbread Soft Focus Reverb", pedals.get(0).getName()); |
84 |
| - assertEquals(1L, pedals.get(1).getId()); |
85 |
| - assertEquals("Electro-Harmonix Big Muff Fuzz", pedals.get(1).getName()); |
86 |
| - assertEquals(2L, pedals.get(2).getId()); |
87 |
| - assertEquals("Strymon Deco: Tape Saturation and Double Tracker", pedals.get(2).getName()); |
| 79 | + Assertions.assertEquals(3L, pedals.get(0).getId()); |
| 80 | + Assertions.assertEquals("Catalinbread Soft Focus Reverb", pedals.get(0).getName()); |
| 81 | + Assertions.assertEquals(1L, pedals.get(1).getId()); |
| 82 | + Assertions.assertEquals("Electro-Harmonix Big Muff Fuzz", pedals.get(1).getName()); |
| 83 | + Assertions.assertEquals(2L, pedals.get(2).getId()); |
| 84 | + Assertions.assertEquals("Strymon Deco: Tape Saturation and Double Tracker", pedals.get(2).getName()); |
88 | 85 | }
|
89 | 86 |
|
90 | 87 | @Test
|
|
0 commit comments