--- /dev/null
+package org.onap.dcae.apod.analytics.aai;
+
+import static org.junit.Assert.assertNotNull;
+
+import org.junit.Test;
+
+
+public class AAIClientFactoryTest {
+
+
+
+ @Test
+ public void testCreate_shouldReturn_NotNull() {
+ AAIClientFactory result = AAIClientFactory.create();
+ assertNotNull(result);
+
+ }
+
+}
* @param <R> Validation Response type
* @param <V> Validator Type
*/
- public static <T extends CDAPAppSettings, R extends ValidationResponse<T>,
+ public static <T extends CDAPAppSettings, R extends ValidationResponse,
V extends CDAPAppSettingsValidator<T, R>> void validateSettings(@Nonnull final T appSettings,
@Nonnull final V appSettingsValidator) {
checkNotNull(appSettings, "App Settings must not be null");
*
* @author Rajiv Singla . Creation Date: 11/2/2016.
*/
-public interface CDAPAppSettingsValidator<T extends CDAPAppSettings, R extends ValidationResponse<T>>
+public interface CDAPAppSettingsValidator<T extends CDAPAppSettings, R extends ValidationResponse>
extends DCAEValidator {
/**
public static final Function<Schema, Schema.Type> SCHEMA_TO_TYPE_FUNCTION = new Function<Schema, Schema.Type>() {
@Override
- public Schema.Type apply(@Nonnull Schema schema) {
+ public Schema.Type apply(Schema schema) {
return schema.getType();
}
};
*
* @author Rajiv Singla . Creation Date: 10/24/2016.
*/
-public class GenericValidationResponse<T> implements ValidationResponse<T> {
+public class GenericValidationResponse<T> implements ValidationResponse {
private LinkedHashMap<String, String> errorMessageMap = new LinkedHashMap<>();
/**
* Validation Response contract
*
- * @param <T> Entity class type which is being validated
+ *
*
* @author Rajiv Singla . Creation Date: 10/24/2016.
*/
-public interface ValidationResponse<T> {
+public interface ValidationResponse {
/**
* Returns true if validation resulted in one or more errors