Skip to content

Commit

Permalink
Add availability test for incubating classes
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-berg committed Feb 8, 2024
1 parent 5bd281c commit 279d886
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/

package io.opentelemetry.semconv.incubating;

import static org.assertj.core.api.Assertions.assertThatCode;

import org.junit.jupiter.api.Test;

/** A placeholder test which verifies that the generated classes compile and can load. */
public class IncubatingAvailabilityTest {

@Test
void available() {
classAvailable("io.opentelemetry.semconv.incubating.IncubatingResourceAttributes");
classAvailable("io.opentelemetry.semconv.incubating.IncubatingSemanticAttributes");
}

private static void classAvailable(String fqcn) {
assertThatCode(() -> Class.forName(fqcn)).doesNotThrowAnyException();
}
}

0 comments on commit 279d886

Please sign in to comment.