Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
livk-cloud committed Nov 25, 2023
1 parent c1ca6c7 commit 590ac53
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*/
@Disabled("单独测试,性能损耗大")
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT,
useMainMethod = SpringBootTest.UseMainMethod.ALWAYS)
useMainMethod = SpringBootTest.UseMainMethod.ALWAYS)
class WebSocketClientTestTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ void lock() throws InterruptedException {
try {
mockMvc.perform(get("/lock").queryParam("id", param)).andExpect(status().isOk());
countDownLatch.countDown();
} catch (Exception e) {
}
catch (Exception e) {
throw new RuntimeException(e);
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ public class ClassPathHttpScanner extends ClassPathBeanDefinitionScanner {

/**
* Instantiates a new Class path http scanner.
*
* @param registry the registry
* @param registry the registry
* @param environment the environment
*/
public ClassPathHttpScanner(BeanDefinitionRegistry registry, Environment environment) {
Expand All @@ -66,7 +65,6 @@ public ClassPathHttpScanner(BeanDefinitionRegistry registry, Environment environ

/**
* Register filters.
*
* @param annotationType the annotation type
*/
public void registerFilters(Class<? extends Annotation> annotationType) {
Expand Down Expand Up @@ -95,7 +93,8 @@ protected Set<BeanDefinitionHolder> doScan(@NonNull String... basePackages) {
AdapterFactory<? extends HttpExchangeAdapter> adapterFactory = AdapterType.builder(type);
String beanClassName = candidateComponent.getBeanClassName();
Assert.notNull(beanClassName, "beanClassName not be null");
Class<?> beanType = ClassUtils.resolveClassName(beanClassName, super.getResourceLoader().getClassLoader());
Class<?> beanType = ClassUtils.resolveClassName(beanClassName,
super.getResourceLoader().getClassLoader());
BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(HttpFactoryBean.class);
builder.addPropertyValue("type", beanType);
builder.addPropertyValue("adapterFactory", adapterFactory);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ public class BeanFactoryHttpExchangeAdapter implements HttpExchangeAdapter {

/**
* Instantiates a new Bean factory http exchange adapter.
*
* @param factory the factory
* @param factory the factory
* @param beanFactory the bean factory
*/
public BeanFactoryHttpExchangeAdapter(AdapterFactory<?> factory, BeanFactory beanFactory) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ void testBuyLocal() throws InterruptedException {
try {
mockMvc.perform(post("/shop/buy/distributed")).andExpect(status().isOk());
countDownLatch.countDown();
} catch (Exception e) {
}
catch (Exception e) {
throw new RuntimeException(e);
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ void testBuyLocal() throws InterruptedException {
try {
mockMvc.perform(post("/shop/buy/local")).andExpect(status().isOk());
countDownLatch.countDown();
} catch (Exception e) {
}
catch (Exception e) {
throw new RuntimeException(e);
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ void testBuyLocal() throws InterruptedException {
try {
mockMvc.perform(post("/shop/buy/distributed")).andExpect(status().isOk());
countDownLatch.countDown();
} catch (Exception e) {
}
catch (Exception e) {
throw new RuntimeException(e);
}
});
Expand Down

0 comments on commit 590ac53

Please sign in to comment.