apache / apache/dubbo

[Feature] JAVA: How to disabled Dubbo on unittest

Open
#14,375 1 comment 0 reactions 0 assignees View on GitHub
component/need-triage type/need-triage
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

### Pre-check

- [X] I am sure that all the content I provide is in English.

### Search before asking

- [X] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar feature requirement.

### Apache Dubbo Component

Java SDK (apache/dubbo)

### Descriptions

I want to exclude Dubbo, I tried but not work.
```
@EnableAutoConfiguration(exclude= {
DubboAutoConfiguration.class,
DubboListenerAutoConfiguration.class,
DubboRelaxedBindingAutoConfiguration.class,
DubboObservationAutoConfiguration.class,
DubboMicrometerTracingAutoConfiguration.class,
DubboRelaxedBinding2AutoConfiguration.class,
WebMvcObservationAutoConfiguration.class
})
```

### Related issues

_No response_

### Are you willing to submit a pull request to fix on your own?

- [ ] Yes I am willing to submit a pull request on my own!

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the unittest configuration from the issue and inspect the listed DubboAutoConfiguration and related auto-configuration entry points. Determine why the exclusions do not disable Dubbo, then document or implement the supported way to disable it and verify that a unittest starts without Dubbo initialization.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.