diff --git a/components/serialization/form/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java b/components/serialization/form/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java index 99c51ac84..b439f663b 100644 --- a/components/serialization/form/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java +++ b/components/serialization/form/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java @@ -54,8 +54,8 @@ public PeriodAndDuration getWorkDuration() { return _workDuration; } - public void setWorkDuration(PeriodAndDuration value) { - this._workDuration = value; + public void setWorkDuration(final PeriodAndDuration value) { + this._workDuration = PeriodAndDuration.of(value.getPeriod(), value.getDuration()); } private LocalTime _startWorkTime; diff --git a/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java b/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java index 97185e58d..e3397964e 100644 --- a/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java +++ b/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java @@ -49,7 +49,7 @@ public PeriodAndDuration getWorkDuration() { } public void setWorkDuration(PeriodAndDuration value) { - this._workDuration = value; + this._workDuration = PeriodAndDuration.of(value.getPeriod(), value.getDuration()); } private LocalTime _startWorkTime; diff --git a/components/serialization/multipart/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java b/components/serialization/multipart/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java index 99c51ac84..bea48bd3e 100644 --- a/components/serialization/multipart/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java +++ b/components/serialization/multipart/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java @@ -55,7 +55,7 @@ public PeriodAndDuration getWorkDuration() { } public void setWorkDuration(PeriodAndDuration value) { - this._workDuration = value; + this._workDuration = PeriodAndDuration.of(value.getPeriod(), value.getDuration()); } private LocalTime _startWorkTime;