Skip to content

Commit

Permalink
gh-2580 dynamic schema. mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
GCHQDev404 committed Feb 21, 2023
1 parent 7d77993 commit 59568bd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2017-2021 Crown Copyright
* Copyright 2017-2023 Crown Copyright
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -196,8 +196,7 @@ private void validateOperationChain(final OperationChain opChain, final boolean

given(store.getSchema()).willReturn(schema);

// TODO: wouldn't work as statndard as the schema was null...
given(viewValidator.validate(any(), any(Schema.class), any(Set.class))).willReturn(new ValidationResult());
given(viewValidator.validate(any(), any(), any())).willReturn(new ValidationResult());

// When
final ValidationResult validationResult = validator.validate(opChain, user, store);
Expand Down

0 comments on commit 59568bd

Please sign in to comment.