17 lines
610 B
Java
17 lines
610 B
Java
package com.baiyue.lastleg;
|
|||
|
|
|
||
|
|
import com.baiyue.lastleg.delivery.dto.DeliveryRequests;
|
||
|
|
import com.baiyue.lastleg.inboundplan.dto.InboundPlanRequests;
|
||
|
|
import org.junit.jupiter.api.Test;
|
||
|
|
import org.springframework.beans.BeanUtils;
|
||
|
|
|
||
|
|
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
|
||
|
|
|
||
|
|
class QueryBindingContractTest {
|
||
|
|
@Test
|
||
|
|
void mvcQueryRecordsExposeOneResolvableConstructor() {
|
||
|
|
assertDoesNotThrow(() -> BeanUtils.getResolvableConstructor(DeliveryRequests.Query.class));
|
||
|
|
assertDoesNotThrow(() -> BeanUtils.getResolvableConstructor(InboundPlanRequests.Query.class));
|
||
|
|
}
|
||
|
|
}
|