001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.test.runners; 016 017 import java.util.Arrays; 018 import java.util.List; 019 020 import org.junit.runners.model.InitializationError; 021 022 /** 023 * @author Miguel Pastor 024 */ 025 public class NullThreadLocalCacheJUnitTestRunner 026 extends CustomizableSpringContextJUnitTestRunner { 027 028 public NullThreadLocalCacheJUnitTestRunner(Class<?> clazz) 029 throws InitializationError { 030 031 super(clazz); 032 } 033 034 @Override 035 public void afterApplicationContextInit() { 036 } 037 038 @Override 039 public List<String> getExtraConfigLocations() { 040 return Arrays.asList("META-INF/test-thread-local-spring.xml"); 041 } 042 043 }