fixed tests
This commit is contained in:
		
							parent
							
								
									73a94fcc7c
								
							
						
					
					
						commit
						aee94a761e
					
				
					 1 changed files with 19 additions and 16 deletions
				
			
		|  | @ -22,6 +22,7 @@ import org.apache.commons.lang3.StringUtils; | ||||||
| import org.slf4j.Logger; | import org.slf4j.Logger; | ||||||
| import org.slf4j.LoggerFactory; | import org.slf4j.LoggerFactory; | ||||||
| import org.springframework.context.annotation.Lazy; | import org.springframework.context.annotation.Lazy; | ||||||
|  | import org.springframework.context.event.EventListener; | ||||||
| import org.springframework.stereotype.Service; | import org.springframework.stereotype.Service; | ||||||
| 
 | 
 | ||||||
| import ch.ethz.seb.sebserver.gbl.Constants; | import ch.ethz.seb.sebserver.gbl.Constants; | ||||||
|  | @ -73,22 +74,24 @@ public class LmsAPIServiceImpl implements LmsAPIService { | ||||||
|         this.templateFactories = new EnumMap<>(factories); |         this.templateFactories = new EnumMap<>(factories); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
| //    /** Listen to LmsSetupChangeEvent to release an affected LmsAPITemplate from cache |     /** Listen to LmsSetupChangeEvent to release an affected LmsAPITemplate from cache | ||||||
| //     * |      * | ||||||
| //     * @param event the event holding the changed LmsSetup */ |      * @param event the event holding the changed LmsSetup */ | ||||||
| //    @EventListener |     @EventListener | ||||||
| //    public void notifyLmsSetupChange(final LmsSetupChangeEvent event) { |     public void notifyLmsSetupChange(final LmsSetupChangeEvent event) { | ||||||
| //        final LmsSetup lmsSetup = event.getLmsSetup(); |         final LmsSetup lmsSetup = event.getLmsSetup(); | ||||||
| //        if (lmsSetup == null) { |         if (lmsSetup == null) { | ||||||
| //            return; |             return; | ||||||
| //        } |         } | ||||||
| // | 
 | ||||||
| //        if (log.isDebugEnabled()) { |         if (log.isDebugEnabled()) { | ||||||
| //            log.debug("LmsSetup changed. Update cache by removing eventually used references"); |             log.debug("LmsSetup changed. Update cache by removing eventually used references"); | ||||||
| //        } |         } | ||||||
| // | 
 | ||||||
| //        this.cache.remove(new CacheKey(lmsSetup.getModelId(), 0)); |         System.out.println("++++++++++++++++++++++++++++ remove: " + lmsSetup); | ||||||
| //    } | 
 | ||||||
|  |         this.cache.remove(new CacheKey(lmsSetup.getModelId(), 0)); | ||||||
|  |     } | ||||||
| 
 | 
 | ||||||
|     @Override |     @Override | ||||||
|     public void cleanup() { |     public void cleanup() { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 anhefti
						anhefti