Skip to content

Commit

Permalink
Add spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Oct 13, 2023
1 parent ae9670e commit ff6ecef
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public final class IgnoreJobErrorHandlerTest {

@Test
public void assertHandleException() {
JobErrorHandlerFactory.createHandler("IGNORE", new Properties()).orElseThrow(
() -> new JobConfigurationException("IGNORE error handler not found.")).handleException("test_job", new RuntimeException("test"));
JobErrorHandlerFactory.createHandler("IGNORE", new Properties())
.orElseThrow(() -> new JobConfigurationException("IGNORE error handler not found.")).handleException("test_job", new RuntimeException("test"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ public void assertNewTypedServiceInstance() {

@Test
public void assertGetCacheTypedServiceFailureWithUnRegisteredServiceInterface() {
Assertions.assertThrows(IllegalArgumentException.class,
() -> ElasticJobServiceLoader.getCachedTypedServiceInstance(UnRegisteredTypedFooService.class, "unRegisteredTypedFooServiceImpl").orElseThrow(IllegalArgumentException::new));
Assertions.assertThrows(IllegalArgumentException.class, () -> ElasticJobServiceLoader.getCachedTypedServiceInstance(
UnRegisteredTypedFooService.class, "unRegisteredTypedFooServiceImpl").orElseThrow(IllegalArgumentException::new));
}

@Test
public void assertGetCacheTypedServiceFailureWithInvalidType() {
Assertions.assertThrows(IllegalArgumentException.class,
() -> ElasticJobServiceLoader.getCachedTypedServiceInstance(TypedFooService.class, "INVALID").orElseThrow(IllegalArgumentException::new));
Assertions.assertThrows(IllegalArgumentException.class, () -> ElasticJobServiceLoader.getCachedTypedServiceInstance(
TypedFooService.class, "INVALID").orElseThrow(IllegalArgumentException::new));
}

@Test
Expand All @@ -65,7 +65,7 @@ public void assertNewTypedServiceInstanceFailureWithUnRegisteredServiceInterface

@Test
public void assertNewTypedServiceInstanceFailureWithInvalidType() {
Assertions.assertThrows(IllegalArgumentException.class,
() -> ElasticJobServiceLoader.newTypedServiceInstance(TypedFooService.class, "INVALID", new Properties()).orElseThrow(IllegalArgumentException::new));
Assertions.assertThrows(IllegalArgumentException.class, () -> ElasticJobServiceLoader.newTypedServiceInstance(
TypedFooService.class, "INVALID", new Properties()).orElseThrow(IllegalArgumentException::new));
}
}
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven-checkstyle-plugin.version}</version>
<configuration>
<configLocation>src/main/resources/checkstyle_ci.xml</configLocation>
<configLocation>src/resources/checkstyle_ci.xml</configLocation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
</configuration>
<executions>
Expand Down Expand Up @@ -799,7 +799,7 @@
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven-checkstyle-plugin.version}</version>
<configuration>
<configLocation>src/main/resources/checkstyle.xml</configLocation>
<configLocation>src/resources/checkstyle.xml</configLocation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
</configuration>
</plugin>
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit ff6ecef

Please sign in to comment.