-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update example to follow current conventions. (#212)
- Loading branch information
Showing
4 changed files
with
32 additions
and
42 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
plugins { | ||
id("otel.java-conventions") | ||
} | ||
|
||
description = "An example OpenTelemetry Java Contrib library" | ||
|
||
tasks { | ||
jar { | ||
manifest { | ||
attributes["Main-Class"] = "io.opentelemetry.contrib.example.Library" | ||
} | ||
} | ||
} |
30 changes: 0 additions & 30 deletions
30
example/src/test/groovy/io/opentelemetry/contrib/example/LibraryTest.groovy
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
example/src/test/java/io/opentelemetry/contrib/example/LibraryTest.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,19 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.contrib.example; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
class LibraryTest { | ||
|
||
@Test | ||
void myMethod() { | ||
Library library = new Library(); | ||
assertThat(library.myMethod()).isTrue(); | ||
} | ||
} |