Java Doc for TelnetClientTest.java in  » Net » Apache-commons-net-1.4.1 » org » apache » commons » net » telnet » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » Apache commons net 1.4.1 » org.apache.commons.net.telnet 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.commons.net.telnet.TelnetClientTest

TelnetClientTest
public class TelnetClientTest extends TestCase implements TelnetNotificationHandler(Code)
JUnit test class for TelnetClient.s Implements protocol compliance tests


author:
   Bruno D'Avanzo



Field Summary
protected  intnumdo
    
protected  intnumdont
    
protected  intnumwill
    
protected  intnumwont
    


Method Summary
 voidcloseConnection(TelnetTestSimpleServer server, TelnetClient client, int port)
    
protected  booleanequalBytes(byte a1, byte a2)
     Helper method.
public static  voidmain(String args)
     main for running the test.
public  voidreceivedNegotiation(int negotiation_code, int option_code)
     Callback method called when TelnetClient receives an option negotiation command.
protected  voidsetUp()
     open connections needed for the tests for the test.
protected  voidtearDown()
    
public  voidtestAYT()
    
public  voidtestDeleteOptionHandler()
    
public  voidtestInitial()
    
public  voidtestNotification()
    
public  voidtestOptionNegotiation()
    
public  voidtestOptionRenegotiation()
    
public  voidtestSetReaderThread()
    
public  voidtestSpy()
    

Field Detail
numdo
protected int numdo(Code)



numdont
protected int numdont(Code)



numwill
protected int numwill(Code)



numwont
protected int numwont(Code)





Method Detail
closeConnection
void closeConnection(TelnetTestSimpleServer server, TelnetClient client, int port)(Code)



equalBytes
protected boolean equalBytes(byte a1, byte a2)(Code)
Helper method. compares two arrays of int



main
public static void main(String args)(Code)
main for running the test.



receivedNegotiation
public void receivedNegotiation(int negotiation_code, int option_code)(Code)
Callback method called when TelnetClient receives an option negotiation command.


Parameters:
  negotiation_code - - type of negotiation command received(RECEIVED_DO, RECEIVED_DONT, RECEIVED_WILL, RECEIVED_WONT)


Parameters:
  option_code - - code of the option negotiated




setUp
protected void setUp() throws Exception(Code)
open connections needed for the tests for the test.



tearDown
protected void tearDown() throws Exception(Code)



testAYT
public void testAYT() throws Exception(Code)
test of AYT functionality



testDeleteOptionHandler
public void testDeleteOptionHandler() throws Exception(Code)
protocol compliance test in case of option handler removal



testInitial
public void testInitial() throws Exception(Code)
tests the initial condition of the sessions



testNotification
public void testNotification() throws Exception(Code)
test of option negotiation notification



testOptionNegotiation
public void testOptionNegotiation() throws Exception(Code)
protocol compliance test for option negotiation



testOptionRenegotiation
public void testOptionRenegotiation() throws Exception(Code)
protocol compliance test for option renegotiation



testSetReaderThread
public void testSetReaderThread() throws Exception(Code)
test of setReaderThread



testSpy
public void testSpy() throws Exception(Code)
test of Spy functionality



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.