-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor skip if nc4 is not present to static utility
- Loading branch information
haileyajohnson
committed
Sep 12, 2023
1 parent
0d0b033
commit bf3f505
Showing
7 changed files
with
32 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package thredds.util; | ||
|
||
import thredds.server.ncss.format.SupportedFormat; | ||
import ucar.nc2.ffi.netcdf.NetcdfClibrary; | ||
|
||
import static org.junit.Assume.assumeTrue; | ||
|
||
public class TestUtils { | ||
|
||
public static void skipTestIfNetCDF4NotPresent(SupportedFormat format) { | ||
if (format == SupportedFormat.NETCDF4) { | ||
skipTestIfNetCDF4NotPresent(); | ||
} | ||
} | ||
|
||
public static void skipTestIfNetCDF4NotPresent() { | ||
assumeTrue(NetcdfClibrary.isLibraryPresent()); | ||
} | ||
} |