Skip to content

Commit

Permalink
make the ImmutableBaggage package access
Browse files Browse the repository at this point in the history
  • Loading branch information
jkwatson committed Oct 21, 2020
1 parent 7a75c84 commit cd01df9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@Immutable
// TODO: Migrate to AutoValue
// @AutoValue
public class ImmutableBaggage implements Baggage {
class ImmutableBaggage implements Baggage {
static final Baggage EMPTY = new ImmutableBaggage.Builder().build();

// The types of the EntryKey and Entry must match for each entry.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@
import io.opentelemetry.baggage.BaggageUtils;
import io.opentelemetry.baggage.Entry;
import io.opentelemetry.baggage.EntryMetadata;
import io.opentelemetry.baggage.ImmutableBaggage;
import io.opentelemetry.context.Scope;
import org.junit.jupiter.api.Test;

/**
* Unit tests for the methods in {@link BaggageUtils} and {@link ImmutableBaggage} that interact
* with the current {@link Baggage}.
* Unit tests for the methods in {@link BaggageUtils} and {@link Baggage} that interact with the
* current {@link Baggage}.
*/
class ScopedBaggageTest {

Expand All @@ -38,7 +37,6 @@ class ScopedBaggageTest {
void emptyBaggage() {
Baggage defaultBaggage = BaggageUtils.getCurrentBaggage();
assertThat(defaultBaggage.getEntries()).isEmpty();
assertThat(defaultBaggage).isInstanceOf(ImmutableBaggage.class);
}

@Test
Expand Down

0 comments on commit cd01df9

Please sign in to comment.