Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure TCKs are CDI-version agnostic #666

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

import org.eclipse.microprofile.metrics.annotation.SimplyTimed;

import jakarta.enterprise.context.Dependent;

@Dependent
public class InheritedSimplyTimedMethodBean extends VisibilitySimplyTimedMethodBean {

@SimplyTimed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

import org.eclipse.microprofile.metrics.annotation.Timed;

import jakarta.enterprise.context.Dependent;

@Dependent
public class InheritedTimedMethodBean extends VisibilityTimedMethodBean {

@Timed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

import org.eclipse.microprofile.metrics.annotation.SimplyTimed;

import jakarta.enterprise.context.Dependent;

@Dependent
public class VisibilitySimplyTimedMethodBean {

@SimplyTimed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

import org.eclipse.microprofile.metrics.annotation.Timed;

import jakarta.enterprise.context.Dependent;

@Dependent
public class VisibilityTimedMethodBean {

@Timed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
*/
package org.eclipse.microprofile.metrics.tck.metrics;

import jakarta.enterprise.context.Dependent;

@Dependent
public class ConcreteExtendedTimedBean extends AbstractTimedBean {

public void anotherTimedMethod() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

import org.eclipse.microprofile.metrics.annotation.Timed;

import jakarta.enterprise.context.Dependent;

@Dependent
@Timed
public class ConcreteTimedBean extends AbstractGenericBean {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@

import org.eclipse.microprofile.metrics.annotation.ConcurrentGauge;

import jakarta.enterprise.context.Dependent;

@Dependent
@ConcurrentGauge(name = "cGaugedClass")
public class ConcurrentGaugedClassBean {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

import org.eclipse.microprofile.metrics.annotation.ConcurrentGauge;

import jakarta.enterprise.context.Dependent;

@Dependent
public class ConcurrentGaugedConstructorBean {

@ConcurrentGauge(name = "cGaugedConstructor")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@

import org.eclipse.microprofile.metrics.annotation.ConcurrentGauge;

import jakarta.enterprise.context.Dependent;

@Dependent
public class ConcurrentGaugedMethodBean<T> {

@ConcurrentGauge(name = "cGaugedMethod", absolute = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

import org.eclipse.microprofile.metrics.annotation.Counted;

import jakarta.enterprise.context.Dependent;

@Dependent
@Counted(name = "countedClass")
public class CountedClassBean {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@

import org.eclipse.microprofile.metrics.annotation.Counted;

import jakarta.enterprise.context.Dependent;

@Dependent
public class CountedMethodBean<T> {

@Counted(name = "countedMethod", absolute = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@

import org.eclipse.microprofile.metrics.annotation.Counted;

import jakarta.enterprise.context.Dependent;

@Dependent
public class CountedMethodTagBean {

@Counted(name = "countedMethod", absolute = true, tags = {"number=one"})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
import org.eclipse.microprofile.metrics.Counter;
import org.eclipse.microprofile.metrics.annotation.Metric;

import jakarta.enterprise.context.Dependent;
import jakarta.inject.Inject;

@Dependent
public class CounterFieldBean {

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
import org.eclipse.microprofile.metrics.annotation.Metered;
import org.eclipse.microprofile.metrics.annotation.Timed;

import jakarta.enterprise.context.Dependent;

@Dependent
public class DefaultNameMetricMethodBean {

@Counted
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
import org.eclipse.microprofile.metrics.Histogram;
import org.eclipse.microprofile.metrics.annotation.Metric;

import jakarta.enterprise.context.Dependent;
import jakarta.inject.Inject;

@Dependent
public class HistogramFieldBean {

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

import org.eclipse.microprofile.metrics.annotation.Metered;

import jakarta.enterprise.context.Dependent;

@Dependent
@Metered(name = "meteredClass")
public class MeteredClassBean {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

import org.eclipse.microprofile.metrics.annotation.Metered;

import jakarta.enterprise.context.Dependent;

@Dependent
public class MeteredConstructorBean {

@Metered(name = "meteredConstructor", absolute = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

import org.eclipse.microprofile.metrics.annotation.Metered;

import jakarta.enterprise.context.Dependent;

@Dependent
public class MeteredMethodBean1 {

@Metered(name = "meteredMethod")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

import org.eclipse.microprofile.metrics.annotation.Metered;

import jakarta.enterprise.context.Dependent;

@Dependent
public class MeteredMethodBean2 {

@Metered(name = "meteredMethod")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
import org.eclipse.microprofile.metrics.annotation.Metered;
import org.eclipse.microprofile.metrics.annotation.Timed;

import jakarta.enterprise.context.Dependent;

@Dependent
public class MultipleMetricsConstructorBean {

@Counted(name = "counter")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@

import org.eclipse.microprofile.metrics.annotation.Timed;

import jakarta.enterprise.context.Dependent;

@Dependent
public class OverloadedTimedMethodBean {

@Timed(name = "overloadedTimedMethodWithNoArguments")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@
import org.eclipse.microprofile.metrics.SimpleTimer;
import org.eclipse.microprofile.metrics.annotation.Metric;

import jakarta.enterprise.context.Dependent;
import jakarta.inject.Inject;

@Dependent
public class SimpleTimerFieldBean {

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

import org.eclipse.microprofile.metrics.annotation.SimplyTimed;

import jakarta.enterprise.context.Dependent;

@Dependent
public class SimplyTimedConstructorBean {

@SimplyTimed(name = "simplyTimedConstructor")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

import org.eclipse.microprofile.metrics.annotation.SimplyTimed;

import jakarta.enterprise.context.Dependent;

@Dependent
public class SimplyTimedMethodBean1 {

@SimplyTimed(name = "simplyTimedMethod")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

import org.eclipse.microprofile.metrics.annotation.SimplyTimed;

import jakarta.enterprise.context.Dependent;

@Dependent
public class SimplyTimedMethodBean2 {

@SimplyTimed(name = "simplyTimedMethod")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

import org.eclipse.microprofile.metrics.annotation.SimplyTimed;

import jakarta.enterprise.context.Dependent;

@Dependent
public class SimplyTimedMethodBean3 {

@SimplyTimed(name = "simplyTimedMethod")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

import org.eclipse.microprofile.metrics.annotation.Timed;

import jakarta.enterprise.context.Dependent;

@Dependent
public class TimedConstructorBean {

@Timed(name = "timedConstructor")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

import org.eclipse.microprofile.metrics.annotation.Timed;

import jakarta.enterprise.context.Dependent;

@Dependent
public class TimedMethodBean1 {

@Timed(name = "timedMethod")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

import org.eclipse.microprofile.metrics.annotation.Timed;

import jakarta.enterprise.context.Dependent;

@Dependent
public class TimedMethodBean2 {

@Timed(name = "timedMethod")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

import org.eclipse.microprofile.metrics.annotation.Timed;

import jakarta.enterprise.context.Dependent;

@Dependent
public class TimedMethodBean3 {

@Timed(name = "timedMethod")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
import org.eclipse.microprofile.metrics.Timer;
import org.eclipse.microprofile.metrics.annotation.Metric;

import jakarta.enterprise.context.Dependent;
import jakarta.inject.Inject;

@Dependent
public class TimerFieldBean {

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
import org.eclipse.microprofile.metrics.Counter;
import org.eclipse.microprofile.metrics.annotation.Metric;

import jakarta.enterprise.context.Dependent;
import jakarta.inject.Inject;

@Dependent
public class CounterFieldTagBean {

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
import org.eclipse.microprofile.metrics.Histogram;
import org.eclipse.microprofile.metrics.annotation.Metric;

import jakarta.enterprise.context.Dependent;
import jakarta.inject.Inject;

@Dependent
public class HistogramTagFieldBean {

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@

import org.eclipse.microprofile.metrics.annotation.Metered;

import jakarta.enterprise.context.Dependent;

@Dependent
public class MeteredTagMethodBean {

@Metered(name = "meteredMethod", tags = {"number=one"})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
import org.eclipse.microprofile.metrics.SimpleTimer;
import org.eclipse.microprofile.metrics.annotation.Metric;

import jakarta.enterprise.context.Dependent;
import jakarta.inject.Inject;

@Dependent
public class SimpleTimerTagFieldBean {

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@

import org.eclipse.microprofile.metrics.annotation.SimplyTimed;

import jakarta.enterprise.context.Dependent;

@Dependent
public class SimplyTimedTagMethodBean {

@SimplyTimed(name = "simplyTimedMethod", tags = {"number=one"})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@

import org.eclipse.microprofile.metrics.annotation.Timed;

import jakarta.enterprise.context.Dependent;

@Dependent
public class TimedTagMethodBean {

@Timed(name = "timedMethod", tags = {"number=one"})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
import org.eclipse.microprofile.metrics.Timer;
import org.eclipse.microprofile.metrics.annotation.Metric;

import jakarta.enterprise.context.Dependent;
import jakarta.inject.Inject;

@Dependent
public class TimerTagFieldBean {

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
import org.eclipse.microprofile.metrics.annotation.Metered;
import org.eclipse.microprofile.metrics.annotation.Timed;

import jakarta.enterprise.context.Dependent;

@Dependent
public class DependentScopedBean {

@Counted(name = "counter", absolute = true)
Expand Down