james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [11/12] james-project git commit: Remove some useless debug lines
Date Wed, 01 Aug 2018 11:06:48 GMT
Remove some useless debug lines


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

Branch: refs/heads/master
Commit: 1dd539fcc4a31c6c2240238daa674fc1bab7daf0
Parents: 39901f2
Author: Raphael Ouazana <raphael.ouazana@linagora.com>
Authored: Tue Jul 24 15:35:03 2018 +0200
Committer: benwa <btellier@linagora.com>
Committed: Wed Aug 1 18:05:42 2018 +0700

----------------------------------------------------------------------
 .../org/apache/james/mailbox/hbase/HBaseUtilsTest.java  |  6 ------
 .../mailbox/hbase/mail/model/HBaseMailboxTest.java      |  9 ---------
 .../james/mailbox/store/mail/ZooUidProviderTest.java    | 12 ------------
 3 files changed, 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/1dd539fc/mailbox/hbase/src/test/java/org/apache/james/mailbox/hbase/HBaseUtilsTest.java
----------------------------------------------------------------------
diff --git a/mailbox/hbase/src/test/java/org/apache/james/mailbox/hbase/HBaseUtilsTest.java
b/mailbox/hbase/src/test/java/org/apache/james/mailbox/hbase/HBaseUtilsTest.java
index c7e730d..b76ff9d 100644
--- a/mailbox/hbase/src/test/java/org/apache/james/mailbox/hbase/HBaseUtilsTest.java
+++ b/mailbox/hbase/src/test/java/org/apache/james/mailbox/hbase/HBaseUtilsTest.java
@@ -76,7 +76,6 @@ public class HBaseUtilsTest {
      */
     @Test
     public void testRowKey_All() {
-        System.out.println("getRowKey and UUIDFromRowKey");
         final HBaseMailbox mailbox = new HBaseMailbox(new MailboxPath("gsoc", "ieugen", "INBOX"),
1234);
         HBaseId uuid = mailbox.getMailboxId();
         byte[] expResult = uuid.toBytes();
@@ -95,7 +94,6 @@ public class HBaseUtilsTest {
      */
     @Test
     public void testMailboxToPut() {
-        System.out.println("mailboxToPut");
         final HBaseMailbox instance = new HBaseMailbox(new MailboxPath("gsoc", "ieugen",
"INBOX"), 1234);
 
         Put result = toPut(instance);
@@ -115,7 +113,6 @@ public class HBaseUtilsTest {
     @Ignore
     @Test
     public void testMessageToPut() {
-        System.out.println("messageToPut");
         // left to implement
     }
 
@@ -131,7 +128,6 @@ public class HBaseUtilsTest {
 
     @Test
     public void testSubscriptionToPut() {
-        System.out.println("subscription toPut");
         Subscription subscription = new SimpleSubscription("ieugen", "INBOX");
         Put put = toPut(subscription);
         assertArrayEquals(Bytes.toBytes(subscription.getUser()), put.getRow());
@@ -140,8 +136,6 @@ public class HBaseUtilsTest {
 
     @Test
     public void testFlagsToPut() {
-        System.out.println("flagsToPut");
-
         final Flags flags = new Flags();
         flags.add(Flags.Flag.SEEN);
         flags.add(Flags.Flag.DRAFT);

http://git-wip-us.apache.org/repos/asf/james-project/blob/1dd539fc/mailbox/hbase/src/test/java/org/apache/james/mailbox/hbase/mail/model/HBaseMailboxTest.java
----------------------------------------------------------------------
diff --git a/mailbox/hbase/src/test/java/org/apache/james/mailbox/hbase/mail/model/HBaseMailboxTest.java
b/mailbox/hbase/src/test/java/org/apache/james/mailbox/hbase/mail/model/HBaseMailboxTest.java
index 1799dfe..8e685a4 100644
--- a/mailbox/hbase/src/test/java/org/apache/james/mailbox/hbase/mail/model/HBaseMailboxTest.java
+++ b/mailbox/hbase/src/test/java/org/apache/james/mailbox/hbase/mail/model/HBaseMailboxTest.java
@@ -36,7 +36,6 @@ public class HBaseMailboxTest {
      */
     @Test
     public void testGetSetMailboxId() {
-        System.out.println("getSetMailboxId");
         final MailboxPath mailboxPath = new MailboxPath("gsoc", "ieugen", "INBOX");
         final HBaseMailbox instance = new HBaseMailbox(mailboxPath, 10);
 
@@ -51,7 +50,6 @@ public class HBaseMailboxTest {
      */
     @Test
     public void testGetSetNamespace() {
-        System.out.println("getSetNamespace");
         final MailboxPath mailboxPath = new MailboxPath("gsoc", "ieugen", "INBOX");
         final HBaseMailbox instance = new HBaseMailbox(mailboxPath, 124566);
         String result = instance.getNamespace();
@@ -67,7 +65,6 @@ public class HBaseMailboxTest {
      */
     @Test
     public void testGetSetUser() {
-        System.out.println("getUser");
         final MailboxPath mailboxPath = new MailboxPath("gsoc", "ieugen", "INBOX");
         final HBaseMailbox instance = new HBaseMailbox(mailboxPath, 12);
         String result = instance.getUser();
@@ -82,7 +79,6 @@ public class HBaseMailboxTest {
      */
     @Test
     public void testGetSetName() {
-        System.out.println("getSetName");
         final MailboxPath mailboxPath = new MailboxPath("gsoc", "ieugen", "INBOX");
         final HBaseMailbox instance = new HBaseMailbox(mailboxPath, 1677);
         String result = instance.getName();
@@ -97,7 +93,6 @@ public class HBaseMailboxTest {
      */
     @Test
     public void testGetUidValidity() {
-        System.out.println("getUidValidity");
         final MailboxPath mailboxPath = new MailboxPath("gsoc", "ieugen", "INBOX");
         final HBaseMailbox instance = new HBaseMailbox(mailboxPath, 123345);
         long expResult = 123345L;
@@ -111,7 +106,6 @@ public class HBaseMailboxTest {
      */
     @Test
     public void testHashCode() {
-        System.out.println("hashCode");
         final MailboxPath mailboxPath = new MailboxPath("gsoc", "ieugen", "INBOX");
         final HBaseMailbox instance = new HBaseMailbox(mailboxPath, 1234);
         // from the hashCode()
@@ -128,7 +122,6 @@ public class HBaseMailboxTest {
      */
     @Test
     public void testEquals() {
-        System.out.println("equals");
         final MailboxPath mailboxPath = new MailboxPath("gsoc", "ieugen", "INBOX");
         final HBaseMailbox instance = new HBaseMailbox(mailboxPath, 12345);
         final HBaseMailbox instance2 = new HBaseMailbox(mailboxPath, 12345);
@@ -141,7 +134,6 @@ public class HBaseMailboxTest {
      */
     @Test
     public void testConsumeUid() {
-        System.out.println("consumeUid");
         final MailboxPath mailboxPath = new MailboxPath("gsoc", "ieugen", "INBOX");
         final HBaseMailbox instance = new HBaseMailbox(mailboxPath, 10);
         long expResult = instance.getLastUid() + 1;
@@ -154,7 +146,6 @@ public class HBaseMailboxTest {
      */
     @Test
     public void testConsumeModSeq() {
-        System.out.println("consumeModSeq");
         final MailboxPath mailboxPath = new MailboxPath("gsoc", "ieugen", "INBOX");
         final HBaseMailbox instance = new HBaseMailbox(mailboxPath, 10);
         long expResult = instance.getHighestModSeq() + 1;

http://git-wip-us.apache.org/repos/asf/james-project/blob/1dd539fc/mailbox/zoo-seq-provider/src/test/java/org/apache/james/mailbox/store/mail/ZooUidProviderTest.java
----------------------------------------------------------------------
diff --git a/mailbox/zoo-seq-provider/src/test/java/org/apache/james/mailbox/store/mail/ZooUidProviderTest.java
b/mailbox/zoo-seq-provider/src/test/java/org/apache/james/mailbox/store/mail/ZooUidProviderTest.java
index cabd90b..2ffe627 100644
--- a/mailbox/zoo-seq-provider/src/test/java/org/apache/james/mailbox/store/mail/ZooUidProviderTest.java
+++ b/mailbox/zoo-seq-provider/src/test/java/org/apache/james/mailbox/store/mail/ZooUidProviderTest.java
@@ -170,36 +170,24 @@ public class ZooUidProviderTest {
         testServer.close();
     }
 
-    /**
-     * Test of nextUid method, of class ZooUidProvider.
-     */
     @Test
     public void testNextUid() throws Exception {
-        System.out.println("Testing nextUid");
         MessageUid result = uuidProvider.nextUid(null, mailboxUUID);
         assertEquals("Next UID is 1", 1, result.asLong());
         result = longProvider.nextUid(null, mailboxLong);
         assertEquals("Next UID is 1", 1, result.asLong());
     }
 
-    /**
-     * Test of lastUid method, of class ZooUidProvider.
-     */
     @Test
     public void testLastUid() throws Exception {
-        System.out.println("Testing lastUid");
         Optional<MessageUid> result = uuidProvider.lastUid(null, mailboxUUID);
         assertEquals("Next UID is empty", Optional.empty(), result);
         MessageUid nextResult = uuidProvider.nextUid(null, mailboxUUID);
         assertEquals("Next UID is 1", 1, nextResult.asLong());
     }
 
-    /**
-     * Test of lastUid method, of class ZooUidProvider.
-     */
     @Test
     public void testLongLastUid() throws Exception {
-        System.out.println("Testing long lastUid");
         Optional<MessageUid> result = longProvider.lastUid(null, mailboxLong);
         assertEquals("Next UID is empty", Optional.empty(), result);
         MessageUid nextResult = longProvider.nextUid(null, mailboxLong);


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


Mime
View raw message