public <T extends CdmBase> T load(T cdmEntity);
/**
- *
* @param cdmEntity
* @return returns true if the <code>cdmEntity</code> is cachable by the
* implementation
}
return null;
}
-}
+}
\ No newline at end of file
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
-import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
import org.junit.Before;
import org.junit.Test;
T cachedCdmEntity = getFromCache(cdmEntity);
if(cachedCdmEntity == null && isCachable(cdmEntity)) {
putToCache(cdmEntity);
- cachedCdmEntity = cdmEntity;
+ cachedCdmEntity = cdmEntity;
}
return cachedCdmEntity;
}
@SpringBeanByName
private AuthenticationManager authenticationManager;
+ /**
+ * @param token
+ */
private void setAuthentication(AbstractAuthenticationToken token) {
Authentication authentication = authenticationManager.authenticate(token);