#include <stdio.h>
#include <unistd.h>
#include <glib.h>

#include <wocky/wocky-xmpp-connection.h>
#include <wocky/wocky-transport.h>
#include "test-transport.h"

#include <check.h>

START_TEST (test_instantiation)
{
  WockyXmppConnection *connection;
  TestTransport *transport;

  g_type_init();

  transport = test_transport_new(NULL, NULL);
  connection = wocky_xmpp_connection_new(WOCKY_TRANSPORT(transport));

  fail_if (connection == NULL);

  connection = wocky_xmpp_connection_new(NULL);

  fail_if (connection == NULL);
}
END_TEST

TCase *
make_wocky_xmpp_connection_tcase (void)
{
    TCase *tc = tcase_create ("XMPP Connection");
    tcase_add_test (tc, test_instantiation);
    return tc;
}

Add a testcase for WockyXmppConnection and check its istantiation
Add a testcase for WockyXmppConnection and check its istantiation

20070613140235-f974e-38a23919dc403a05ad6852760c6b13bd9ad2e6f5.gz
