]> git.basschouten.com Git - openhab-addons.git/blob
a948065d02c0f08b04a3b64e45b28f342360a12d
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.sensibo.internal.dto;
14
15 import static org.junit.jupiter.api.Assertions.*;
16
17 import java.io.IOException;
18
19 import org.junit.jupiter.api.Test;
20 import org.openhab.binding.sensibo.internal.dto.setacstateproperty.SetAcStatePropertyReponse;
21
22 /**
23  * @author Arne Seime - Initial contribution
24  */
25 public class SetAcStatePropertyResponseTest extends AbstractSerializationDeserializationTest {
26
27     @Test
28     public void testDeserialize() throws IOException {
29         final SetAcStatePropertyReponse rsp = wireHelper.deSerializeResponse("/set_acstate_response.json",
30                 SetAcStatePropertyReponse.class);
31
32         assertNotNull(rsp.acState);
33         assertTrue(rsp.acState.on);
34     }
35 }