diff options
Diffstat (limited to 'bundles/org.eclipse.equinox.console.tests/src/org/eclipse/equinox/console/telnet/NegotiationFinishedCallbackTests.java')
-rwxr-xr-x | bundles/org.eclipse.equinox.console.tests/src/org/eclipse/equinox/console/telnet/NegotiationFinishedCallbackTests.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.console.tests/src/org/eclipse/equinox/console/telnet/NegotiationFinishedCallbackTests.java b/bundles/org.eclipse.equinox.console.tests/src/org/eclipse/equinox/console/telnet/NegotiationFinishedCallbackTests.java new file mode 100755 index 000000000..225dfdb09 --- /dev/null +++ b/bundles/org.eclipse.equinox.console.tests/src/org/eclipse/equinox/console/telnet/NegotiationFinishedCallbackTests.java @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2011 SAP AG + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Lazar Kirchev, SAP AG - initial contribution + ******************************************************************************/ + +package org.eclipse.equinox.console.telnet; + +import org.junit.Assert; +import org.junit.Test; + +public class NegotiationFinishedCallbackTests { + + @Test + public void finishTest() throws Exception { + TelnetConnection telnetConnection = null; + telnetConnection = new TelnetConnection (null, null, null); + NegotiationFinishedCallback callback = new NegotiationFinishedCallback(telnetConnection); + callback.finished(); + Assert.assertTrue("Finished not called on console session", telnetConnection.isTelnetNegotiationFinished); + } +} |