Skip to content

Commit

Permalink
- fix formatting + Header
Browse files Browse the repository at this point in the history
  • Loading branch information
pefernan committed Jan 24, 2025
1 parent 77025a0 commit e414490
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
*/
package org.kie.kogito.index.service;

import io.restassured.http.ContentType;
import java.util.Collection;

import org.junit.jupiter.api.Test;
import org.kie.kogito.index.service.test.InMemoryMessageTestProfile;
import org.kie.kogito.index.test.TestUtils;

import io.quarkus.test.junit.QuarkusTest;
import io.quarkus.test.junit.TestProfile;

import java.util.Collection;
import io.restassured.http.ContentType;

import static io.restassured.RestAssured.given;
import static org.hamcrest.CoreMatchers.isA;
Expand All @@ -44,6 +44,7 @@ protected String getProcessProtobufFileContent() throws Exception {
protected String getUserTaskProtobufFileContent() throws Exception {
return TestUtils.readFileContent("deals-mongo.proto");
}

@Test
void testAddProtoFileTwice() throws Exception {
protobufService.registerProtoBufferType(getProtoBufferFileV1());
Expand All @@ -66,6 +67,7 @@ void testAddProtoFileTwice() throws Exception {
.when().post("/graphql")
.then().log().ifValidationFails().statusCode(200).body("data.ProcessInstances", isA(Collection.class));
}

private String getProtoBufferFileV1() {
return "package org.demo;\n" +
"import \"kogito-index.proto\";\n" +
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.kie.kogito.jobs.service.repository.jpa;

import java.time.OffsetDateTime;
Expand Down

0 comments on commit e414490

Please sign in to comment.