cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sn...@apache.org
Subject cassandra git commit: MessagePayloadTest.resetCqlQueryHandlerField fails
Date Tue, 31 Mar 2015 08:36:53 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 3e6fe8bd2 -> 082dedf97


MessagePayloadTest.resetCqlQueryHandlerField fails

Patch by Robert Stupp; Reviewed by Ariel Weisberg for CASSANDRA-9072


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/082dedf9
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/082dedf9
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/082dedf9

Branch: refs/heads/trunk
Commit: 082dedf97b4f9df77b896c65d374a9a4076364b1
Parents: 3e6fe8b
Author: Robert Stupp <snazy@snazy.de>
Authored: Tue Mar 31 10:35:43 2015 +0200
Committer: Robert Stupp <snazy@snazy.de>
Committed: Tue Mar 31 10:35:43 2015 +0200

----------------------------------------------------------------------
 test/unit/org/apache/cassandra/transport/MessagePayloadTest.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/082dedf9/test/unit/org/apache/cassandra/transport/MessagePayloadTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/transport/MessagePayloadTest.java b/test/unit/org/apache/cassandra/transport/MessagePayloadTest.java
index 44f1f7b..6df889f 100644
--- a/test/unit/org/apache/cassandra/transport/MessagePayloadTest.java
+++ b/test/unit/org/apache/cassandra/transport/MessagePayloadTest.java
@@ -23,6 +23,7 @@ import java.nio.ByteBuffer;
 import java.util.Collections;
 import java.util.Map;
 
+import org.junit.AfterClass;
 import org.junit.Assert;
 import org.junit.BeforeClass;
 import org.junit.Test;
@@ -73,7 +74,7 @@ public class MessagePayloadTest extends CQLTester
         }
     }
 
-    @BeforeClass
+    @AfterClass
     public static void resetCqlQueryHandlerField()
     {
         if (cqlQueryHandlerField == null)
@@ -83,6 +84,7 @@ public class MessagePayloadTest extends CQLTester
             cqlQueryHandlerField.setAccessible(false);
 
             Field modifiersField = Field.class.getDeclaredField("modifiers");
+            modifiersField.setAccessible(true);
             modifiersField.setInt(cqlQueryHandlerField, cqlQueryHandlerField.getModifiers()
| Modifier.FINAL);
             modifiersField.setAccessible(modifiersAccessible);
         }


Mime
View raw message