TEXT   141
public class ValidateResourcesTest
Guest on 28th November 2024 04:47:43 PM


  1. package io.github.checkleak.maven;
  2.  
  3. import io.github.checkleak.core.CheckLeak;
  4. import org.junit.jupiter.api.Assertions;
  5. import org.junit.jupiter.api.Test;
  6.  
  7. import java.io.InputStream;
  8.  
  9. public class ValidateResourcesTest {
  10.  
  11.     @Test
  12.     public void testValidateResources() throws Exception {
  13.         try (InputStream inputStream = CheckLeak.class.getResourceAsStream(
  14.                 "/platforms-lib/darwin-aarch64/libcheckleak.dylib")) {
  15.             Assertions.assertNotNull(inputStream);
  16.         }
  17.     }
  18. }

Raw Paste

Login or Register to edit or fork this paste. It's free.