diff options
Diffstat (limited to 'kamon-core/src/legacy-test/scala/kamon')
-rw-r--r-- | kamon-core/src/legacy-test/scala/kamon/util/GlobPathFilterSpec.scala | 1 | ||||
-rw-r--r-- | kamon-core/src/legacy-test/scala/kamon/util/RegexPathFilterSpec.scala | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/kamon-core/src/legacy-test/scala/kamon/util/GlobPathFilterSpec.scala b/kamon-core/src/legacy-test/scala/kamon/util/GlobPathFilterSpec.scala index 7d585087..ee195ed2 100644 --- a/kamon-core/src/legacy-test/scala/kamon/util/GlobPathFilterSpec.scala +++ b/kamon-core/src/legacy-test/scala/kamon/util/GlobPathFilterSpec.scala @@ -16,6 +16,7 @@ package kamon.util +import kamon.metric.GlobPathFilter import org.scalatest.{Matchers, WordSpecLike} class GlobPathFilterSpec extends WordSpecLike with Matchers { diff --git a/kamon-core/src/legacy-test/scala/kamon/util/RegexPathFilterSpec.scala b/kamon-core/src/legacy-test/scala/kamon/util/RegexPathFilterSpec.scala index a2cc8629..f0da5c55 100644 --- a/kamon-core/src/legacy-test/scala/kamon/util/RegexPathFilterSpec.scala +++ b/kamon-core/src/legacy-test/scala/kamon/util/RegexPathFilterSpec.scala @@ -16,13 +16,14 @@ package kamon.util +import kamon.metric.RegexNameFilter import org.scalatest.{Matchers, WordSpecLike} class RegexPathFilterSpec extends WordSpecLike with Matchers { "The RegexPathFilter" should { "match a single expression" in { - val filter = new RegexPathFilter("/user/actor") + val filter = new RegexNameFilter("/user/actor") filter.accept("/user/actor") shouldBe true @@ -31,7 +32,7 @@ class RegexPathFilterSpec extends WordSpecLike with Matchers { } "match arbitray expressions ending with wildcard" in { - val filter = new RegexPathFilter("/user/.*") + val filter = new RegexNameFilter("/user/.*") filter.accept("/user/actor") shouldBe true filter.accept("/user/otherActor") shouldBe true @@ -45,7 +46,7 @@ class RegexPathFilterSpec extends WordSpecLike with Matchers { } "match numbers" in { - val filter = new RegexPathFilter("/user/actor-\\d") + val filter = new RegexNameFilter("/user/actor-\\d") filter.accept("/user/actor-1") shouldBe true filter.accept("/user/actor-2") shouldBe true |