File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed
xds/src/test/java/io/grpc/xds Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change 4444import io .grpc .testing .protobuf .SimpleServiceGrpc ;
4545import org .junit .Rule ;
4646import org .junit .Test ;
47- import org .junit .rules .RuleChain ;
4847import org .junit .runner .RunWith ;
4948import org .junit .runners .JUnit4 ;
5049
7170@ RunWith (JUnit4 .class )
7271public class FakeControlPlaneXdsIntegrationTest {
7372
74- public ControlPlaneRule controlPlane ;
75- public DataPlaneRule dataPlane ;
76-
77- /**
78- * The {@link ControlPlaneRule} should run before the {@link DataPlaneRule}.
79- */
80- @ Rule
81- public RuleChain ruleChain () {
82- controlPlane = new ControlPlaneRule ();
83- dataPlane = new DataPlaneRule (controlPlane );
84- return RuleChain .outerRule (controlPlane ).around (dataPlane );
85- }
73+ @ Rule (order = 0 )
74+ public ControlPlaneRule controlPlane = new ControlPlaneRule ();
75+ @ Rule (order = 1 )
76+ public DataPlaneRule dataPlane = new DataPlaneRule (controlPlane );
8677
8778 @ Test
8879 public void pingPong () throws Exception {
You can’t perform that action at this time.
0 commit comments