diff --git a/helpmehelpapplication/src/test/java/ntnu/systemutvikling/team6/scraper/LogoDownloaderTest.java b/helpmehelpapplication/src/test/java/ntnu/systemutvikling/team6/scraper/LogoDownloaderTest.java index f03da12..c933025 100644 --- a/helpmehelpapplication/src/test/java/ntnu/systemutvikling/team6/scraper/LogoDownloaderTest.java +++ b/helpmehelpapplication/src/test/java/ntnu/systemutvikling/team6/scraper/LogoDownloaderTest.java @@ -1,24 +1,21 @@ package ntnu.systemutvikling.team6.scraper; -import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; -import java.io.ByteArrayInputStream; -import java.io.InputStream; import java.nio.file.Files; import java.nio.file.Path; - -import static org.junit.jupiter.api.Assertions.*; +import org.junit.jupiter.api.Test; class LogoDownloaderTest { - @Test - void testConvertBlobToPNG() throws Exception { - byte[] fakeImage = new byte[] {1, 2, 3, 4, 5}; + @Test + void testConvertBlobToPNG() throws Exception { + byte[] fakeImage = new byte[] {1, 2, 3, 4, 5}; - LogoDownloader.convertBlobToPNG(fakeImage, "test-logo"); + LogoDownloader.convertBlobToPNG(fakeImage, "test-logo"); - Path path = Path.of("target", "logo", "test-logo.png"); + Path path = Path.of("target", "logo", "test-logo.png"); - assertTrue(Files.exists(path)); - assertArrayEquals(fakeImage, Files.readAllBytes(path)); - } -} \ No newline at end of file + assertTrue(Files.exists(path)); + assertArrayEquals(fakeImage, Files.readAllBytes(path)); + } +}