-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug with VUU Server option for adding customised login validator is n…
…ot setting
- Loading branch information
1 parent
7c3c1f8
commit ee3ba63
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
vuu/src/test/scala/org/finos/vuu/core/VuuServerOptionsTest.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.finos.vuu.core | ||
|
||
import org.finos.vuu.net.LoggedInTokenValidator | ||
import org.scalatest.featurespec.AnyFeatureSpec | ||
import org.scalatest.matchers.should.Matchers | ||
|
||
|
||
class VuuServerOptionsTest extends AnyFeatureSpec with Matchers { | ||
|
||
Feature("VUU Server option for adding customised login validator should be supported"){ | ||
|
||
Scenario("Create 1 security option with LoggedInTokenValidator other than the default Validator, check the type of login validator"){ | ||
|
||
val option = VuuSecurityOptions.apply() | ||
.withLoginValidator(new LoggedInTokenValidator) | ||
|
||
option.loginTokenValidator shouldBe a [LoggedInTokenValidator] | ||
} | ||
} | ||
} |