import retrofit2.Call;
import retrofit2.Response;
-import static junit.framework.TestCase.assertEquals;
-import static junit.framework.TestCase.assertNotNull;
-import static junit.framework.TestCase.assertTrue;
+import static junit.framework.TestCase.*;
import static org.mockito.Mockito.when;
import static org.onap.vfc.nfvo.driver.vnfm.svnfm.nokia.util.CbamUtils.SEPARATOR;
import static org.onap.vfc.nfvo.driver.vnfm.svnfm.nokia.vnfm.CatalogManager.getFileInZip;
throw new NoSuchElementException("The " + obj.getClass() + " does not have a filed with " + key + " annotation");
}
+ protected void assertBean(Class<?> clazz) {
+ assertEquals(1, clazz.getDeclaredConstructors().length);
+ Autowired annotation = clazz.getDeclaredConstructors()[0].getAnnotation(Autowired.class);
+ assertNotNull(annotation);
+ assertNotNull(clazz.getAnnotation(Component.class));
+ }
+
public static class VoidObservable {
boolean called = false;
ObservableFromCallable<Void> s = new ObservableFromCallable(new Callable() {
return s;
}
}
-
- protected void assertBean(Class<?> clazz){
- assertEquals(1, clazz.getDeclaredConstructors().length);
- Autowired annotation = clazz.getDeclaredConstructors()[0].getAnnotation(Autowired.class);
- assertNotNull(annotation);
- assertNotNull(clazz.getAnnotation(Component.class));
- }
}