mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-21 06:54:29 +01:00
add test
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package de.cotto.lndmanagej.controller.dto;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static de.cotto.lndmanagej.model.ChannelIdFixtures.CHANNEL_ID;
|
||||
import static de.cotto.lndmanagej.pickhardtpayments.model.RouteFixtures.ROUTE;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
class RouteDtoTest {
|
||||
@Test
|
||||
void fromModel() {
|
||||
assertThat(RouteDto.fromModel(ROUTE))
|
||||
.isEqualTo(new RouteDto("100", List.of(CHANNEL_ID), ROUTE.getProbability()));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user