String getMethod(){
return getPropertyAsString(METHOD);
}
/**
* Method should add the JUnit testXXX method to the list at
* the end, since the sequence matters.
* @param methodName
*/
public void setMethod(String methodName){
setProperty(METHOD,methodName);
}
/**
* get the success message
*/
public String getSuccess(){
return getPropertyAsString(SUCCESS);
}
String getValue() {
return getPropertyAsString(VALUE);
}
/**
* set the value for this object.
*/
public synchronized void setValue(String value) {
this.setProperty(VALUE, value);
}
/**
* get the domain for this object.
*/
public synchronized String getDomain() {
return getPropertyAsString(DOMAIN);
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/control/Cookie.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | String getMethod(){↵ | | 1 | String getValue() {↵
|
2 | return getPropertyAsString(METHOD);↵ | | 2 | return getPropertyAsString(↵
|
3 | ↵ | | 3 | VALUE);↵
|
4 | }↵ | | 4 | }↵
|
|
5 | /**↵ | | 5 | /**↵
|
6 | * Method should add the JUnit testXXX method to the list at↵ | | 6 | * set↵
|
7 | * the end, since the sequence matters.↵ | | |
|
8 | * @param methodName↵ | | |
|
9 | ↵ | | 7 | the value for this object.↵
|
10 | */↵ | | 8 | */↵
|
11 | public void setMethod(String methodName){↵ | | 9 | public synchronized void setValue(String value) {↵
|
12 | setProperty(METHOD,methodName);↵ | | 10 | this.setProperty(↵
|
13 | }↵ | | |
|
14 | ↵ | | |
|
15 | ↵ | | 11 | VALUE, value);↵
|
| | | 12 | }↵
|
|
16 | /**↵ | | 13 | /**↵
|
17 | * get the success message↵ | | 14 | * get the ↵
|
18 | ↵ | | 15 | domain for this object.↵
|
19 | */↵ | | 16 | */↵
|
20 | public String getSuccess(){↵ | | 17 | public synchronized String getDomain() {↵
|
21 | return getPropertyAsString(SUCCESS);↵ | | 18 | return getPropertyAsString(↵
|
22 | ↵ | | 19 | DOMAIN);↵
|
23 | } | | 20 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |