Java Doc for TestRdnWhiteBoxDevelopment.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » jndi » tests » javax » naming » ldap » whitebox » 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 » Apache Harmony Java SE » org package » org.apache.harmony.jndi.tests.javax.naming.ldap.whitebox 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.harmony.jndi.tests.javax.naming.ldap.whitebox.TestRdnWhiteBoxDevelopment

TestRdnWhiteBoxDevelopment
public class TestRdnWhiteBoxDevelopment extends TestCase (Code)

This class test is made to test all cases of package where the coverage was not 100%.

We are going to find here a lot cases from different classes, notice here that the conventional structure followed in the rest of the project is applied here.





Method Summary
public static  voidmain(String[] args)
    
public  voidtestEquals()
    

Test method for 'javax.naming.ldap.Rdn.Rdn(String)'

Here we are testing if the constructor can receive the special character "#".

final public  voidtestEqualsArrays()
    

Test method for 'javax.naming.ldap.Rdn.equals(Rdn)'

Here we are testing if the method can receive a Rdn with a different array.

final public  voidtestEscapedValue001()
    

Test method for 'javax.naming.ldap.Rdn.escapedValue(Object)'

Here we are testing if this method can escape some values.

final public  voidtestEscapedValue002()
    

Test method for 'javax.naming.ldap.Rdn.escapedValue(Object)'

Here we are testing if this method can escape some values.

final public  voidtestEscapedValue004()
    

Test method for 'javax.naming.ldap.Rdn.escapedValue(Object)'

Here we are testing if this method can escape some values.

final public  voidtestEscapedValue005()
    

Test method for 'javax.naming.ldap.Rdn.escapedValue(Object)'

Here we are testing if this method can escape some values.

public  voidtestGetValue001()
    

Test method for 'javax.naming.ldap.Rdn.getValue()'

Here we are testing if this method retrieves one of this Rdn's value.

public  voidtestHashCode()
    

Test method for 'javax.naming.ldap.Rdn.hashCode()'

Here we are testing if this method return the hash of an object distinct in the value of a string.

public  voidtestIgnoreEndingPlusChar()
    

Test method for 'javax.naming.ldap.Rdn.Rdn(String)'

Here we are testing if the constructor can receive the special character "+".

public  voidtestQuotedTypeCHECK()
    

Test method for 'javax.naming.ldap.Rdn.Rdn(String)'

Here we are testing if the constructor can receive the special character "\".

public  voidtestRDNComillas()
    

Test method to test if the constructor take literally what is between '"'.

public  voidtestRDNComillas2()
    

Test method to test if the constructor take literally what is between '"'.

public  voidtestRDNEqualsCompare()
    

Test method for 'javax.naming.ldap.Rdn.equals(Rdn)'

Here we are testing if the method can receive a Rdn.

public  voidtestRDNWrongHexValue()
    

Test method to test if the constructor can receive the correct length to a byte array.

public  voidtestRDNequals()
    

Test method for 'javax.naming.ldap.Rdn.equals(Rdn)'

Here we are testing if the method can receive a Rdn.

public  voidtestRDNequals2()
    

Test method for 'javax.naming.ldap.Rdn.equals(Rdn)'

Here we are testing if the method can receive a Rdn.

public  voidtestRDNequals3()
    

Test method for 'javax.naming.ldap.Rdn.equals(Rdn)'

Here we are testing if the method can receive a Rdn.

public  voidtestRdnEscapeValue()
     Here we are testing to send the escaped special characters and utf8.
public  voidtestRdnString()
    

Test method for 'javax.naming.ldap.Rdn.Rdn(String)'

Here we are testing if the constructor can receive several multivalued types.

public  voidtestToString001()
    

Test method for 'javax.naming.ldap.Rdn.toString()'

Here we are testing if this method returns the correct string.

public  voidtestToString002()
    

Test method for 'javax.naming.ldap.Rdn.toString()'

Here we are testing if this method returns the correct string.

public  voidtestToString003()
    

Test method for 'javax.naming.ldap.Rdn.toString()'

Here we are testing if this method returns the correct string.

public  voidtestToString004()
    

Test method for 'javax.naming.ldap.Rdn.toString()'

Here we are testing if this method returns the correct string.

public  voidtestUnescapedValue001()
    

Test method for 'javax.naming.ldap.Rdn.escapedValue(Object)'

Here we are testing if this method can escape some values.

public  voidtestUnescapedValue002()
    

Test method for 'javax.naming.ldap.Rdn.escapedValue(Object)'

Here we are testing if this method can escape some values.

public  voidtestUnescapedValue003()
    

Test method for 'javax.naming.ldap.Rdn.escapedValue(Object)'

Here we are testing if this method can escape some values.

final public  voidtestescapedValue003()
    

Test method for 'javax.naming.ldap.Rdn.escapedValue(Object)'

Here we are testing if this method can escape some values.




Method Detail
main
public static void main(String[] args)(Code)



testEquals
public void testEquals() throws Exception(Code)

Test method for 'javax.naming.ldap.Rdn.Rdn(String)'

Here we are testing if the constructor can receive the special character "#".

The expected result is that two rdns must not be the same.




testEqualsArrays
final public void testEqualsArrays() throws Exception(Code)

Test method for 'javax.naming.ldap.Rdn.equals(Rdn)'

Here we are testing if the method can receive a Rdn with a different array.

The expected result is that two rdns must not be the same.




testEscapedValue001
final public void testEscapedValue001()(Code)

Test method for 'javax.naming.ldap.Rdn.escapedValue(Object)'

Here we are testing if this method can escape some values.

The expected result is that the method return the string escaped.




testEscapedValue002
final public void testEscapedValue002()(Code)

Test method for 'javax.naming.ldap.Rdn.escapedValue(Object)'

Here we are testing if this method can escape some values.

The expected result is that the method return the string escaped.




testEscapedValue004
final public void testEscapedValue004()(Code)

Test method for 'javax.naming.ldap.Rdn.escapedValue(Object)'

Here we are testing if this method can escape some values.

The expected result is that the method return the string escaped.




testEscapedValue005
final public void testEscapedValue005()(Code)

Test method for 'javax.naming.ldap.Rdn.escapedValue(Object)'

Here we are testing if this method can escape some values.

The expected result is that the method return the string escaped.




testGetValue001
public void testGetValue001() throws Exception(Code)

Test method for 'javax.naming.ldap.Rdn.getValue()'

Here we are testing if this method retrieves one of this Rdn's value. In this case should raise an exception because the rdn is empty.

The expected result is an exception.




testHashCode
public void testHashCode() throws Exception(Code)

Test method for 'javax.naming.ldap.Rdn.hashCode()'

Here we are testing if this method return the hash of an object distinct in the value of a string.




testIgnoreEndingPlusChar
public void testIgnoreEndingPlusChar() throws Exception(Code)

Test method for 'javax.naming.ldap.Rdn.Rdn(String)'

Here we are testing if the constructor can receive the special character "+".

The expected result is a not null instance.




testQuotedTypeCHECK
public void testQuotedTypeCHECK()(Code)

Test method for 'javax.naming.ldap.Rdn.Rdn(String)'

Here we are testing if the constructor can receive the special character "\".

The expected result is a not null instance.




testRDNComillas
public void testRDNComillas() throws Exception(Code)

Test method to test if the constructor take literally what is between '"'.




testRDNComillas2
public void testRDNComillas2() throws Exception(Code)

Test method to test if the constructor take literally what is between '"'.




testRDNEqualsCompare
public void testRDNEqualsCompare() throws Exception(Code)

Test method for 'javax.naming.ldap.Rdn.equals(Rdn)'

Here we are testing if the method can receive a Rdn.

The expected result is that two rdns must be the same.




testRDNWrongHexValue
public void testRDNWrongHexValue()(Code)

Test method to test if the constructor can receive the correct length to a byte array.




testRDNequals
public void testRDNequals() throws Exception(Code)

Test method for 'javax.naming.ldap.Rdn.equals(Rdn)'

Here we are testing if the method can receive a Rdn.

The expected result is that two rdns must be the same.




testRDNequals2
public void testRDNequals2() throws Exception(Code)

Test method for 'javax.naming.ldap.Rdn.equals(Rdn)'

Here we are testing if the method can receive a Rdn.

The expected result is that two rdns must be the same.




testRDNequals3
public void testRDNequals3() throws Exception(Code)

Test method for 'javax.naming.ldap.Rdn.equals(Rdn)'

Here we are testing if the method can receive a Rdn.

The expected result is that two rdns must be the same.




testRdnEscapeValue
public void testRdnEscapeValue() throws Exception(Code)
Here we are testing to send the escaped special characters and utf8.



testRdnString
public void testRdnString() throws Exception(Code)

Test method for 'javax.naming.ldap.Rdn.Rdn(String)'

Here we are testing if the constructor can receive several multivalued types.

The expected result is a not null instance.




testToString001
public void testToString001() throws Exception(Code)

Test method for 'javax.naming.ldap.Rdn.toString()'

Here we are testing if this method returns the correct string.




testToString002
public void testToString002() throws Exception(Code)

Test method for 'javax.naming.ldap.Rdn.toString()'

Here we are testing if this method returns the correct string.




testToString003
public void testToString003() throws Exception(Code)

Test method for 'javax.naming.ldap.Rdn.toString()'

Here we are testing if this method returns the correct string.




testToString004
public void testToString004() throws Exception(Code)

Test method for 'javax.naming.ldap.Rdn.toString()'

Here we are testing if this method returns the correct string.




testUnescapedValue001
public void testUnescapedValue001()(Code)

Test method for 'javax.naming.ldap.Rdn.escapedValue(Object)'

Here we are testing if this method can escape some values.

The expected result is that the method return the string escaped.




testUnescapedValue002
public void testUnescapedValue002()(Code)

Test method for 'javax.naming.ldap.Rdn.escapedValue(Object)'

Here we are testing if this method can escape some values.

The expected result is that the method return the string escaped.




testUnescapedValue003
public void testUnescapedValue003()(Code)

Test method for 'javax.naming.ldap.Rdn.escapedValue(Object)'

Here we are testing if this method can escape some values.

The expected result is that the method return the string escaped.




testescapedValue003
final public void testescapedValue003()(Code)

Test method for 'javax.naming.ldap.Rdn.escapedValue(Object)'

Here we are testing if this method can escape some values.

The expected result is that the method return the string escaped.




w_w__w__.j_a_v___a2__s_.c__om___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.