Skip to content

Commit

Permalink
Issue #5824 Fix ConstraintTest
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Bartel <janb@webtide.com>
  • Loading branch information
janbartel committed Dec 23, 2020
1 parent 7955ebc commit 9d328ce
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ private List<ConstraintMapping> getConstraintMappings()
@Test
public void testConstraints() throws Exception
{
//constraint mappings are not available until the server is started.
_server.start();

List<ConstraintMapping> mappings = new ArrayList<>(_security.getConstraintMappings());

assertTrue(mappings.get(0).getConstraint().isForbidden());
Expand Down Expand Up @@ -698,7 +701,7 @@ public static Stream<Arguments> basicScenarios()
@MethodSource("basicScenarios")
public void testBasic(Scenario scenario) throws Exception
{
List<ConstraintMapping> list = new ArrayList<>(_security.getConstraintMappings());
List<ConstraintMapping> list = new ArrayList<>(getConstraintMappings());

Constraint constraint6 = new Constraint();
constraint6.setAuthenticate(true);
Expand Down

0 comments on commit 9d328ce

Please sign in to comment.