Package marauroa.functional

Examples of marauroa.functional.SimpleClient.connect()


            i = index++;
            SimpleClient client = new SimpleClient("client.properties");

            Thread.sleep(Math.abs(rand.nextInt() % 20) * 1000);

            client.connect("localhost", PORT);
            AccountResult resAcc = client.createAccount("testUsername" + i, "password","email");
            assertTrue("Account creation must not fail", !resAcc.failed());

            assertEquals("testUsername" + i, resAcc.getUsername());
            assertEquals(Result.OK_CREATED, resAcc.getResult());
View Full Code Here


          try {
            System.out.println("Initing client");
            int i = index++;
            SimpleClient client = new SimpleClient("client.properties");

            client.connect("localhost", PORT);

            AccountResult resAcc = client.createAccount("testUsername" + i, "password", "email");
            assertTrue("Account creation must not fail", !resAcc.failed());
            assertEquals("testUsername" + i, resAcc.getUsername());
View Full Code Here

      client = new SimpleClient("log4j.properties");
      client.connect("localhost", PORT);
      client.login("testUsername", "password");

      SimpleClient altClient = new SimpleClient("log4j.properties");
      altClient.connect("localhost", PORT);
      altClient.login("testUsername", "password");

      String[] characters = altClient.getCharacters();
      assertEquals(0, characters.length);
    } catch (Exception e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.