*/
package org.opendaylight.transportpce.pce.service;
-import java.math.BigDecimal;
import java.util.Map;
import org.junit.After;
import org.junit.Assert;
import org.opendaylight.yang.gen.v1.gnpy.path.rev220615.result.ResponseKey;
import org.opendaylight.yang.gen.v1.gnpy.path.rev220615.result.response.response.type.NoPathCaseBuilder;
import org.opendaylight.yang.gen.v1.gnpy.path.rev220615.result.response.response.type.PathCaseBuilder;
+import org.opendaylight.yangtools.yang.common.Decimal64;
public class PathComputationServiceImplTest extends AbstractTest {
@Test
public void testPathComputationRequestPathCase() {
PathMetric pathMetric = new PathMetricBuilder()
- .setAccumulativeValue(new BigDecimal(21))
+ .setAccumulativeValue(Decimal64.valueOf("21"))
.setMetricType(PathBandwidth.class).build();
Response response = new ResponseBuilder()
.withKey(new ResponseKey("responseId")).setResponseType(new PathCaseBuilder()