File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/control/TestCookieManager.java | File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/control/TestCookieManager.java | |||
Method name: void testRootPath1()
|
Method name: void testMissingPath0()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | URL url = new URL("http://d.e.f/moo.html");↵ | 1 | URL url = new URL("http://d.e.f/goo.html");↵ | |
2 | man.addCookieFromHeader("test=moo;path=/", url);↵ | 2 | man.addCookieFromHeader("test=moo", url);↵ | |
3 | String s = man.getCookieHeaderForURL(new URL("http://d.e.f/goo.html"));↵ | 3 | String s = man.getCookieHeaderForURL(new URL("http://d.e.f/"));↵ | |
4 | assertNotNull(s);↵ | 4 | assertNotNull(s);↵ | |
5 | assertEquals("test=moo", s); | 5 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 17 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | URL url = new URL("http://d.e.f/moo.html"); |
| 1 | URL url = new URL("http://d.e.f/goo.html"); | ||||||||||
2 | man.addCookieFromHeader("test=moo;path=/", url); |
| 2 | man.addCookieFromHeader("test=moo", url); | ||||||||||
3 | String s = man.getCookieHeaderForURL(new URL("http://d.e.f/goo.html")); |
| 3 | String s = man.getCookieHeaderForURL(new URL("http://d.e.f/")); | ||||||||||
4 | assertNotNull(s); | 4 | assertNotNull(s); | |||||||||||
5 | assertEquals("test=moo", s); | 5 | assertEquals("test=moo", s); |
Row | Violation |
---|