Permalink
Browse files

Fixed the captures in the test for newer easymock

  • Loading branch information...
1 parent 92a8740 commit 89d12804b6ad51cb7f452632eb462636d8769364 @adamretter adamretter committed Jan 20, 2014
Showing with 9 additions and 7 deletions.
  1. +9 −7 test/src/org/exist/dom/SymbolTableTest.java
@@ -3,11 +3,13 @@
import org.exist.storage.io.VariableByteInput;
import org.easymock.Capture;
import org.exist.storage.io.VariableByteOutputStream;
-import org.easymock.classextension.EasyMock;
-import static org.easymock.classextension.EasyMock.expect;
-import static org.easymock.classextension.EasyMock.verify;
-import static org.easymock.classextension.EasyMock.replay;
-import static org.easymock.classextension.EasyMock.capture;
+import org.easymock.EasyMock;
+import static org.easymock.EasyMock.expect;
+import static org.easymock.EasyMock.verify;
+import static org.easymock.EasyMock.replay;
+import static org.easymock.EasyMock.captureByte;
+import static org.easymock.EasyMock.captureInt;
+import static org.easymock.EasyMock.capture;
import java.io.File;
import java.io.IOException;
import org.exist.EXistException;
@@ -118,8 +120,8 @@ public void write_and_read_are_balanced() throws EXistException, IOException {
final Capture<String> strCapture = new Capture<String>();
//write expectations
- mockOs.writeByte(capture(byteCapture));
- mockOs.writeInt(capture(intCapture));
+ mockOs.writeByte(captureByte(byteCapture));
+ mockOs.writeInt(captureInt(intCapture));
mockOs.writeUTF(capture(strCapture));
replay(mockOs);

0 comments on commit 89d1280

Please sign in to comment.