@Test public void shouldReturnNullIfClassIsNotSupported() { String clazz = Integer.class.getSimpleName(); Object object = provider.lookup(clazz, "Platform commons", lookupFields); assertNull(object); }
@Override public Object lookup(String type, String lookupName, Map<String, String> lookupFields) { if(supports(type)) { return platformCommons; } return null; }
CommonsDataProvider extends AbstractDataProvider { @Override public Object lookup(String type, String lookupName, Map<String, String> lookupFields) { if(supports(type)) { return platformCommons; } return null; } }
CommonsDataProvider extends AbstractDataProvider { @Override public Object lookup(String type, String lookupName, Map<String, String> lookupFields) { if(supports(type)) { return platformCommons; } return null; } @Autowired  CommonsDataProvider(ResourceLoader resourceLoader); }
CommonsDataProvider extends AbstractDataProvider { @Override public Object lookup(String type, String lookupName, Map<String, String> lookupFields) { if(supports(type)) { return platformCommons; } return null; } @Autowired  CommonsDataProvider(ResourceLoader resourceLoader); @Autowired void setPlatformCommons(PlatformCommons platformCommons); @Override List<Class<?>> getSupportClasses(); @Override String getPackageRoot(); @Override String getName(); @Override Object lookup(String type, String lookupName, Map<String, String> lookupFields); }
CommonsDataProvider extends AbstractDataProvider { @Override public Object lookup(String type, String lookupName, Map<String, String> lookupFields) { if(supports(type)) { return platformCommons; } return null; } @Autowired  CommonsDataProvider(ResourceLoader resourceLoader); @Autowired void setPlatformCommons(PlatformCommons platformCommons); @Override List<Class<?>> getSupportClasses(); @Override String getPackageRoot(); @Override String getName(); @Override Object lookup(String type, String lookupName, Map<String, String> lookupFields);  }