KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > jmock > expectation > ExpectationListTest


1 /* Copyright (c) 2000-2004 jMock.org
2  */

3 package test.jmock.expectation;
4
5 import org.jmock.expectation.ExpectationList;
6
7
8 public class ExpectationListTest extends AbstractTestExpectationCollection
9 {
10
11     protected void setUp() throws Exception JavaDoc {
12         super.setUp();
13         myExpectation = new ExpectationList(getClass().getName());
14     }
15
16     // see super-class for tests
17

18     public void testSorted() {
19         myExpectation.addExpected("A");
20         myExpectation.addExpected("B");
21
22         myExpectation.addActual("A");
23         myExpectation.addActual("B");
24
25         myExpectation.verify();
26     }
27 }
28
Popular Tags