-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Redis Test about Send Operation.
- Loading branch information
1 parent
fdd3111
commit 18990fe
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...egration-tests/src/test/java/org/eclipse/leshan/integration/tests/send/RedisSendTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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())); | ||
}; | ||
}; | ||
} | ||
} |