Addressing checkstyle issues

This commit is contained in:
Suresh Srinivas 2021-08-21 18:51:05 -07:00
parent 19151dcac7
commit e16c8aafc0
2 changed files with 8 additions and 5 deletions

View File

@ -232,8 +232,9 @@ public class TopicResource {
SecurityUtil.checkAdminOrBotRole(authorizer, securityContext); SecurityUtil.checkAdminOrBotRole(authorizer, securityContext);
Topic topic = Topic topic =
new Topic().withId(UUID.randomUUID()).withName(create.getName()).withDescription(create.getDescription()) new Topic().withId(UUID.randomUUID()).withName(create.getName()).withDescription(create.getDescription())
.withService(create.getService()).withPartitions(create.getPartitions()).withSchema(create.getSchema()) .withService(create.getService()).withPartitions(create.getPartitions())
.withSchemaType(create.getSchemaType()).withCleanupPolicies(create.getCleanupPolicies()) .withSchema(create.getSchema()).withSchemaType(create.getSchemaType())
.withCleanupPolicies(create.getCleanupPolicies())
.withMaximumMessageSize(create.getMaximumMessageSize()) .withMaximumMessageSize(create.getMaximumMessageSize())
.withMinimumInSyncReplicas(create.getMinimumInSyncReplicas()) .withMinimumInSyncReplicas(create.getMinimumInSyncReplicas())
.withRetentionSize(create.getRetentionSize()).withRetentionTime(create.getRetentionTime()); .withRetentionSize(create.getRetentionSize()).withRetentionTime(create.getRetentionTime());
@ -278,8 +279,9 @@ public class TopicResource {
Topic topic = Topic topic =
new Topic().withId(UUID.randomUUID()).withName(create.getName()).withDescription(create.getDescription()) new Topic().withId(UUID.randomUUID()).withName(create.getName()).withDescription(create.getDescription())
.withService(create.getService()).withPartitions(create.getPartitions()).withSchema(create.getSchema()) .withService(create.getService()).withPartitions(create.getPartitions())
.withSchemaType(create.getSchemaType()).withCleanupPolicies(create.getCleanupPolicies()) .withSchema(create.getSchema()).withSchemaType(create.getSchemaType())
.withCleanupPolicies(create.getCleanupPolicies())
.withMaximumMessageSize(create.getMaximumMessageSize()) .withMaximumMessageSize(create.getMaximumMessageSize())
.withMinimumInSyncReplicas(create.getMinimumInSyncReplicas()) .withMinimumInSyncReplicas(create.getMinimumInSyncReplicas())
.withRetentionSize(create.getRetentionSize()).withRetentionTime(create.getRetentionTime()); .withRetentionSize(create.getRetentionSize()).withRetentionTime(create.getRetentionTime());

View File

@ -326,7 +326,8 @@ public class MessagingServiceResourceTest extends CatalogApplicationTest {
// Ensure deleted service does not exist // Ensure deleted service does not exist
HttpResponseException exception = assertThrows(HttpResponseException.class, () -> getService(id, authHeaders)); HttpResponseException exception = assertThrows(HttpResponseException.class, () -> getService(id, authHeaders));
TestUtils.assertResponse(exception, NOT_FOUND, CatalogExceptionMessage.entityNotFound(Entity.MESSAGING_SERVICE, id)); TestUtils.assertResponse(exception, NOT_FOUND,
CatalogExceptionMessage.entityNotFound(Entity.MESSAGING_SERVICE, id));
// Ensure deleted service does not exist when getting by name // Ensure deleted service does not exist when getting by name
exception = assertThrows(HttpResponseException.class, () -> getServiceByName(name, null, authHeaders)); exception = assertThrows(HttpResponseException.class, () -> getServiceByName(name, null, authHeaders));