1 package org.exoplatform.services.bench;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 import java.util.HashMap;
21
22 import org.exoplatform.services.log.Log;
23
24
25
26
27
28
29
30 public class FakeDataInjector extends DataInjector {
31
32 private boolean isInjected = false;
33
34
35
36 @Override
37 public String getName() {
38 return FakeDataInjector.class.getName();
39 }
40
41 @Override
42 public Log getLog() {
43 return null;
44 }
45
46 public boolean isInitialized() {
47 return isInjected;
48 }
49
50 @Override
51 public Object execute(HashMap<String, String> params) throws Exception {
52
53 return new Object();
54 }
55
56 @Override
57 public void inject(HashMap<String, String> params) throws Exception {
58 isInjected = true;
59 }
60
61 @Override
62 public void reject(HashMap<String, String> params) throws Exception {
63 isInjected = false;
64 }
65
66
67
68 }