Browse Source

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
pull/531/head
Sam Brannen 12 years ago
parent
commit
428aee5b72
  1. 5
      spring-test/src/main/java/org/springframework/test/context/TestContextManager.java

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

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2013 the original author or authors.
* Copyright 2002-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -242,7 +242,10 @@ public class TestContextManager { @@ -242,7 +242,10 @@ public class TestContextManager {
/**
* Determine the default {@link TestExecutionListener} classes.
* @deprecated Spring Framework 4.1 will introduce a bootstrap strategy for
* the TestContext framework at which point this method will be removed.
*/
@Deprecated
@SuppressWarnings("unchecked")
protected Set<Class<? extends TestExecutionListener>> getDefaultTestExecutionListenerClasses() {
Set<Class<? extends TestExecutionListener>> defaultListenerClasses = new LinkedHashSet<Class<? extends TestExecutionListener>>();

Loading…
Cancel
Save