Image test and variablescontroller tests added
This commit is contained in:
@@ -71,8 +71,8 @@ class ArtisanConnectBackendApplicationTests {
|
|||||||
@AfterEach
|
@AfterEach
|
||||||
void cleanup() throws IOException {
|
void cleanup() throws IOException {
|
||||||
logger.info("Sprzątanie po teście - usuwanie katalogu testowego: {}", testDirectory);
|
logger.info("Sprzątanie po teście - usuwanie katalogu testowego: {}", testDirectory);
|
||||||
Files.walk(testDirectory)
|
try (var paths = Files.walk(testDirectory)) {
|
||||||
.sorted(Comparator.reverseOrder())
|
paths.sorted(Comparator.reverseOrder())
|
||||||
.forEach(path -> {
|
.forEach(path -> {
|
||||||
try {
|
try {
|
||||||
Files.delete(path);
|
Files.delete(path);
|
||||||
@@ -82,6 +82,7 @@ class ArtisanConnectBackendApplicationTests {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@DisplayName("Powinien poprawnie zapisać obraz w magazynie plików")
|
@DisplayName("Powinien poprawnie zapisać obraz w magazynie plików")
|
||||||
|
|||||||
Reference in New Issue
Block a user