@Test public void nativeLibPresent() throws Exception { File testLibDir = ValidationTestUtils.createTemporaryDirectory(); String testLibPath = testLibDir.getPath(); String libPath = testLibPath; System.setProperty(NativeLibValidationTask.NATIVE_LIB_PATH, libPath); NativeLibValidationTask task = new NativeLibValidationTask(); ValidationTaskResult result = task.validateImpl(ImmutableMap.of()); assertEquals(ValidationUtils.State.OK, result.getState()); }
@Override public ValidationTaskResult validateImpl(Map<String, String> optionMap) throws InterruptedException { return accessNativeLib(); }
NativeLibValidationTask extends AbstractValidationTask { @Override public ValidationTaskResult validateImpl(Map<String, String> optionMap) throws InterruptedException { return accessNativeLib(); } }
NativeLibValidationTask extends AbstractValidationTask { @Override public ValidationTaskResult validateImpl(Map<String, String> optionMap) throws InterruptedException { return accessNativeLib(); } NativeLibValidationTask(); }
NativeLibValidationTask extends AbstractValidationTask { @Override public ValidationTaskResult validateImpl(Map<String, String> optionMap) throws InterruptedException { return accessNativeLib(); } NativeLibValidationTask(); @Override String getName(); @Override ValidationTaskResult validateImpl(Map<String, String> optionMap); }
NativeLibValidationTask extends AbstractValidationTask { @Override public ValidationTaskResult validateImpl(Map<String, String> optionMap) throws InterruptedException { return accessNativeLib(); } NativeLibValidationTask(); @Override String getName(); @Override ValidationTaskResult validateImpl(Map<String, String> optionMap); static final String NATIVE_LIB_PATH; static final String NATIVE_LIB_PATH_SEPARATOR; }