fix:fix junit error in rate limit.

pull/201/head
SkyeBeFreeman 3 years ago
parent dc77ec0bec
commit 73b0dc966b

@ -71,7 +71,9 @@ import static org.powermock.api.mockito.PowerMockito.when;
@PowerMockIgnore({"javax.management.*", "javax.script.*"})
@PowerMockRunnerDelegate(SpringRunner.class)
@PrepareForTest(ExpressionLabelUtils.class)
@SpringBootTest(classes = QuotaCheckReactiveFilterTest.TestApplication.class)
@SpringBootTest(classes = QuotaCheckReactiveFilterTest.TestApplication.class, properties = {
"spring.cloud.polaris.namespace=Test", "spring.cloud.polaris.service=TestApp"
})
public class QuotaCheckReactiveFilterTest {
private PolarisRateLimiterLabelReactiveResolver labelResolver = exchange -> Collections.singletonMap("ReactiveResolver", "ReactiveResolver");

@ -71,7 +71,9 @@ import static org.powermock.api.mockito.PowerMockito.when;
@PowerMockIgnore({"javax.management.*", "javax.script.*"})
@PowerMockRunnerDelegate(SpringRunner.class)
@PrepareForTest(ExpressionLabelUtils.class)
@SpringBootTest(classes = QuotaCheckServletFilterTest.TestApplication.class)
@SpringBootTest(classes = QuotaCheckServletFilterTest.TestApplication.class, properties = {
"spring.cloud.polaris.namespace=Test", "spring.cloud.polaris.service=TestApp"
})
public class QuotaCheckServletFilterTest {
private PolarisRateLimiterLabelServletResolver labelResolver = exchange -> Collections.singletonMap("ServletResolver", "ServletResolver");

Loading…
Cancel
Save