Repository: james-project Updated Branches: refs/heads/master ff2acdcd7 -> 83649fc34
JAMES-2428 correct DTO creation Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/83649fc3 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/83649fc3 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/83649fc3 Branch: refs/heads/master Commit: 83649fc344ca988dfaa6ea21b20d7ee6bd80981a Parents: ff2acdc Author: duc <[email protected]> Authored: Fri Jun 22 11:12:41 2018 +0700 Committer: duc <[email protected]> Committed: Sat Jun 23 17:00:52 2018 +0700 ---------------------------------------------------------------------- .../org/apache/james/webadmin/dto/DLPConfigurationItemDTO.java | 2 +- .../apache/james/webadmin/dto/DLPConfigurationItemDTOTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/83649fc3/server/protocols/webadmin/webadmin-data/src/main/java/org/apache/james/webadmin/dto/DLPConfigurationItemDTO.java ---------------------------------------------------------------------- diff --git a/server/protocols/webadmin/webadmin-data/src/main/java/org/apache/james/webadmin/dto/DLPConfigurationItemDTO.java b/server/protocols/webadmin/webadmin-data/src/main/java/org/apache/james/webadmin/dto/DLPConfigurationItemDTO.java index 5f3da5f..4ba6416 100644 --- a/server/protocols/webadmin/webadmin-data/src/main/java/org/apache/james/webadmin/dto/DLPConfigurationItemDTO.java +++ b/server/protocols/webadmin/webadmin-data/src/main/java/org/apache/james/webadmin/dto/DLPConfigurationItemDTO.java @@ -41,7 +41,7 @@ public class DLPConfigurationItemDTO { dlpConfiguration.getExplanation(), targets.isSenderTargeted(), targets.isRecipientTargeted(), - targets.isRecipientTargeted()); + targets.isContentTargeted()); } http://git-wip-us.apache.org/repos/asf/james-project/blob/83649fc3/server/protocols/webadmin/webadmin-data/src/test/java/org/apache/james/webadmin/dto/DLPConfigurationItemDTOTest.java ---------------------------------------------------------------------- diff --git a/server/protocols/webadmin/webadmin-data/src/test/java/org/apache/james/webadmin/dto/DLPConfigurationItemDTOTest.java b/server/protocols/webadmin/webadmin-data/src/test/java/org/apache/james/webadmin/dto/DLPConfigurationItemDTOTest.java index 1c8f1f6..b18358f 100644 --- a/server/protocols/webadmin/webadmin-data/src/test/java/org/apache/james/webadmin/dto/DLPConfigurationItemDTOTest.java +++ b/server/protocols/webadmin/webadmin-data/src/test/java/org/apache/james/webadmin/dto/DLPConfigurationItemDTOTest.java @@ -44,7 +44,7 @@ class DLPConfigurationItemDTOTest { .explanation(EXPLANATION) .targetsSender(true) .targetsRecipients(true) - .targetsContent(true) + .targetsContent(false) .build()); SoftAssertions.assertSoftly(softly -> { @@ -53,7 +53,7 @@ class DLPConfigurationItemDTOTest { softly.assertThat(dto.getExplanation().get()).isEqualTo(EXPLANATION); softly.assertThat(dto.getTargetsSender()).isTrue(); softly.assertThat(dto.getTargetsRecipients()).isTrue(); - softly.assertThat(dto.getTargetsContent()).isTrue(); + softly.assertThat(dto.getTargetsContent()).isFalse(); }); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
