Image test and variablescontroller tests added

This commit is contained in:
2025-06-11 22:18:56 +02:00
parent 7d070075d6
commit 7c7e82b0e6

View File

@@ -71,8 +71,8 @@ class ArtisanConnectBackendApplicationTests {
@AfterEach
void cleanup() throws IOException {
logger.info("Sprzątanie po teście - usuwanie katalogu testowego: {}", testDirectory);
Files.walk(testDirectory)
.sorted(Comparator.reverseOrder())
try (var paths = Files.walk(testDirectory)) {
paths.sorted(Comparator.reverseOrder())
.forEach(path -> {
try {
Files.delete(path);
@@ -82,6 +82,7 @@ class ArtisanConnectBackendApplicationTests {
}
});
}
}
@Test
@DisplayName("Powinien poprawnie zapisać obraz w magazynie plików")