Skip to content

Commit

Permalink
ResourceTest: EListAdapter equality tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Degueule committed Dec 1, 2015
1 parent 64b7b41 commit 4ad3cbd
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,23 @@ class ResourceTest
assertEquals(Diagnostic::OK, d.validate(root).severity)
}

@Test
def void testEListEquality() {
assertEquals(wRoot.ownedState, wRoot.ownedState)
assertEquals(root.ownedState, root.ownedState)
}

@Test
def void testEObjectEquality() {
assertEquals(root.ownedState.head, root.ownedState.head)
}

@Test
def void testDifferentReferencesContainingSameObjectsEquality() {
assertEquals(root.ownedState.get(2), root.finalState.head)
assertEquals(root.ownedState.get(3), root.finalState.get(1))
}

@Test
def void testEListContainsEObject() {
assertTrue(root.ownedState.contains(root.ownedState.head))
Expand Down

0 comments on commit 4ad3cbd

Please sign in to comment.