From 18990fec21f7eab81cd05db57fbde5b65059ee98 Mon Sep 17 00:00:00 2001 From: Simon Bernard Date: Wed, 10 Feb 2021 14:39:53 +0100 Subject: [PATCH] Add Redis Test about Send Operation. --- .../integration/tests/send/RedisSendTest.java | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 leshan-integration-tests/src/test/java/org/eclipse/leshan/integration/tests/send/RedisSendTest.java diff --git a/leshan-integration-tests/src/test/java/org/eclipse/leshan/integration/tests/send/RedisSendTest.java b/leshan-integration-tests/src/test/java/org/eclipse/leshan/integration/tests/send/RedisSendTest.java new file mode 100644 index 0000000000..fc7c70e948 --- /dev/null +++ b/leshan-integration-tests/src/test/java/org/eclipse/leshan/integration/tests/send/RedisSendTest.java @@ -0,0 +1,33 @@ +/******************************************************************************* + * Copyright (c) 2021 Sierra Wireless and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v2.0 + * and Eclipse Distribution License v1.0 which accompany this distribution. + * + * The Eclipse Public License is available at + * http://www.eclipse.org/legal/epl-v20.html + * and the Eclipse Distribution License is available at + * http://www.eclipse.org/org/documents/edl-v10.html. + * + * Contributors: + * Sierra Wireless - initial API and implementation + *******************************************************************************/ +package org.eclipse.leshan.integration.tests.send; + +import org.eclipse.leshan.client.resource.ObjectsInitializer; +import org.eclipse.leshan.core.model.StaticModel; +import org.eclipse.leshan.core.request.ContentFormat; +import org.eclipse.leshan.integration.tests.util.RedisIntegrationTestHelper; + +public class RedisSendTest extends SendTest { + public RedisSendTest(ContentFormat format) { + super(format); + helper = new RedisIntegrationTestHelper() { + @Override + protected ObjectsInitializer createObjectsInitializer() { + return new ObjectsInitializer(new StaticModel(createObjectModels())); + }; + }; + } +}