1 %% The contents of this file are subject to the Mozilla Public License
2 %% Version 1.1 (the "License"); you may not use this file except in
3 %% compliance with the License. You may obtain a copy of the License at
4 %% http://www.mozilla.org/MPL/
6 %% Software distributed under the License is distributed on an "AS IS"
7 %% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
8 %% License for the specific language governing rights and limitations
11 %% The Original Code is the RabbitMQ Erlang Client.
13 %% The Initial Developers of the Original Code are LShift Ltd.,
14 %% Cohesive Financial Technologies LLC., and Rabbit Technologies Ltd.
16 %% Portions created by LShift Ltd., Cohesive Financial
17 %% Technologies LLC., and Rabbit Technologies Ltd. are Copyright (C)
18 %% 2007 LShift Ltd., Cohesive Financial Technologies LLC., and Rabbit
21 %% All Rights Reserved.
23 %% Contributor(s): Ben Hood <0x6e6562@gmail.com>.
26 -module(network_client_test).
28 -export([test_coverage/0]).
30 -include_lib("eunit/include/eunit.hrl").
33 test_util:basic_get_test(new_connection()).
35 basic_return_test() ->
36 test_util:basic_return_test(new_connection()).
39 test_util:basic_qos_test(new_connection()).
41 basic_recover_test() ->
42 test_util:basic_recover_test(new_connection()).
44 basic_consume_test() ->
45 test_util:basic_consume_test(new_connection()).
48 test_util:lifecycle_test(new_connection()).
51 test_util:basic_ack_test(new_connection()).
53 channel_lifecycle_test() ->
54 test_util:channel_lifecycle_test(new_connection()).
56 queue_unbind_test() ->
57 test_util:queue_unbind_test(new_connection()).
59 command_serialization_test() ->
60 test_util:command_serialization_test(new_connection()).
63 test_util:teardown_test(new_connection()).
66 test_util:rpc_test(new_connection()).
68 %%---------------------------------------------------------------------------
71 non_existent_exchange_test() ->
72 negative_test_util:non_existent_exchange_test(new_connection()).
74 %%---------------------------------------------------------------------------
78 amqp_connection:start("guest", "guest", "localhost").
81 rabbit_misc:enable_cover(),
83 rabbit_misc:report_cover().