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.persistence.dynamodb.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.library.types.DecimalType;
17 import org.openhab.core.library.types.OnOffType;
18 import org.openhab.core.library.types.PlayPauseType;
19 import org.openhab.core.library.types.StringType;
23 * @author Sami Salonen - Initial contribution
27 public class TestStoreMixedTypesLegacyTest extends TestStoreMixedTypesTest {
29 public static final boolean LEGACY_MODE = true;
32 protected PlayPauseType[] expectedPlayerItem() {
33 return new PlayPauseType[] { PlayPauseType.PAUSE };
37 protected StringType[] expectedStringItem() {
38 return new StringType[] { StringType.valueOf("a1"), StringType.valueOf("b1"), StringType.valueOf("PAUSE") };
42 protected OnOffType[] expectedSwitchItem() {
43 return new OnOffType[] { /* 33.14 */OnOffType.ON, /* 66.28 */ OnOffType.ON, OnOffType.ON, OnOffType.OFF, };
47 protected DecimalType[] expectedNumberItem() {
48 return new DecimalType[] { DecimalType.valueOf("33.14"), DecimalType.valueOf("66.28"),
49 /* on */DecimalType.valueOf("1"), /* off */DecimalType.valueOf("0") };