01: /*
02: * Copyright 2007 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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.springunit.framework.tests;
18:
19: import org.junit.Test;
20: import org.springunit.framework.SpringUnitContext;
21: import org.springunit.framework.junit4.SpringUnit4Test;
22:
23: public class OneDeepUnit4Test extends SpringUnit4Test {
24:
25: @Test
26: public void testOne() throws Exception {
27: assertEquals(1, getObject("a"));
28: assertEquals(4, getObject("d"));
29: assertNull(getObject("g"));
30: }
31:
32: @Test
33: public void testFour() throws Exception {
34: assertNull(getObject("z"));
35: }
36:
37: public SpringUnitContext getOneDeepUnit4Test() {
38: return this .oneDeepUnit4Test;
39: }
40:
41: public void setOneDeepUnit4Test(SpringUnitContext oneDeepUnit4Test) {
42: this .oneDeepUnit4Test = oneDeepUnit4Test;
43: }
44:
45: private SpringUnitContext oneDeepUnit4Test;
46:
47: }
|