String getFilename() {
return getPropertyAsString(FILENAME);
}
public void setFilename(String newFilename) {
this.setProperty(FILENAME, newFilename);
}
public String getScript() {
return this.getPropertyAsString(SCRIPT);
}
String getSuccessCode(){
return getPropertyAsString(SUCCESSCODE);
}
/**
* set the succes code. the success code should
* be unique.
* @param code
*/
public void setSuccessCode(String code){
setProperty(SUCCESSCODE,code);
}
/**
* get the failure message
*/
public String getFailure(){
return getPropertyAsString(FAILURE);
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/java/sampler/BSFSampler.java
|
|
File path: /jakarta-jmeter-2.3.2/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | String getFilename() {↵ | | 1 | String getSuccessCode(){↵
|
2 | return getPropertyAsString(FILENAME);↵ | | 2 | return getPropertyAsString(SUCCESSCODE);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | public void setFilename(String newFilenam↵ | | 4 | /**↵
|
| | | 5 | * set the succes code. the success code should↵
|
| | | 6 | * be unique.↵
|
| | | 7 | * @param code↵
|
| | | 8 | */↵
|
5 | e) {↵ | | 9 | public void setSuccessCode(String code){↵
|
6 | this.setProperty(FILENAME, newFilename);↵ | | 10 | setProperty(↵
|
7 | }↵ | | |
|
|
8 | ↵ | | 11 | SUCCESSCODE,code);↵
|
| | | 12 | }↵
|
| | | 13 | ↵
|
| | | 14 | /**↵
|
| | | 15 | * get the failure message↵
|
| | | 16 | */↵
|
9 | public String getScript() {↵ | | 17 | public String getFailure(){↵
|
10 | return this.getPropertyAsString(SCRIPT);↵ | | 18 | return getPropertyAsString(↵
|
11 | ↵ | | 19 | FAILURE);↵
|
12 | } | | 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 |