Sha256: 273b6225827f1e838514c40a7e4c816ef5f35f665b51cb5a3aef0b40ead7ea82

Contents?: true

Size: 1.77 KB

Versions: 65

Compression:

Stored size: 1.77 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 com.rubyeventmachine.application.*;
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

65 entries across 65 versions & 8 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java
classiccms-0.7.4 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java
classiccms-0.7.3 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java
classiccms-0.7.2 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java
classiccms-0.7.1 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java
classiccms-0.7.0 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java
classiccms-0.6.9 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java
classiccms-0.6.8 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java
classiccms-0.6.7 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java
classiccms-0.6.6 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java
classiccms-0.6.5 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java
classiccms-0.6.4 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java
classiccms-0.6.3 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java
classiccms-0.6.2 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java
classiccms-0.6.1 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java
classiccms-0.6.0 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java
classiccms-0.5.17 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java
classiccms-0.5.16 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java
classiccms-0.5.15 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java
classiccms-0.5.14 vendor/bundle/gems/eventmachine-0.12.10/java/src/com/rubyeventmachine/tests/TestServers.java