Sha256: fbfc2a83a71b802392cdaa34182606392b64eb8f483328bd0c851a1f71c248f1

Contents?: true

Size: 1.72 KB

Versions: 18

Compression:

Stored size: 1.72 KB

Contents

/**
 * $Id$
 * 
 * Author:: Francis Cianfrocca (gmail: blackhedd)
 * Homepage::  http://rubyeventmachine.com
 * Date:: 15 Jul 2007
 * 
 * See EventMachine and EventMachine::Connection for documentation and
 * usage examples.
 * 
 *
 *----------------------------------------------------------------------------
 *
 * Copyright (C) 2006-07 by Francis Cianfrocca. All Rights Reserved.
 * Gmail: blackhedd
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of either: 1) the GNU General Public License
 * as published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version; or 2) Ruby's License.
 * 
 * See the file COPYING for complete licensing information.
 *
 *---------------------------------------------------------------------------
 *
 * 
 */


package com.rubyeventmachine.tests;


import com.rubyeventmachine.*;
import java.net.*;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.Assert;

public class TestServers {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	
 	@Test
	public void testBadServerAddress() {
		final Application a = new Application();
		a.run (new Runnable() {
			public void run() {
				try {
					a.startServer(new InetSocketAddress ("100.100.100.100", 100), new DefaultConnectionFactory());
					Assert.fail ("was supposed to throw a reactor exception");
				} catch (EmReactorException e) {}
				a.stop();
			}
		});
	}
}

Version data entries

18 entries across 18 versions & 6 rubygems

Version Path
MattHulse-eventmachine-0.0.1 java/src/com/rubyeventmachine/tests/TestServers.java
MattHulse-eventmachine-0.12.10 java/src/com/rubyeventmachine/tests/TestServers.java
careo-eventmachine-0.12.5.1 java/src/com/rubyeventmachine/tests/TestServers.java
davidsmalley-eventmachine-0.12.3.1 java/src/com/rubyeventmachine/tests/TestServers.java
eventmachine-eventmachine-0.12.3 java/src/com/rubyeventmachine/tests/TestServers.java
eventmachine-eventmachine-0.12.4 java/src/com/rubyeventmachine/tests/TestServers.java
eventmachine-eventmachine-0.12.5 java/src/com/rubyeventmachine/tests/TestServers.java
eventmachine-eventmachine-0.12.6 java/src/com/rubyeventmachine/tests/TestServers.java
eventmachine-eventmachine-0.12.7 java/src/com/rubyeventmachine/tests/TestServers.java
eventmachine-eventmachine-0.12.8 java/src/com/rubyeventmachine/tests/TestServers.java
eventmachine-eventmachine-0.12.9 java/src/com/rubyeventmachine/tests/TestServers.java
libc-eventmachine-0.12.5.42 java/src/com/rubyeventmachine/tests/TestServers.java
libc-eventmachine-0.12.7.42 java/src/com/rubyeventmachine/tests/TestServers.java
eventmachine-0.12.4 java/src/com/rubyeventmachine/tests/TestServers.java
eventmachine-0.12.6 java/src/com/rubyeventmachine/tests/TestServers.java
eventmachine-0.12.8-java java/src/com/rubyeventmachine/tests/TestServers.java
eventmachine-0.12.6-java java/src/com/rubyeventmachine/tests/TestServers.java
eventmachine-0.12.8 java/src/com/rubyeventmachine/tests/TestServers.java