Skip to content

Commit 4aed64e

Browse files
committed
[SPR-8387] skeleton for DelegatingSmartContextLoaderTests.
1 parent 4cbe2ae commit 4aed64e

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/*
2+
* Copyright 2002-2011 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.springframework.test.context.support;
18+
19+
import org.junit.Test;
20+
21+
/**
22+
* Unit tests for {@link DelegatingSmartContextLoader}.
23+
*
24+
* @author Sam Brannen
25+
* @since 3.1
26+
*/
27+
public class DelegatingSmartContextLoaderTests {
28+
29+
private DelegatingSmartContextLoader loader = new DelegatingSmartContextLoader();
30+
31+
32+
// --- SmartContextLoader --------------------------------------------------
33+
34+
@Test
35+
public void generatesDefaults() {
36+
// TODO test generateDefaults().
37+
}
38+
39+
@Test
40+
public void processContextConfiguration() {
41+
// TODO test processContextConfiguration().
42+
}
43+
44+
@Test
45+
public void supports() {
46+
// TODO test supports().
47+
}
48+
49+
@Test
50+
public void loadContext() {
51+
// TODO test loadContext().
52+
}
53+
54+
// --- ContextLoader -------------------------------------------------------
55+
56+
@Test(expected = UnsupportedOperationException.class)
57+
public void processLocations() {
58+
loader.processLocations(getClass(), new String[0]);
59+
}
60+
61+
@Test(expected = UnsupportedOperationException.class)
62+
public void loadContextFromLocations() throws Exception {
63+
loader.loadContext(new String[0]);
64+
}
65+
66+
}

0 commit comments

Comments
 (0)