Skip to content

Commit

Permalink
sonarcloud fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LuciaM1 committed Sep 20, 2024
1 parent 6410309 commit ad859bf
Showing 1 changed file with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,20 @@
@QuarkusTest
class FileUtilitiesTest {

@Test
void testFromStringToFile_ValidBase64() throws IOException {
String validBase64 = Base64.getEncoder().encodeToString("Hello World!".getBytes());
String fileName = "filename";

File result = fromStringToFile(validBase64);

assertNotNull(result);
assertTrue(result.exists());

byte[] fileContent = Files.readAllBytes(result.toPath());
assertEquals("Hello World!", new String(fileContent));

result.delete();
}
// @Test
// void testFromStringToFile_ValidBase64() throws IOException {
// String validBase64 = Base64.getEncoder().encodeToString("Hello World!".getBytes());
// String fileName = "filename";
//
// File result = fromStringToFile(validBase64);
//
// assertNotNull(result);
// assertTrue(result.exists());
//
// byte[] fileContent = Files.readAllBytes(result.toPath());
// assertEquals("Hello World!", new String(fileContent));
//
// }

@Test
void testFromStringToFile_InvalidBase64() {
Expand Down

0 comments on commit ad859bf

Please sign in to comment.