Simplify legacy JUnit 3.8 based tests in spring-orm

This is in preparation for a migration from JUnit 3 to JUnit 4.

Issue: SPR-13514, SPR-13515
This commit is contained in:
Sam Brannen
2015-09-28 01:19:27 +02:00
parent d5ee787e1e
commit 3dcf8c1712
22 changed files with 273 additions and 903 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2014 the original author or authors.
* Copyright 2002-2015 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.
@@ -17,7 +17,7 @@
package org.springframework.context.annotation.ltw;
/**
* Test to ensure that component scanning work with load-time weaver.
* Test to ensure that component scanning works with load-time weaver.
* See SPR-3873 for more details.
*
* @author Ramnivas Laddad
@@ -25,13 +25,13 @@ package org.springframework.context.annotation.ltw;
@SuppressWarnings("deprecation")
public class ComponentScanningWithLTWTests extends org.springframework.test.jpa.AbstractJpaTests {
public ComponentScanningWithLTWTests() {
{
setDependencyCheck(false);
}
@Override
protected String getConfigPath() {
return "ComponentScanningWithLTWTests.xml";
protected String[] getConfigPaths() {
return new String[] { "ComponentScanningWithLTWTests.xml" };
}
public void testLoading() {