Package marauroa.functional

Examples of marauroa.functional.SimpleClient


   * @throws Exception
   */

  public void t5_1_chooseWrongCharacter() throws Exception {
    try {
      client = new SimpleClient("log4j.properties");
      client.connect("localhost", PORT);
      client.login("testUsername", "password");

      String[] characters = client.getCharacters();
      assertEquals(1, characters.length);
View Full Code Here


   * Test the perception management in game.
   */

  public void t6_receivePerceptions() throws Exception {
    try {
      client = new SimpleClient("log4j.properties");
      client.connect("localhost", PORT);
      client.login("testUsername", "password");

      String[] characters = client.getCharacters();
      assertEquals(1, characters.length);
View Full Code Here

   */

  @SuppressWarnings("deprecation")
  public void t7_testKeepAlive() throws Exception {
    try {
      client = new SimpleClient("log4j.properties");
      client = new SimpleClient("log4j.properties") {
        @Override
        public synchronized boolean loop(int delta) {
          try {
            netMan.getMessage(30);
          } catch (InvalidVersionException e) {
View Full Code Here

    }
  }

  public void t7_1_testKeepAliveWorks() throws Exception {
    try {
      client = new SimpleClient("log4j.properties");
      client.connect("localhost", PORT);
      client.login("testUsername", "password");

      String[] characters = client.getCharacters();
      assertEquals(1, characters.length);
View Full Code Here

    ConnectionValidator conn = rp.getValidator();

    conn.addBan("127.0.0.1", "0.0.0.0", 20);

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

      fail();
    } catch (BannedAddressException e) {
View Full Code Here

TOP

Related Classes of marauroa.functional.SimpleClient

Copyright © 2018 www.massapicom. 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.