1
1
/*
2
- Copyright 2009-2014 Igor Polevoy
2
+ Copyright 2009-2015 Igor Polevoy
3
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
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
7
8
- http://www.apache.org/licenses/LICENSE-2.0
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
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.
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
15
*/
16
16
17
17
package org .javalite .activejdbc ;
18
18
19
- import org .javalite .activejdbc .LazyList ;
20
19
import org .javalite .activejdbc .test .ActiveJDBCTest ;
21
20
import org .javalite .activejdbc .test_models .*;
22
21
import org .junit .Test ;
@@ -40,7 +39,6 @@ public void shouldBeAbleToIncludeParentOne2Many() {
40
39
user = (Map )addresses .get (6 ).toMap ().get ("user" );
41
40
a (user .get ("first_name" )).shouldBeEqual ("John" );
42
41
}
43
-
44
42
45
43
@ Test
46
44
public void shouldBeAbleToIncludeChildrenOne2Many () {
@@ -163,6 +161,8 @@ public void shouldFixDefect163NeedsToIncludeChildrenAndParentsInTreeStructure(){
163
161
164
162
//should return cached parent in both cases
165
163
a (parent1 ).shouldBeTheSameAs (parent2 );
164
+
165
+ the (parent1 .get ("name" )).shouldBeEqual ("Car" );
166
166
}
167
167
168
168
@ Test (expected = IllegalArgumentException .class )
0 commit comments