Skip to content

Commit 428aee5

Browse files
committed
Deprecate getDefTELClasses in TestContextMgr
Since a dedicated bootstrap strategy will be introduced for the TestContext framework in Spring Framework 4.1, this commit officially deprecates TestContextManager.getDefaultTestExecutionListenerClasses() as a forewarning to developers or frameworks that may be using this obscure feature. Issue: SPR-11679
1 parent f7a17ad commit 428aee5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spring-test/src/main/java/org/springframework/test/context/TestContextManager.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -242,7 +242,10 @@ else if (!ObjectUtils.isEmpty(valueListenerClasses)) {
242242

243243
/**
244244
* Determine the default {@link TestExecutionListener} classes.
245+
* @deprecated Spring Framework 4.1 will introduce a bootstrap strategy for
246+
* the TestContext framework at which point this method will be removed.
245247
*/
248+
@Deprecated
246249
@SuppressWarnings("unchecked")
247250
protected Set<Class<? extends TestExecutionListener>> getDefaultTestExecutionListenerClasses() {
248251
Set<Class<? extends TestExecutionListener>> defaultListenerClasses = new LinkedHashSet<Class<? extends TestExecutionListener>>();

0 commit comments

Comments
 (0)