File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
server/src/test/java/csembstu/alamgir/server/service Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ void init() {
5858
5959 routeRequest = new CreateRouteRequest ().setCapacity (250 ).setMinShipment (40 );
6060 routeResponse = new RouteResponse ().setCapacity (250 ).setMinShipment (40 );
61+
62+ route = new Route ().setCapacity (250 ).setMinShipment (40 );
6163 }
6264
6365
@@ -180,7 +182,8 @@ void shouldReturnAllRouteSuccessfully() {
180182 mockLocation2 .setId (toId );
181183
182184 routeResponse .setFromLocationId (fromId ).setToLocationId (toId );
183- route .setFromLocation (mockLocation1 ).setToLocation (mockLocation1 );
185+
186+ route .setFromLocation (mockLocation1 ).setToLocation (mockLocation2 );
184187 when (routeRepository .findAll ()).thenReturn (asList (route ));
185188
186189 //WHEN
You can’t perform that action at this time.
0 commit comments