@Test public void testNonNullTopicSubpathWithNoLeadingSlash() { String subpath = "a/b/c"; TelemetryEvent event = new TelemetryEvent(new byte[1], subpath, TelemetryEvent.QOS_AT_MOST_ONCE); assertThat(event.getTopicSubpath()).isEqualTo("/" + subpath); }
public String getTopicSubpath() { return mTopicSubpath; }
TelemetryEvent { public String getTopicSubpath() { return mTopicSubpath; } }
TelemetryEvent { public String getTopicSubpath() { return mTopicSubpath; } TelemetryEvent(@NonNull byte[] data, @Nullable String topicSubpath, @Qos int qos); }
TelemetryEvent { public String getTopicSubpath() { return mTopicSubpath; } TelemetryEvent(@NonNull byte[] data, @Nullable String topicSubpath, @Qos int qos); byte[] getData(); String getTopicSubpath(); @Qos int getQos(); }
TelemetryEvent { public String getTopicSubpath() { return mTopicSubpath; } TelemetryEvent(@NonNull byte[] data, @Nullable String topicSubpath, @Qos int qos); byte[] getData(); String getTopicSubpath(); @Qos int getQos(); static final int QOS_AT_MOST_ONCE; static final int QOS_AT_LEAST_ONCE; }