Skip to content

Commit

Permalink
Merge pull request #98 from usefulness/flus_plus_add_logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski authored Jun 19, 2023
2 parents 6fc2bf0 + 84a3c97 commit cd5cc09
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public void write(IIOMetadata streamMetadata, IIOImage image, ImageWriteParam pa

byte[] encodedData = encode(writeParam.getEncoderOptions(), ri);
output.write(encodedData);
output.flush();
}

private static byte[] encode(WebPEncoderOptions aOptions, RenderedImage aImage) throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import java.util.logging.Logger

class NativeLoaderTest {

private val log = Logger.getLogger(NativeLoaderTest::class.java.name)

@BeforeEach
fun setUp() {
NativeLoader.initialize()
check(NativeLoader.initialize())
}

@AfterEach
Expand All @@ -19,6 +22,7 @@ class NativeLoaderTest {

@Test
fun checkVersion() {
log.info("Native version is: ${NativeLoader.getVersion()}")
assertThat(NativeLoader.getVersion()).isNotEqualTo("unknown")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ package com.luciad.imageio.webp.internal

import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import java.util.logging.Logger

class OsInfoTest {

private val log = Logger.getLogger(OsInfoTest::class.java.name)

@Test
fun smokeTest() {
log.info("Native lib folder path for current OS is: ${OSInfo.getNativeLibFolderPathForCurrentOS()}")
assertThat(OSInfo.getNativeLibFolderPathForCurrentOS()).isNotEqualTo("/")
}
}

0 comments on commit cd5cc09

Please sign in to comment.