Toggle navigation
Home
org.neo4j.coreedge.network.Message to org.neo4j.coreedge.raft.RaftMessages.RaftMessage<MEMBER>
No. of Instances - 4
No. of Commits - 2
No. of Projects - {'neo4j'}
Hierarchy/Composition: T_SUPER_R
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
Add or Remove Method invocation
Arrays.asList(expectedEntries)
to
expectedEntries
Cascading Type Change (Different)
TypeSafeMatcher<List<Message>>
to
TypeSafeMatcher<List<RaftMessages.RaftMessage<MEMBER>>>
Update Anonymous class
{ @Override protected boolean matchesSafely( List<Message> messages){ List<RaftLogEntry> entries=messages.stream().filter(message -> message instanceof RaftMessages.AppendEntries.Request).map(m -> ((RaftMessages.AppendEntries.Request)m)).flatMap(x -> Arrays.stream(x.entries())).collect(Collectors.toList()); return entries.containsAll(Arrays.asList(expectedEntries)); } @Override public void describeTo( Description description){ description.appendText("log entries " + Arrays.toString(expectedEntries)); } }
to
{ @Override protected boolean matchesSafely( List<RaftMessages.RaftMessage<MEMBER>> messages){ List<RaftLogEntry> entries=messages.stream().filter(message -> message instanceof RaftMessages.AppendEntries.Request).map(m -> ((RaftMessages.AppendEntries.Request)m)).flatMap(x -> Arrays.stream(x.entries())).collect(Collectors.toList()); return entries.containsAll(expectedEntries); } @Override public void describeTo( Description description){ description.appendText("log entries " + expectedEntries); } }
Cascading Type Change (Similar)
List<Message>
to
List<RaftMessages.RaftMessage<MEMBER>>