1 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 { 12 super.setUp(); 13 myExpectation = new ExpectationList(getClass().getName()); 14 } 15 16 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 |