File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import scala.xml.transform._
4
4
import org .junit .Test
5
5
import org .junit .Assert .assertTrue
6
6
import org .junit .Assert .assertEquals
7
+ import org .junit .Assert .assertSame
7
8
import org .junit .experimental .theories .Theories
8
9
import org .junit .experimental .theories .Theory
9
10
import org .junit .experimental .theories .DataPoints
@@ -72,7 +73,7 @@ class ReuseNodesTest {
72
73
def transformReferentialEquality (rt: RuleTransformer ) = {
73
74
val original = <p ><lost /></p >
74
75
val tranformed = rt.transform(original)
75
- assertTrue (original eq tranformed)
76
+ assertSame (original, tranformed)
76
77
}
77
78
78
79
@ Theory
@@ -93,7 +94,7 @@ class ReuseNodesTest {
93
94
case " changed" => // do nothing expect this node to be changed
94
95
recursiveAssert(original.child,transformed.child)
95
96
case _ => {
96
- assertTrue (original eq transformed)
97
+ assertSame (original, transformed)
97
98
// No need to check for children, node being immuatable
98
99
// children can't be different if parents are referentially equal
99
100
}
You can’t perform that action at this time.
0 commit comments