String getClassname()
{
return getPropertyAsString(CLASSNAME);
}
/**
* Set the string label used to create an instance of the
* test with the string constructor.
* @param constr
*/
public void setConstructorString(String constr)
{
setProperty(CONSTRUCTORSTRING,constr);
}
/**
* get the string passed to the string constructor
*/
public String getConstructorString()
{
return getPropertyAsString(CONSTRUCTORSTRING);
String getConnectionFactory() {
return getPropertyAsString(CONN_FACTORY);
}
/**
* set the topic
*
* @param topic
*/
public void setTopic(String topic) {
setProperty(TOPIC, topic);
}
/**
* return the topic used for the benchmark
*
* @return the topic
*/
public String getTopic() {
return getPropertyAsString(TOPIC);
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/jms/sampler/BaseJMSSampler.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | String getClassname()↵ | | 1 | String getC↵
|
2 | {↵ | | |
|
3 | ↵ | | 2 | onnectionFactory() {↵
|
4 | return getPropertyAsString(CLASSNAME);↵ | | 3 | return getPropertyAsString(C↵
|
5 | }↵ | | |
|
6 | ↵ | | |
|
7 | ↵ | | 4 | ONN_FACTORY);↵
|
| | | 5 | }↵
|
|
8 | /**↵ | | 6 | /**↵
|
9 | * Set the string label used to create an instance of the↵ | | 7 | * set the ↵
|
10 | * test with the string constructor.↵ | | |
|
11 | * @param constr↵ | | |
|
12 | ↵ | | 8 | topic↵
|
| | | 9 | * ↵
|
| | | 10 | * @param topic↵
|
13 | */↵ | | 11 | */↵
|
14 | public void setConstructorString(String constr)↵ | | 12 | public void set↵
|
15 | {↵ | | |
|
16 | setProperty(CONSTRUCTORSTRING,constr);↵ | | |
|
17 | }↵ | | |
|
18 | ↵ | | |
|
19 | ↵ | | 13 | Topic(String topic) {↵
|
| | | 14 | setProperty(TOPIC, topic);↵
|
| | | 15 | }↵
|
|
20 | /**↵ | | 16 | /**↵
|
21 | * get the string passed to the string constructor↵ | | 17 | * return the topic used for the ↵
|
22 | ↵ | | 18 | benchmark↵
|
| | | 19 | * ↵
|
| | | 20 | * @return the topic↵
|
23 | */↵ | | 21 | */↵
|
24 | public String getConstructorString()↵ | | 22 | public String get↵
|
25 | {↵ | | |
|
26 | ↵ | | 23 | Topic() {↵
|
27 | return getPropertyAsString(CONSTRUCTORSTRING);↵ | | 24 | return getPropertyAsString(↵
|
28 | | | 25 | TOPIC);↵
|
| | | 26 |
|
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 |