2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.onewire.device;
15 import static org.openhab.binding.onewire.internal.OwBindingConstants.THING_TYPE_BASIC;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.junit.jupiter.api.BeforeEach;
19 import org.junit.jupiter.api.Test;
20 import org.openhab.binding.onewire.internal.OwException;
21 import org.openhab.binding.onewire.internal.device.DS2401;
22 import org.openhab.core.library.types.OnOffType;
25 * Tests cases for {@link DS2401}.
27 * @author Jan N. Klug - Initial contribution
30 public class DS2401Test extends DeviceTestParent<DS2401> {
33 public void setupMocks() {
34 setupMocks(THING_TYPE_BASIC, DS2401.class);
38 public void presenceTestOn() throws OwException {
39 presenceTest(OnOffType.ON);
43 public void presenceTestOff() throws OwException {
44 presenceTest(OnOffType.OFF);