|
3 | 3 | import com.microsoft.applicationinsights.TelemetryClient; |
4 | 4 | import com.microsoft.applicationinsights.TelemetryConfiguration; |
5 | 5 | import com.microsoft.applicationinsights.TestFramework.StubTelemetryChannel; |
6 | | -import com.microsoft.applicationinsights.agent.internal.common.StringUtils; |
7 | 6 | import com.microsoft.applicationinsights.extensibility.TelemetryProcessor; |
8 | 7 | import com.microsoft.applicationinsights.telemetry.PageViewTelemetry; |
9 | 8 | import com.microsoft.applicationinsights.telemetry.RemoteDependencyTelemetry; |
10 | 9 | import com.microsoft.applicationinsights.telemetry.RequestTelemetry; |
11 | 10 | import com.microsoft.applicationinsights.telemetry.SupportSampling; |
12 | 11 | import com.microsoft.applicationinsights.telemetry.Telemetry; |
| 12 | +import org.apache.commons.lang3.StringUtils; |
13 | 13 | import org.junit.Assert; |
14 | 14 | import org.junit.Test; |
15 | 15 |
|
@@ -513,15 +513,15 @@ private void testSampling(TelemetryClient client , List<List<Telemetry>> depende |
513 | 513 | processor.setSamplingPercentage(String.valueOf(samplingRate)); |
514 | 514 | if (includeTypes != null) { |
515 | 515 | for (String includeType : includeTypes) { |
516 | | - if (!StringUtils.isNullOrEmpty(includeType)) { |
| 516 | + if (!StringUtils.isEmpty(includeType)) { |
517 | 517 | processor.addToIncludedType(includeType); |
518 | 518 | } |
519 | 519 | } |
520 | 520 | } |
521 | 521 |
|
522 | 522 | if (excludeTypes != null) { |
523 | 523 | for (String excludeType : excludeTypes) { |
524 | | - if (!StringUtils.isNullOrEmpty(excludeType)) { |
| 524 | + if (!StringUtils.isEmpty(excludeType)) { |
525 | 525 | processor.addToExcludedType(excludeType); |
526 | 526 | } |
527 | 527 | } |
@@ -559,15 +559,15 @@ private void testNoSampling(TelemetryClient client , List<List<Telemetry>> depen |
559 | 559 | processor.setSamplingPercentage(String.valueOf(samplingRate)); |
560 | 560 | if (includeTypes != null) { |
561 | 561 | for (String includeType : includeTypes) { |
562 | | - if (!StringUtils.isNullOrEmpty(includeType)) { |
| 562 | + if (!StringUtils.isEmpty(includeType)) { |
563 | 563 | processor.addToIncludedType(includeType); |
564 | 564 | } |
565 | 565 | } |
566 | 566 | } |
567 | 567 |
|
568 | 568 | if (excludeTypes != null) { |
569 | 569 | for (String excludeType : excludeTypes) { |
570 | | - if (!StringUtils.isNullOrEmpty(excludeType)) { |
| 570 | + if (!StringUtils.isEmpty(excludeType)) { |
571 | 571 | processor.addToExcludedType(excludeType); |
572 | 572 | } |
573 | 573 | } |
|
0 commit comments