You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2020/01/07 07:33:59 UTC
[james-project] 05/16: JAMES-2993 Fixing typo
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit f59f30347277d24c8e752ced430aac982e455143
Author: Tran Tien Duc <dt...@linagora.com>
AuthorDate: Fri Jan 3 09:56:33 2020 +0700
JAMES-2993 Fixing typo
---
.../data/jmap/RecomputeAllFastViewProjectionItemsTask.java | 10 +++++-----
.../RecomputeAllFastViewProjectionItemsRequestToTaskTest.java | 10 +++++-----
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/server/protocols/webadmin/webadmin-jmap/src/main/java/org/apache/james/webadmin/data/jmap/RecomputeAllFastViewProjectionItemsTask.java b/server/protocols/webadmin/webadmin-jmap/src/main/java/org/apache/james/webadmin/data/jmap/RecomputeAllFastViewProjectionItemsTask.java
index 88f4a64..9d3db13 100644
--- a/server/protocols/webadmin/webadmin-jmap/src/main/java/org/apache/james/webadmin/data/jmap/RecomputeAllFastViewProjectionItemsTask.java
+++ b/server/protocols/webadmin/webadmin-jmap/src/main/java/org/apache/james/webadmin/data/jmap/RecomputeAllFastViewProjectionItemsTask.java
@@ -83,10 +83,10 @@ public class RecomputeAllFastViewProjectionItemsTask implements Task {
}
}
- public static class RecomputeAllPreviousTaskDTO implements TaskDTO {
+ public static class RecomputeAllPreviewsTaskDTO implements TaskDTO {
private final String type;
- public RecomputeAllPreviousTaskDTO(@JsonProperty("type") String type) {
+ public RecomputeAllPreviewsTaskDTO(@JsonProperty("type") String type) {
this.type = type;
}
@@ -96,12 +96,12 @@ public class RecomputeAllFastViewProjectionItemsTask implements Task {
}
}
- public static TaskDTOModule<RecomputeAllFastViewProjectionItemsTask, RecomputeAllPreviousTaskDTO> module(MessageFastViewProjectionCorrector corrector) {
+ public static TaskDTOModule<RecomputeAllFastViewProjectionItemsTask, RecomputeAllPreviewsTaskDTO> module(MessageFastViewProjectionCorrector corrector) {
return DTOModule
.forDomainObject(RecomputeAllFastViewProjectionItemsTask.class)
- .convertToDTO(RecomputeAllPreviousTaskDTO.class)
+ .convertToDTO(RecomputeAllPreviewsTaskDTO.class)
.toDomainObjectConverter(dto -> new RecomputeAllFastViewProjectionItemsTask(corrector))
- .toDTOConverter((task, type) -> new RecomputeAllPreviousTaskDTO(type))
+ .toDTOConverter((task, type) -> new RecomputeAllPreviewsTaskDTO(type))
.typeName(TASK_TYPE.asString())
.withFactory(TaskDTOModule::new);
}
diff --git a/server/protocols/webadmin/webadmin-jmap/src/test/java/org/apache/james/webadmin/data/jmap/RecomputeAllFastViewProjectionItemsRequestToTaskTest.java b/server/protocols/webadmin/webadmin-jmap/src/test/java/org/apache/james/webadmin/data/jmap/RecomputeAllFastViewProjectionItemsRequestToTaskTest.java
index 1013e63..ef1e5e6 100644
--- a/server/protocols/webadmin/webadmin-jmap/src/test/java/org/apache/james/webadmin/data/jmap/RecomputeAllFastViewProjectionItemsRequestToTaskTest.java
+++ b/server/protocols/webadmin/webadmin-jmap/src/test/java/org/apache/james/webadmin/data/jmap/RecomputeAllFastViewProjectionItemsRequestToTaskTest.java
@@ -211,7 +211,7 @@ class RecomputeAllFastViewProjectionItemsRequestToTaskTest {
}
@Test
- void recomputeAllShouldCompleteWhenUserWithNoMailbox()throws Exception {
+ void recomputeAllShouldCompleteWhenUserWithNoMailbox() throws Exception {
usersRepository.addUser(BOB, "pass");
String taskId = with()
@@ -238,7 +238,7 @@ class RecomputeAllFastViewProjectionItemsRequestToTaskTest {
}
@Test
- void recomputeAllShouldCompleteWhenUserWithNoMessage()throws Exception {
+ void recomputeAllShouldCompleteWhenUserWithNoMessage() throws Exception {
usersRepository.addUser(BOB, "pass");
mailboxManager.createMailbox(MailboxPath.inbox(BOB), mailboxManager.createSystemSession(BOB));
@@ -266,7 +266,7 @@ class RecomputeAllFastViewProjectionItemsRequestToTaskTest {
}
@Test
- void recomputeAllShouldCompleteWhenOneMessage()throws Exception {
+ void recomputeAllShouldCompleteWhenOneMessage() throws Exception {
usersRepository.addUser(BOB, "pass");
MailboxSession session = mailboxManager.createSystemSession(BOB);
Optional<MailboxId> mailboxId = mailboxManager.createMailbox(MailboxPath.inbox(BOB), session);
@@ -298,7 +298,7 @@ class RecomputeAllFastViewProjectionItemsRequestToTaskTest {
}
@Test
- void recomputeAllShouldUpdateProjection()throws Exception {
+ void recomputeAllShouldUpdateProjection() throws Exception {
usersRepository.addUser(BOB, "pass");
MailboxSession session = mailboxManager.createSystemSession(BOB);
Optional<MailboxId> mailboxId = mailboxManager.createMailbox(MailboxPath.inbox(BOB), session);
@@ -321,7 +321,7 @@ class RecomputeAllFastViewProjectionItemsRequestToTaskTest {
}
@Test
- void recomputeAllShouldBeIdempotent()throws Exception {
+ void recomputeAllShouldBeIdempotent() throws Exception {
usersRepository.addUser(BOB, "pass");
MailboxSession session = mailboxManager.createSystemSession(BOB);
Optional<MailboxId> mailboxId = mailboxManager.createMailbox(MailboxPath.inbox(BOB), session);
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org