Skip to content

Commit 75212d6

Browse files
timeckljacomet
authored andcommitted
changed my mind, keep a val around for tests to use
git-svn-id: https://svn.terracotta.org/repo/tc/tc-messaging/branches/private/voltron@26020 7fc7bbf3-cf45-46d4-be06-341739edd864
1 parent ff20b51 commit 75212d6

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/main/java/com/tc/object/LogicalOperation.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@
1010
* @author cdennis
1111
*/
1212
public enum LogicalOperation {
13+
FOR_TESTING_ONLY,
14+
1315
REGISTER_SERVER_EVENT_LISTENER,
1416
UNREGISTER_SERVER_EVENT_LISTENER,
1517
REGISTER_SERVER_EVENT_LISTENER_PASSIVE,
1618
UNREGISTER_SERVER_EVENT_LISTENER_PASSIVE,
17-
REMOVE_EVENT_LISTENING_CLIENT,
19+
REMOVE_EVENT_LISTENING_CLIENT,
20+
1821
INVOKE_WITH_PAYLOAD;
1922
}

src/test/java/com/tc/object/dna/impl/DNAImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ protected void serializeDeserialize(final boolean isDelta) throws Exception {
5454
final DNAEncodingInternal encoding = new ApplicatorDNAEncodingImpl(classProvider);
5555
final DNAWriter dnaWriter = createDNAWriter(out, id, type, serializer, encoding, isDelta);
5656
final PhysicalAction action1 = new PhysicalAction("class.field1", new Integer(1), false);
57-
final LogicalAction action2 = new LogicalAction(LogicalOperation.INVOKE_WITH_PAYLOAD, new Object[] { "key", "value" });
57+
final LogicalAction action2 = new LogicalAction(LogicalOperation.FOR_TESTING_ONLY, new Object[] { "key", "value" });
5858
final PhysicalAction action3 = new PhysicalAction("class.field2", new ObjectID(3), true);
5959

6060

src/test/java/com/tc/object/dna/impl/VersionizedDNAWrapperTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void testResettingDNACursor() throws Exception {
4242
final DNAEncodingInternal encoding = new ApplicatorDNAEncodingImpl(classProvider);
4343
final DNAWriter dnaWriter = createDNAWriter(out, id, type, serializer, encoding, "loader description");
4444
final PhysicalAction action1 = new PhysicalAction("class.field1", new Integer(1), false);
45-
final LogicalAction action2 = new LogicalAction(LogicalOperation.INVOKE_WITH_PAYLOAD, new Object[] { "key", "value" });
45+
final LogicalAction action2 = new LogicalAction(LogicalOperation.FOR_TESTING_ONLY, new Object[] { "key", "value" });
4646
final PhysicalAction action3 = new PhysicalAction("class.field2", new ObjectID(3), true);
4747
dnaWriter.addPhysicalAction(action1.getFieldName(), action1.getObject());
4848
dnaWriter.addLogicalAction(action2.getLogicalOperation(), action2.getParameters(), LogicalChangeID.NULL_ID);

0 commit comments

Comments
 (0)