File tree Expand file tree Collapse file tree 4 files changed +39
-30
lines changed
instrumentation/cdi-testing/src/test
java/io/opentelemetry/test/cdi Expand file tree Collapse file tree 4 files changed +39
-30
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md).
154154
155155Triagers ([ @open-telemetry/java-instrumentation-triagers ] ( https://github.com/orgs/open-telemetry/teams/java-instrumentation-triagers ) ):
156156
157- - [ Jay Deluca ] ( https://github.com/jaydeluca )
157+ - [ Jay DeLuca ] ( https://github.com/jaydeluca )
158158- [ Jonas Kunz] ( https://github.com/JonasKunz ) , Elastic
159159- [ Steve Rao] ( https://github.com/steverao ) , Alibaba
160160- [ Sylvain Juge] ( https://github.com/SylvainJuge ) , Elastic
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright The OpenTelemetry Authors
3+ * SPDX-License-Identifier: Apache-2.0
4+ */
5+
6+ package io .opentelemetry .test .cdi ;
7+
8+ import static org .assertj .core .api .Assertions .assertThat ;
9+
10+ import io .opentelemetry .instrumentation .testing .junit .AgentInstrumentationExtension ;
11+ import io .opentelemetry .instrumentation .testing .junit .InstrumentationExtension ;
12+ import org .jboss .weld .environment .se .Weld ;
13+ import org .jboss .weld .environment .se .WeldContainer ;
14+ import org .jboss .weld .environment .se .threading .RunnableDecorator ;
15+ import org .junit .jupiter .api .Test ;
16+ import org .junit .jupiter .api .extension .RegisterExtension ;
17+
18+ class CdiContainerTest {
19+ @ RegisterExtension
20+ static final InstrumentationExtension testing = AgentInstrumentationExtension .create ();
21+
22+ @ Test
23+ public void cdiContainerStartsWithAgent () {
24+ Weld builder =
25+ new Weld ()
26+ .disableDiscovery ()
27+ .addDecorator (RunnableDecorator .class )
28+ .addBeanClass (TestBean .class );
29+ WeldContainer container = builder .initialize ();
30+
31+ assertThat (container .isRunning ()).isTrue ();
32+ if (container != null ) {
33+ container .shutdown ();
34+ }
35+ }
36+ }
Original file line number Diff line number Diff line change 33 * SPDX-License-Identifier: Apache-2.0
44 */
55
6+ package io .opentelemetry .test .cdi ;
7+
68public class TestBean {
79
810 private String someField ;
You can’t perform that action at this time.
0 commit comments