kopia lustrzana https://github.com/bertrik/ttnhabbridge
26 wiersze
533 B
Java
26 wiersze
533 B
Java
package nl.sikken.bertrik.hab.habitat.docs;
|
|
|
|
import java.time.Instant;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.Test;
|
|
|
|
/**
|
|
* Unit tests for PayloadTelemetryDoc.
|
|
*/
|
|
public final class PayloadTelemetryDocTest {
|
|
|
|
/**
|
|
* Verifies basic formatting.
|
|
*/
|
|
@Test
|
|
public void testFormat() {
|
|
final Instant instant = Instant.now();
|
|
final PayloadTelemetryDoc doc = new PayloadTelemetryDoc(instant, "BERTRIK", new byte[] {1, 2, 3});
|
|
final String json = doc.format();
|
|
|
|
Assert.assertNotNull(json);
|
|
}
|
|
|
|
}
|