Fixing exception expectation on testcase

This commit is contained in:
Joakim Erdfelt 2012-07-02 07:49:34 -07:00
parent 9f23e89756
commit e60001fab8
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import static org.hamcrest.Matchers.*;
import java.nio.ByteBuffer;
import org.eclipse.jetty.websocket.ByteBufferAssert;
import org.eclipse.jetty.websocket.api.ProtocolException;
import org.eclipse.jetty.websocket.api.WebSocketBehavior;
import org.eclipse.jetty.websocket.api.WebSocketException;
import org.eclipse.jetty.websocket.api.WebSocketPolicy;
@ -87,7 +88,7 @@ public class TestABCase7_3
ByteBufferAssert.assertEquals("buffers do not match",expected,actual);
}
@Test (expected = IllegalArgumentException.class )
@Test(expected = ProtocolException.class)
public void testGenerateCloseWithStatusMaxReasonCase7_3_6()
{
StringBuilder message = new StringBuilder();