Skip to content

Commit

Permalink
修复test问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chengyouling committed Oct 26, 2024
1 parent 6d7883a commit 2779e07
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@
public class RBACRequestAuthHeaderProviderTest {
private final BootstrapProperties bootstrapProperties = Mockito.mock(BootstrapProperties.class);

private final DiscoveryBootstrapProperties discoveryProperties = Mockito.mock(DiscoveryBootstrapProperties.class);
private final DiscoveryBootstrapProperties discoveryProperties = new DiscoveryBootstrapProperties();

private final ServiceCombSSLProperties serviceCombSSLProperties = Mockito.mock(ServiceCombSSLProperties.class);

private final ServiceCombRBACProperties serviceCombRBACProperties = Mockito.mock(ServiceCombRBACProperties.class);

@BeforeEach
public void setUp() {
discoveryProperties.setAddress("http://127.0.0.1:30100");
Mockito.when(bootstrapProperties.getDiscoveryBootstrapProperties()).thenReturn(discoveryProperties);
Mockito.when(bootstrapProperties.getServiceCombSSLProperties()).thenReturn(serviceCombSSLProperties);
Mockito.when(bootstrapProperties.getServiceCombRBACProperties()).thenReturn(serviceCombRBACProperties);
Expand Down

0 comments on commit 2779e07

Please sign in to comment.