Remove overlapping tests and fix failing unit test
This commit is contained in:
parent
10b963d277
commit
811051d111
|
@ -48,7 +48,7 @@ public class TraceConfigInstrumentation implements Instrumenter {
|
||||||
|
|
||||||
private boolean validateConfigString(String configString) {
|
private boolean validateConfigString(String configString) {
|
||||||
for (String clazz : configString.split(";")) {
|
for (String clazz : configString.split(";")) {
|
||||||
if (!clazz.matches(CONFIG_FORMAT)) {
|
if (!clazz.trim().matches(CONFIG_FORMAT)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -56,11 +56,7 @@ public class TraceConfigInstrumentation implements Instrumenter {
|
||||||
}
|
}
|
||||||
|
|
||||||
public TraceConfigInstrumentation() {
|
public TraceConfigInstrumentation() {
|
||||||
this(Config.get().getTraceMethods());
|
String configString = Config.get().getTraceMethods();
|
||||||
}
|
|
||||||
|
|
||||||
public TraceConfigInstrumentation(final String configString) {
|
|
||||||
|
|
||||||
if (configString == null || configString.trim().isEmpty()) {
|
if (configString == null || configString.trim().isEmpty()) {
|
||||||
classMethodsToTrace = Collections.emptyMap();
|
classMethodsToTrace = Collections.emptyMap();
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue