void testYMDHMS() throws Exception { params.add(new CompoundVariable("YMDHMS")); variable.setParameters(params); value = variable.execute(result, null); assertEquals(15,value.length()); } public void testUSER1() throws Exception { params.add(new CompoundVariable("USER1")); variable.setParameters(params); value = variable.execute(result, null); assertEquals(0,value.length()); } public void testUSER2() throws Exception { params.add(new CompoundVariable("USER2")); variable.setParameters(params); value = variable.execute(result, null); assertEquals(0,value.length());
void testHMS() throws Exception { params.add(new CompoundVariable("HMS")); variable.setParameters(params); value = variable.execute(result, null); assertEquals(6,value.length()); } public void testYMDHMS() throws Exception { params.add(new CompoundVariable("YMDHMS")); variable.setParameters(params); value = variable.execute(result, null); assertEquals(15,value.length()); } public void testUSER1() throws Exception { params.add(new CompoundVariable("USER1")); variable.setParameters(params); value = variable.execute(result, null); assertEquals(0,value.length());
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/functions/TestTimeFunction.java File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/functions/TestTimeFunction.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testHMS() throws Exception {
2
            params.add(new CompoundVariable("HMS"));
3
            variable.setParameters(params);
4
            value = variable.execute(result, null);
5
            assertEquals(6,value.length());
6
        }
1
void testYMDHMS() throws Exception {
7
        public void testYMDHMS() throws Exception {
2
            params.add(new CompoundVariable("YMDHMS"));
8
            params.add(new CompoundVariable("YMDHMS"));
3
            variable.setParameters(params);
9
            variable.setParameters(params);
4
            value = variable.execute(result, null);
10
            value = variable.execute(result, null);
5
            assertEquals(15,value.length());
11
            assertEquals(15,value.length());
6
        }
12
        }
7
        public void testUSER1() throws Exception {
13
        public void testUSER1() throws Exception {
8
            params.add(new CompoundVariable("USER1"));
14
            params.add(new CompoundVariable("USER1"));
9
            variable.setParameters(params);
15
            variable.setParameters(params);
10
            value = variable.execute(result, null);
16
            value = variable.execute(result, null);
11
            assertEquals(0,value.length());
17
            assertEquals(0,value.length());
12
        }
18
        
13
        public void testUSER2() throws Exception {
14
            params.add(new CompoundVariable("USER2"));
15
            variable.setParameters(params);
16
            value = variable.execute(result, null);
17
            assertEquals(0,value.length());
18
        
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0