-
Type:
Test
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.6.1, 1.7.0
-
Component/s: Runtime / Network, Tests
-
Labels:
Currently, five tests would create NetworkEnvironment in different places and the most of parameters are common in constructing it.
We can provide a simple way for constructing the NetworkEnvironment with less parameters to deduplicate the common codes, which can bring benefits for future new tests.
We can define a static nested NetworkEnvironmentBuilder inside the NetworkEnvironment or a simple constructor directly as the option.
- links to