Java Doc for TestCookieCompatibilitySpec.java in  » Net » Apache-common-HttpClient » org » apache » commons » httpclient » cookie » 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 common HttpClient » org.apache.commons.httpclient.cookie 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.commons.httpclient.cookie.TestCookieBase
   org.apache.commons.httpclient.cookie.TestCookieCompatibilitySpec

TestCookieCompatibilitySpec
public class TestCookieCompatibilitySpec extends TestCookieBase (Code)
Test cases for Cookie
author:
   BC Holmes
author:
   Rod Waldhoff
author:
   dIon Gillard
author:
   John Evans
author:
   Marc A. Saegesser
author:
   Oleg Kalnichevski
version:
   $Revision: 480424 $



Constructor Summary
public  TestCookieCompatibilitySpec(String name)
    

Method Summary
public static  Testsuite()
    
public  voidtestCookieMatch1()
    
public  voidtestCookieMatch2()
    
public  voidtestCookieMatch3()
    
public  voidtestCookieMatch4()
    
public  voidtestCookieMatch5()
    
public  voidtestCookieMismatch1()
    
public  voidtestCookieMismatch2()
    
public  voidtestCookieMismatch3()
    
public  voidtestCookieMismatch4()
    
public  voidtestCookieMismatch6()
    
public  voidtestCookieNameStartingWithDollarSign()
     Tests if cookie constructor rejects cookie name starting with $.
public  voidtestCookieNameWithBlanks()
     Tests if cookie constructor rejects cookie name containing blanks.
public  voidtestCookieWithComma()
     Tests if malformatted expires attribute is parsed correctly.
public  voidtestDateFormats()
     Tests several date formats.
public  voidtestDomainCaseInsensitivity()
     Tests whether domain attribute check is case-insensitive.
public  voidtestFormatInvalidCookie()
    
public  voidtestFormatInvalidCookies()
    
public  voidtestFormatOneCookie()
    
public  voidtestFormatSeveralCookies()
     Tests generic cookie formatting.
public  voidtestFormatSeveralCookiesAsHeader()
    
public  voidtestFormatZeroCookies()
    
public  voidtestGenericCookieFormatting()
     Tests generic cookie formatting.
public  voidtestGenericCookieFormattingAsHeader()
    
public  voidtestInvalidMatchDomain()
    
public  voidtestInvalidSecondDomainLevelCookieMatch1()
    
public  voidtestInvalidSecondDomainLevelCookieMatch2()
    
public  voidtestKeepCloverHappy()
    
public  voidtestMatchBlankHost()
    
public  voidtestMatchBlankPath()
    
public  voidtestMatchInvalidPort()
    
public  voidtestMatchNullCookie()
    
public  voidtestMatchNullCookieDomain()
    
public  voidtestMatchNullCookiePath()
    
public  voidtestMatchNullCookies()
    
public  voidtestMatchNullHost()
    
public  voidtestMatchNullPath()
    
public  voidtestMatchedCookiesOrder()
    
public  voidtestNullCookieValueFormatting()
     Tests if null cookie values are handled correctly.
public  voidtestParse1()
    
public  voidtestParse2()
    
public  voidtestParse3()
    
public  voidtestParseAttributeBlankDomain()
    
public  voidtestParseAttributeBlankPath()
    
public  voidtestParseAttributeInvalidAttrib()
    
public  voidtestParseAttributeInvalidCookie()
    
public  voidtestParseAttributeInvalidMaxAge()
    
public  voidtestParseAttributeNullDomain()
    
public  voidtestParseAttributeNullExpires()
    
public  voidtestParseAttributeNullMaxAge()
    
public  voidtestParseAttributeNullPath()
    
public  voidtestParseAttributeUnknownValue()
    
public  voidtestParseMultipleDifferentPaths()
    
public  voidtestParseMultipleSamePaths()
    
public  voidtestParseNoName()
    
public  voidtestParseNoValue()
    
public  voidtestParseRelativePath()
    
public  voidtestParseSimple()
    
public  voidtestParseSimple2()
    
public  voidtestParseWithAll()
    
public  voidtestParseWithBlankHost()
    
public  voidtestParseWithBlankPath()
    
public  voidtestParseWithComment()
    
public  voidtestParseWithDomain()
    
public  voidtestParseWithExpires()
    
public  voidtestParseWithInvalidHeader1()
    
public  voidtestParseWithInvalidHeader2()
    
public  voidtestParseWithNegativePort()
    
public  voidtestParseWithNullHost()
    
public  voidtestParseWithNullHostAndPath()
    
public  voidtestParseWithNullPath()
    
public  voidtestParseWithPath()
    
public  voidtestParseWithPathMismatch()
    
public  voidtestParseWithPathMismatch2()
    
public  voidtestParseWithQuotes()
    
public  voidtestParseWithSecure()
    
public  voidtestParseWithWhiteSpace()
    
public  voidtestParseWithWrongDomain()
    
public  voidtestQuotedExpiresAttribute()
    
public  voidtestSecondDomainLevelCookie()
     Tests if invalid second domain level cookie gets accepted in the browser compatibility mode.
public  voidtestSecondDomainLevelCookieMatch1()
    
public  voidtestSecondDomainLevelCookieMatch2()
    
public  voidtestSecondDomainLevelCookieMatch3()
    
public  voidtestSecurityError()
    
public  voidtestValidateBlankHost()
    
public  voidtestValidateBlankPath()
    
public  voidtestValidateInvalidCookieVersion()
    
public  voidtestValidateInvalidPort()
    
public  voidtestValidateNullHost()
    
public  voidtestValidateNullPath()
    


Constructor Detail
TestCookieCompatibilitySpec
public TestCookieCompatibilitySpec(String name)(Code)




Method Detail
suite
public static Test suite()(Code)



testCookieMatch1
public void testCookieMatch1() throws Exception(Code)



testCookieMatch2
public void testCookieMatch2() throws Exception(Code)



testCookieMatch3
public void testCookieMatch3() throws Exception(Code)



testCookieMatch4
public void testCookieMatch4() throws Exception(Code)



testCookieMatch5
public void testCookieMatch5() throws Exception(Code)



testCookieMismatch1
public void testCookieMismatch1() throws Exception(Code)



testCookieMismatch2
public void testCookieMismatch2() throws Exception(Code)



testCookieMismatch3
public void testCookieMismatch3() throws Exception(Code)



testCookieMismatch4
public void testCookieMismatch4() throws Exception(Code)



testCookieMismatch6
public void testCookieMismatch6() throws Exception(Code)



testCookieNameStartingWithDollarSign
public void testCookieNameStartingWithDollarSign() throws Exception(Code)
Tests if cookie constructor rejects cookie name starting with $.



testCookieNameWithBlanks
public void testCookieNameWithBlanks() throws Exception(Code)
Tests if cookie constructor rejects cookie name containing blanks.



testCookieWithComma
public void testCookieWithComma() throws Exception(Code)
Tests if malformatted expires attribute is parsed correctly.



testDateFormats
public void testDateFormats() throws Exception(Code)
Tests several date formats.



testDomainCaseInsensitivity
public void testDomainCaseInsensitivity() throws Exception(Code)
Tests whether domain attribute check is case-insensitive.



testFormatInvalidCookie
public void testFormatInvalidCookie() throws Exception(Code)



testFormatInvalidCookies
public void testFormatInvalidCookies() throws Exception(Code)



testFormatOneCookie
public void testFormatOneCookie() throws Exception(Code)



testFormatSeveralCookies
public void testFormatSeveralCookies() throws Exception(Code)
Tests generic cookie formatting.



testFormatSeveralCookiesAsHeader
public void testFormatSeveralCookiesAsHeader() throws Exception(Code)



testFormatZeroCookies
public void testFormatZeroCookies() throws Exception(Code)



testGenericCookieFormatting
public void testGenericCookieFormatting() throws Exception(Code)
Tests generic cookie formatting.



testGenericCookieFormattingAsHeader
public void testGenericCookieFormattingAsHeader() throws Exception(Code)



testInvalidMatchDomain
public void testInvalidMatchDomain() throws Exception(Code)



testInvalidSecondDomainLevelCookieMatch1
public void testInvalidSecondDomainLevelCookieMatch1() throws Exception(Code)



testInvalidSecondDomainLevelCookieMatch2
public void testInvalidSecondDomainLevelCookieMatch2() throws Exception(Code)



testKeepCloverHappy
public void testKeepCloverHappy() throws Exception(Code)



testMatchBlankHost
public void testMatchBlankHost() throws Exception(Code)



testMatchBlankPath
public void testMatchBlankPath() throws Exception(Code)



testMatchInvalidPort
public void testMatchInvalidPort() throws Exception(Code)



testMatchNullCookie
public void testMatchNullCookie() throws Exception(Code)



testMatchNullCookieDomain
public void testMatchNullCookieDomain() throws Exception(Code)



testMatchNullCookiePath
public void testMatchNullCookiePath() throws Exception(Code)



testMatchNullCookies
public void testMatchNullCookies() throws Exception(Code)



testMatchNullHost
public void testMatchNullHost() throws Exception(Code)



testMatchNullPath
public void testMatchNullPath() throws Exception(Code)



testMatchedCookiesOrder
public void testMatchedCookiesOrder() throws Exception(Code)



testNullCookieValueFormatting
public void testNullCookieValueFormatting()(Code)
Tests if null cookie values are handled correctly.



testParse1
public void testParse1() throws Exception(Code)
Test basic parse (with various spacings



testParse2
public void testParse2() throws Exception(Code)
Test no spaces



testParse3
public void testParse3() throws Exception(Code)
Test parse with quoted text



testParseAttributeBlankDomain
public void testParseAttributeBlankDomain() throws Exception(Code)



testParseAttributeBlankPath
public void testParseAttributeBlankPath() throws Exception(Code)



testParseAttributeInvalidAttrib
public void testParseAttributeInvalidAttrib() throws Exception(Code)



testParseAttributeInvalidCookie
public void testParseAttributeInvalidCookie() throws Exception(Code)



testParseAttributeInvalidMaxAge
public void testParseAttributeInvalidMaxAge() throws Exception(Code)



testParseAttributeNullDomain
public void testParseAttributeNullDomain() throws Exception(Code)



testParseAttributeNullExpires
public void testParseAttributeNullExpires() throws Exception(Code)



testParseAttributeNullMaxAge
public void testParseAttributeNullMaxAge() throws Exception(Code)



testParseAttributeNullPath
public void testParseAttributeNullPath() throws Exception(Code)



testParseAttributeUnknownValue
public void testParseAttributeUnknownValue() throws Exception(Code)



testParseMultipleDifferentPaths
public void testParseMultipleDifferentPaths() throws Exception(Code)



testParseMultipleSamePaths
public void testParseMultipleSamePaths() throws Exception(Code)



testParseNoName
public void testParseNoName() throws Exception(Code)



testParseNoValue
public void testParseNoValue() throws Exception(Code)



testParseRelativePath
public void testParseRelativePath() throws Exception(Code)



testParseSimple
public void testParseSimple() throws Exception(Code)



testParseSimple2
public void testParseSimple2() throws Exception(Code)



testParseWithAll
public void testParseWithAll() throws Exception(Code)



testParseWithBlankHost
public void testParseWithBlankHost() throws Exception(Code)



testParseWithBlankPath
public void testParseWithBlankPath() throws Exception(Code)



testParseWithComment
public void testParseWithComment() throws Exception(Code)



testParseWithDomain
public void testParseWithDomain() throws Exception(Code)



testParseWithExpires
public void testParseWithExpires() throws Exception(Code)



testParseWithInvalidHeader1
public void testParseWithInvalidHeader1() throws Exception(Code)



testParseWithInvalidHeader2
public void testParseWithInvalidHeader2() throws Exception(Code)



testParseWithNegativePort
public void testParseWithNegativePort() throws Exception(Code)



testParseWithNullHost
public void testParseWithNullHost() throws Exception(Code)



testParseWithNullHostAndPath
public void testParseWithNullHostAndPath() throws Exception(Code)



testParseWithNullPath
public void testParseWithNullPath() throws Exception(Code)



testParseWithPath
public void testParseWithPath() throws Exception(Code)



testParseWithPathMismatch
public void testParseWithPathMismatch() throws Exception(Code)



testParseWithPathMismatch2
public void testParseWithPathMismatch2() throws Exception(Code)



testParseWithQuotes
public void testParseWithQuotes() throws Exception(Code)



testParseWithSecure
public void testParseWithSecure() throws Exception(Code)



testParseWithWhiteSpace
public void testParseWithWhiteSpace() throws Exception(Code)



testParseWithWrongDomain
public void testParseWithWrongDomain() throws Exception(Code)



testQuotedExpiresAttribute
public void testQuotedExpiresAttribute() throws Exception(Code)



testSecondDomainLevelCookie
public void testSecondDomainLevelCookie() throws Exception(Code)
Tests if invalid second domain level cookie gets accepted in the browser compatibility mode.



testSecondDomainLevelCookieMatch1
public void testSecondDomainLevelCookieMatch1() throws Exception(Code)



testSecondDomainLevelCookieMatch2
public void testSecondDomainLevelCookieMatch2() throws Exception(Code)



testSecondDomainLevelCookieMatch3
public void testSecondDomainLevelCookieMatch3() throws Exception(Code)



testSecurityError
public void testSecurityError() throws Exception(Code)



testValidateBlankHost
public void testValidateBlankHost() throws Exception(Code)



testValidateBlankPath
public void testValidateBlankPath() throws Exception(Code)



testValidateInvalidCookieVersion
public void testValidateInvalidCookieVersion() throws Exception(Code)



testValidateInvalidPort
public void testValidateInvalidPort() throws Exception(Code)



testValidateNullHost
public void testValidateNullHost() throws Exception(Code)



testValidateNullPath
public void testValidateNullPath() throws Exception(Code)



Methods inherited from org.apache.commons.httpclient.cookie.TestCookieBase
public static Cookie[] cookieParse(CookieSpec parser, String host, int port, String path, boolean isSecure, Header setHeader) throws MalformedCookieException(Code)(Java Doc)

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