mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-17 04:52:17 +00:00
Addressing checkstyle issues
This commit is contained in:
parent
19151dcac7
commit
e16c8aafc0
@ -232,8 +232,9 @@ public class TopicResource {
|
||||
SecurityUtil.checkAdminOrBotRole(authorizer, securityContext);
|
||||
Topic topic =
|
||||
new Topic().withId(UUID.randomUUID()).withName(create.getName()).withDescription(create.getDescription())
|
||||
.withService(create.getService()).withPartitions(create.getPartitions()).withSchema(create.getSchema())
|
||||
.withSchemaType(create.getSchemaType()).withCleanupPolicies(create.getCleanupPolicies())
|
||||
.withService(create.getService()).withPartitions(create.getPartitions())
|
||||
.withSchema(create.getSchema()).withSchemaType(create.getSchemaType())
|
||||
.withCleanupPolicies(create.getCleanupPolicies())
|
||||
.withMaximumMessageSize(create.getMaximumMessageSize())
|
||||
.withMinimumInSyncReplicas(create.getMinimumInSyncReplicas())
|
||||
.withRetentionSize(create.getRetentionSize()).withRetentionTime(create.getRetentionTime());
|
||||
@ -278,8 +279,9 @@ public class TopicResource {
|
||||
|
||||
Topic topic =
|
||||
new Topic().withId(UUID.randomUUID()).withName(create.getName()).withDescription(create.getDescription())
|
||||
.withService(create.getService()).withPartitions(create.getPartitions()).withSchema(create.getSchema())
|
||||
.withSchemaType(create.getSchemaType()).withCleanupPolicies(create.getCleanupPolicies())
|
||||
.withService(create.getService()).withPartitions(create.getPartitions())
|
||||
.withSchema(create.getSchema()).withSchemaType(create.getSchemaType())
|
||||
.withCleanupPolicies(create.getCleanupPolicies())
|
||||
.withMaximumMessageSize(create.getMaximumMessageSize())
|
||||
.withMinimumInSyncReplicas(create.getMinimumInSyncReplicas())
|
||||
.withRetentionSize(create.getRetentionSize()).withRetentionTime(create.getRetentionTime());
|
||||
|
@ -326,7 +326,8 @@ public class MessagingServiceResourceTest extends CatalogApplicationTest {
|
||||
|
||||
// Ensure deleted service does not exist
|
||||
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
|
||||
exception = assertThrows(HttpResponseException.class, () -> getServiceByName(name, null, authHeaders));
|
||||
|
Loading…
x
Reference in New Issue
Block a user