Commit ba077449 authored by Michel Schudel's avatar Michel Schudel

unit test gefixed.

parent bcd6927e
......@@ -135,7 +135,7 @@ public class NetworkTest {
peers.setPeers(Stream.of("alreadyKnownPeer:8080").collect(Collectors.toSet()));
when(genericRepository.load(Peers.class)).thenReturn(Optional.of(peers));
String sourcePeer = "sourcePeer:8080";
Transaction transaction = new Transaction("michel", "jan", BigDecimal.TEN, "", "");
Transaction transaction = new Transaction();
network.init();
network.notifyPeersOfNewTransaction(transaction, sourcePeer);
verify(restTemplate).exchange(eq("http://alreadyKnownPeer:8080/api/addtransaction"), eq(HttpMethod.POST), ArgumentMatchers.<HttpEntity<Transaction>>any(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment