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 2019/01/08 08:00:37 UTC

[18/47] james-project git commit: MAILBOX-359 ReIndent QuotaUsageUpdatedEventSerializationTest

MAILBOX-359 ReIndent QuotaUsageUpdatedEventSerializationTest


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/4d6a3722
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/4d6a3722
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/4d6a3722

Branch: refs/heads/master
Commit: 4d6a372213fef7194a9cfa2840336f96d6769126
Parents: 0781849
Author: Benoit Tellier <bt...@linagora.com>
Authored: Mon Jan 7 18:10:40 2019 +0700
Committer: Benoit Tellier <bt...@linagora.com>
Committed: Tue Jan 8 14:39:53 2019 +0700

----------------------------------------------------------------------
 ...QuotaUsageUpdatedEventSerializationTest.java | 88 ++++++++++----------
 1 file changed, 44 insertions(+), 44 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/4d6a3722/mailbox/event/json/src/test/java/org/apache/james/event/json/QuotaUsageUpdatedEventSerializationTest.java
----------------------------------------------------------------------
diff --git a/mailbox/event/json/src/test/java/org/apache/james/event/json/QuotaUsageUpdatedEventSerializationTest.java b/mailbox/event/json/src/test/java/org/apache/james/event/json/QuotaUsageUpdatedEventSerializationTest.java
index 608bee3..4ce097d 100644
--- a/mailbox/event/json/src/test/java/org/apache/james/event/json/QuotaUsageUpdatedEventSerializationTest.java
+++ b/mailbox/event/json/src/test/java/org/apache/james/event/json/QuotaUsageUpdatedEventSerializationTest.java
@@ -55,14 +55,14 @@ class QuotaUsageUpdatedEventSerializationTest {
         INSTANT);
     private final String quotaUsageUpdatedEvent =
         "{" +
-            "\"QuotaUsageUpdatedEvent\":{" +
-            "\"quotaRoot\":\"foo\"," +
-            "\"countQuota\":{\"used\":12,\"limit\":100,\"limits\":{}}," +
-            "\"time\":\"2018-11-13T12:00:55Z\"," +
-            "\"sizeQuota\":{\"used\":1234,\"limit\":10000,\"limits\":{}}," +
-            "\"user\":\"onlyUsername\"" +
-            "}" +
-            "}";
+        "    \"QuotaUsageUpdatedEvent\":{" +
+        "        \"quotaRoot\":\"foo\"," +
+        "        \"countQuota\":{\"used\":12,\"limit\":100,\"limits\":{}}," +
+        "        \"time\":\"2018-11-13T12:00:55Z\"," +
+        "        \"sizeQuota\":{\"used\":1234,\"limit\":10000,\"limits\":{}}," +
+        "        \"user\":\"onlyUsername\"" +
+        "    }" +
+        "}";
 
     @Test
     void fromJsonShouldReturnQuotaEvent() {
@@ -80,13 +80,13 @@ class QuotaUsageUpdatedEventSerializationTest {
     void fromJsonShouldThrowResultWhenUserIsMissing() {
         String quotaUsageUpdatedEvent =
             "{" +
-                "\"QuotaUsageUpdatedEvent\":{" +
-                "\"quotaRoot\":\"foo\"," +
-                "\"countQuota\":{\"used\":12,\"limit\":100,\"limits\":{}}," +
-                "\"time\":\"2018-11-13T12:00:55Z\"," +
-                "\"sizeQuota\":{\"used\":1234,\"limit\":10000,\"limits\":{}}" +
-                "}" +
-                "}";
+            "    \"QuotaUsageUpdatedEvent\":{" +
+            "        \"quotaRoot\":\"foo\"," +
+            "        \"countQuota\":{\"used\":12,\"limit\":100,\"limits\":{}}," +
+            "        \"time\":\"2018-11-13T12:00:55Z\"," +
+            "        \"sizeQuota\":{\"used\":1234,\"limit\":10000,\"limits\":{}}" +
+            "    }" +
+            "}";
 
         assertThatThrownBy(() -> EVENT_SERIALIZER.fromJson(quotaUsageUpdatedEvent).get())
             .isInstanceOf(NoSuchElementException.class);
@@ -96,13 +96,13 @@ class QuotaUsageUpdatedEventSerializationTest {
     void fromJsonShouldThrowWhenCountQuotaIsMissing() {
         String quotaUsageUpdatedEvent =
             "{" +
-                "\"QuotaUsageUpdatedEvent\":{" +
-                "\"quotaRoot\":\"foo\"," +
-                "\"time\":\"2018-11-13T12:00:55Z\"," +
-                "\"sizeQuota\":{\"used\":1234,\"limit\":10000,\"limits\":{}}," +
-                "\"user\":\"onlyUsername\"" +
-                "}" +
-                "}";
+            "    \"QuotaUsageUpdatedEvent\":{" +
+            "        \"quotaRoot\":\"foo\"," +
+            "        \"time\":\"2018-11-13T12:00:55Z\"," +
+            "        \"sizeQuota\":{\"used\":1234,\"limit\":10000,\"limits\":{}}," +
+            "        \"user\":\"onlyUsername\"" +
+            "        }" +
+            "}";
 
         assertThatThrownBy(() -> EVENT_SERIALIZER.fromJson(quotaUsageUpdatedEvent).get())
             .isInstanceOf(NoSuchElementException.class);
@@ -112,13 +112,13 @@ class QuotaUsageUpdatedEventSerializationTest {
     void fromJsonShouldThrowWhenSizeQuotaIsMissing() {
         String quotaUsageUpdatedEvent =
             "{" +
-                "\"QuotaUsageUpdatedEvent\":{" +
-                "\"quotaRoot\":\"foo\"," +
-                "\"time\":\"2018-11-13T12:00:55Z\"," +
-                "\"countQuota\":{\"used\":12,\"limit\":100,\"limits\":{}}," +
-                "\"user\":\"onlyUsername\"" +
-                "}" +
-                "}";
+            "    \"QuotaUsageUpdatedEvent\":{" +
+            "        \"quotaRoot\":\"foo\"," +
+            "        \"time\":\"2018-11-13T12:00:55Z\"," +
+            "        \"countQuota\":{\"used\":12,\"limit\":100,\"limits\":{}}," +
+            "        \"user\":\"onlyUsername\"" +
+            "        }" +
+            "}";
 
         assertThatThrownBy(() -> EVENT_SERIALIZER.fromJson(quotaUsageUpdatedEvent).get())
             .isInstanceOf(NoSuchElementException.class);
@@ -128,13 +128,13 @@ class QuotaUsageUpdatedEventSerializationTest {
     void fromJsonShouldThrowResultWhenTimeIsNull() {
         String quotaUsageUpdatedEvent =
             "{" +
-                "\"QuotaUsageUpdatedEvent\":{" +
-                "\"quotaRoot\":\"foo\"," +
-                "\"countQuota\":{\"used\":12,\"limit\":100,\"limits\":{\"Domain\":100}}," +
-                "\"sizeQuota\":{\"used\":1234,\"limit\":10000,\"limits\":{}}," +
-                "\"user\":\"user\"" +
-                "}" +
-                "}";
+            "    \"QuotaUsageUpdatedEvent\":{" +
+            "        \"quotaRoot\":\"foo\"," +
+            "        \"countQuota\":{\"used\":12,\"limit\":100,\"limits\":{\"Domain\":100}}," +
+            "        \"sizeQuota\":{\"used\":1234,\"limit\":10000,\"limits\":{}}," +
+            "        \"user\":\"user\"" +
+            "        }" +
+            "}";
 
         assertThatThrownBy(() -> EVENT_SERIALIZER.fromJson(quotaUsageUpdatedEvent).get())
             .isInstanceOf(NoSuchElementException.class);
@@ -144,14 +144,14 @@ class QuotaUsageUpdatedEventSerializationTest {
     void fromJsonShouldThrowResultWhenTimeIsEmpty() {
         String quotaUsageUpdatedEvent =
             "{" +
-                "\"QuotaUsageUpdatedEvent\":{" +
-                "\"quotaRoot\":\"foo\"," +
-                "\"countQuota\":{\"used\":12,\"limit\":100,\"limits\":{\"Domain\":100}}," +
-                "\"time\":\"\"," +
-                "\"sizeQuota\":{\"used\":1234,\"limit\":10000,\"limits\":{}}," +
-                "\"user\":\"user\"" +
-                "}" +
-                "}";
+            "    \"QuotaUsageUpdatedEvent\":{" +
+            "        \"quotaRoot\":\"foo\"," +
+            "        \"countQuota\":{\"used\":12,\"limit\":100,\"limits\":{\"Domain\":100}}," +
+            "        \"time\":\"\"," +
+            "        \"sizeQuota\":{\"used\":1234,\"limit\":10000,\"limits\":{}}," +
+            "        \"user\":\"user\"" +
+            "    }" +
+            "}";
 
         assertThatThrownBy(() -> EVENT_SERIALIZER.fromJson(quotaUsageUpdatedEvent).get())
             .isInstanceOf(NoSuchElementException.class);


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org