aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/test/scala/kamon/metric/RegexPathFilterSpec.scala
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2017-06-14 15:01:35 +0200
committerIvan Topolnjak <ivantopo@gmail.com>2017-06-14 15:01:35 +0200
commit856993f1adbab9a413e2c66b468699257557903f (patch)
tree9532f5dda9cc2fc899f88318ad4b9554b3a15627 /kamon-core/src/test/scala/kamon/metric/RegexPathFilterSpec.scala
parent8e6c6737f97314d1cacf6d6ad50a984ad21438ca (diff)
downloadKamon-856993f1adbab9a413e2c66b468699257557903f.tar.gz
Kamon-856993f1adbab9a413e2c66b468699257557903f.tar.bz2
Kamon-856993f1adbab9a413e2c66b468699257557903f.zip
move filters to util package, expose them from Kamon
Diffstat (limited to 'kamon-core/src/test/scala/kamon/metric/RegexPathFilterSpec.scala')
-rw-r--r--kamon-core/src/test/scala/kamon/metric/RegexPathFilterSpec.scala7
1 files changed, 4 insertions, 3 deletions
diff --git a/kamon-core/src/test/scala/kamon/metric/RegexPathFilterSpec.scala b/kamon-core/src/test/scala/kamon/metric/RegexPathFilterSpec.scala
index da095b1b..f742df1d 100644
--- a/kamon-core/src/test/scala/kamon/metric/RegexPathFilterSpec.scala
+++ b/kamon-core/src/test/scala/kamon/metric/RegexPathFilterSpec.scala
@@ -17,13 +17,14 @@
package kamon
package metric
+import kamon.util.RegexMatcher
import org.scalatest.{Matchers, WordSpecLike}
class RegexPathFilterSpec extends WordSpecLike with Matchers {
"The RegexPathFilter" should {
"match a single expression" in {
- val filter = new RegexNameFilter("/user/actor")
+ val filter = new RegexMatcher("/user/actor")
filter.accept("/user/actor") shouldBe true
@@ -32,7 +33,7 @@ class RegexPathFilterSpec extends WordSpecLike with Matchers {
}
"match arbitray expressions ending with wildcard" in {
- val filter = new RegexNameFilter("/user/.*")
+ val filter = new RegexMatcher("/user/.*")
filter.accept("/user/actor") shouldBe true
filter.accept("/user/otherActor") shouldBe true
@@ -46,7 +47,7 @@ class RegexPathFilterSpec extends WordSpecLike with Matchers {
}
"match numbers" in {
- val filter = new RegexNameFilter("/user/actor-\\d")
+ val filter = new RegexMatcher("/user/actor-\\d")
filter.accept("/user/actor-1") shouldBe true
filter.accept("/user/actor-2") shouldBe true