throw new RuntimeException("expected shutdown");
} catch (IOException e) {
}
// Test what happens when we just kill the connection
conn = new ConnectionFactory(){{setUri(uri);}}.newConnection();
ch = conn.createChannel();
((SocketFrameHandler)((AMQConnection)conn).getFrameHandler()).close();
}
public static void runProducerConsumerTest(String uri, int commitEvery)
throws IOException, URISyntaxException, NoSuchAlgorithmException, KeyManagementException