@Test public void nativeLibMissing() throws Exception { String libPath = "/usr/missing"; System.setProperty(NativeLibValidationTask.NATIVE_LIB_PATH, libPath); NativeLibValidationTask task = new NativeLibValidationTask(); ValidationTaskResult result = task.validateImpl(ImmutableMap.of()); assertEquals(ValidationUtils.State.WARNING, result.getState()); assertThat(result.getResult(), containsString("Java native lib not found at /usr/missing")); assertThat(result.getAdvice(), containsString("Please check your path /usr/missing")); }
@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; }