File tree Expand file tree Collapse file tree 7 files changed +38
-46
lines changed
src/test/java/org/apache/ibatis/submitted/parent_childs Expand file tree Collapse file tree 7 files changed +38
-46
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2009-2013 The MyBatis Team
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
+ */
1
16
package org .apache .ibatis .submitted .parent_childs ;
2
17
3
18
public class Child {
Original file line number Diff line number Diff line change 1
1
--
2
- -- Copyright 2009-2012 The MyBatis Team
2
+ -- Copyright 2009-2013 The MyBatis Team
3
3
--
4
4
-- Licensed under the Apache License, Version 2.0 (the "License");
5
5
-- you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2009-2012 The MyBatis Team
2
+ * Copyright 2009-2013 The MyBatis Team
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2009-2013 The MyBatis Team
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
+ */
1
16
package org .apache .ibatis .submitted .parent_childs ;
2
17
3
18
import java .util .List ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2009-2012 The MyBatis Team
2
+ * Copyright 2009-2013 The MyBatis Team
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -57,12 +57,12 @@ public void shouldGetAUser() {
57
57
Mapper mapper = sqlSession .getMapper (Mapper .class );
58
58
List <Parent > parents = mapper .getParents ();
59
59
Assert .assertEquals (2 , parents .size ());
60
- Parent fistParent = parents .get (0 );
61
- Assert .assertEquals ("Jose" , fistParent .getName ());
62
- Assert .assertEquals (2 , fistParent .getChilds ().size ());
60
+ Parent firstParent = parents .get (0 );
61
+ Assert .assertEquals ("Jose" , firstParent .getName ());
62
+ Assert .assertEquals (2 , firstParent .getChilds ().size ());
63
63
Parent secondParent = parents .get (1 );
64
64
Assert .assertEquals ("Juan" , secondParent .getName ());
65
- Assert .assertEquals (0 , secondParent .getChilds ().size ());
65
+ Assert .assertEquals (0 , secondParent .getChilds ().size ()); // note an empty list is inyected
66
66
} finally {
67
67
sqlSession .close ();
68
68
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<!--
3
- Copyright 2009-2012 The MyBatis Team
3
+ Copyright 2009-2013 The MyBatis Team
4
4
5
5
Licensed under the Apache License, Version 2.0 (the "License");
6
6
you may not use this file except in compliance with the License.
You can’t perform that action at this time.
0 commit comments