End groovy files with newline (#7127)
This commit is contained in:
parent
31f4d12d31
commit
5345c87680
|
@ -14,6 +14,7 @@ spotless {
|
|||
plugins.withId("groovy") {
|
||||
groovy {
|
||||
licenseHeaderFile(rootProject.file("buildscripts/spotless.license.java"), "(package|import|class)")
|
||||
endWithNewline()
|
||||
}
|
||||
}
|
||||
plugins.withId("scala") {
|
||||
|
|
|
@ -25,4 +25,4 @@ tasks.test {
|
|||
doFirst {
|
||||
jvmArgs("-Dio.opentelemetry.smoketest.agent.shadowJar.path=${shadowTask.archiveFile.get()}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -107,4 +107,4 @@ class S3CamelTest extends AgentInstrumentationSpecification {
|
|||
}
|
||||
clearExportedData()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -132,4 +132,3 @@ class SnsCamelTest extends AgentInstrumentationSpecification {
|
|||
clearExportedData()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -250,4 +250,4 @@ class ApacheClientUriRequestContext extends ApacheHttpClientTest<HttpUriRequest>
|
|||
callback.accept(it)
|
||||
}, new BasicHttpContext())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -70,5 +70,3 @@ class AsyncHttpClientTest extends HttpClientTest<Request> implements AgentTestTr
|
|||
return null
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -784,4 +784,4 @@ class S3TracingTest extends AgentInstrumentationSpecification {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -228,4 +228,4 @@ class SnsTracingTest extends AgentInstrumentationSpecification {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -176,4 +176,4 @@ abstract class AbstractSqsTracingTest extends InstrumentationSpecification {
|
|||
then:
|
||||
receive.getAttributeNames() == ["AWSTraceHeader"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -186,4 +186,4 @@ abstract class AbstractAws2SqsTracingTest extends InstrumentationSpecification {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,4 +15,4 @@ type Book {
|
|||
type Author {
|
||||
id: ID
|
||||
name: String
|
||||
}
|
||||
}
|
||||
|
|
|
@ -610,4 +610,3 @@ class SessionTest extends AbstractHibernateTest {
|
|||
sessionId1 != sessionId2 != sessionId3
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -603,4 +603,3 @@ class SessionTest extends AbstractHibernateTest {
|
|||
sessionId1 != sessionId2 != sessionId3
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -184,4 +184,3 @@ class ProcedureCallTest extends AgentInstrumentationSpecification {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -101,4 +101,4 @@ interface ResteasyProxyResource {
|
|||
Response get_error(@QueryParam("with") String param,
|
||||
@HeaderParam("is-test-server") String isTestServer,
|
||||
@HeaderParam("test-request-id") String requestId)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,4 +38,4 @@ abstract class JaxRsJettyHttpServerTest extends JaxRsHttpServerTest<Server> {
|
|||
String getContextPath() {
|
||||
"/rest-app"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -237,4 +237,4 @@ class JaxRsTestApplication extends Application {
|
|||
|
||||
@ApplicationPath("/rest-app")
|
||||
class JaxRsApplicationPathTestApplication extends JaxRsTestApplication {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -56,4 +56,4 @@ class CxfFilterTest extends JaxRsFilterTest implements HttpServerTestTrait<Serve
|
|||
|
||||
return [response.contentUtf8(), response.status().code()]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,4 +40,4 @@ class CxfHttpServerTest extends JaxRsHttpServerTest<Server> {
|
|||
void stopServer(Server httpServer) {
|
||||
httpServer.stop()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
*/
|
||||
|
||||
class CxfJettyHttpServerTest extends JaxRsJettyHttpServerTest {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -81,4 +81,4 @@ class JerseyFilterTest extends JaxRsFilterTest implements HttpServerTestTrait<Se
|
|||
return singletons
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,4 +42,4 @@ class JerseyHttpServerTest extends JaxRsHttpServerTest<Server> {
|
|||
// disables a test that jersey deems invalid
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,4 +15,4 @@ class JerseyJettyHttpServerTest extends JaxRsJettyHttpServerTest {
|
|||
// disables a test that jersey deems invalid
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,4 +41,4 @@ class ResteasyFilterTest extends JaxRsFilterTest {
|
|||
return [response.contentAsString, response.status]
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,4 +32,4 @@ class ResteasyHttpServerTest extends JaxRsHttpServerTest<UndertowJaxrsServer> {
|
|||
boolean shouldTestCompletableStageAsync() {
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,4 +9,4 @@ class ResteasyJettyHttpServerTest extends JaxRsJettyHttpServerTest {
|
|||
boolean shouldTestCompletableStageAsync() {
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,4 +41,4 @@ class ResteasyFilterTest extends JaxRsFilterTest {
|
|||
return [response.contentAsString, response.status]
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,4 +27,4 @@ class ResteasyHttpServerTest extends JaxRsHttpServerTest<UndertowJaxrsServer> {
|
|||
void stopServer(UndertowJaxrsServer server) {
|
||||
server.stop()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
|
||||
class ResteasyJettyHttpServerTest extends JaxRsJettyHttpServerTest {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,4 +38,4 @@ abstract class JaxRsJettyHttpServerTest extends JaxRsHttpServerTest<Server> {
|
|||
String getContextPath() {
|
||||
"/rest-app"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -236,4 +236,4 @@ class JaxRsTestApplication extends Application {
|
|||
|
||||
@ApplicationPath("/rest-app")
|
||||
class JaxRsApplicationPathTestApplication extends JaxRsTestApplication {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -81,4 +81,4 @@ class JerseyFilterTest extends JaxRsFilterTest implements HttpServerTestTrait<Se
|
|||
return singletons
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,4 +42,4 @@ class JerseyHttpServerTest extends JaxRsHttpServerTest<Server> {
|
|||
// disables a test that jersey deems invalid
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,4 +15,4 @@ class JerseyJettyHttpServerTest extends JaxRsJettyHttpServerTest {
|
|||
// disables a test that jersey deems invalid
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,4 +40,4 @@ class ResteasyFilterTest extends JaxRsFilterTest {
|
|||
return [response.contentAsString, response.status]
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,4 +32,4 @@ class ResteasyHttpServerTest extends JaxRsHttpServerTest<UndertowJaxrsServer> {
|
|||
boolean shouldTestCompletableStageAsync() {
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
*/
|
||||
|
||||
class ResteasyJettyHttpServerTest extends JaxRsJettyHttpServerTest {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,4 +21,4 @@ interface HelloService {
|
|||
@WebResult(name = "message")
|
||||
String hello2(@WebParam(name = "name") String name)
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,4 +19,4 @@ class TestWsServlet extends CXFNonSpringServlet {
|
|||
EndpointImpl endpoint = new EndpointImpl(bus, implementor)
|
||||
endpoint.publish("/HelloService")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -61,4 +61,3 @@ class TestDataSource implements DataSource {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -269,4 +269,4 @@ class KafkaClientDefaultTest extends KafkaClientPropagationBaseTest {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,4 +83,4 @@ class KafkaClientPropagationDisabledTest extends KafkaClientPropagationBaseTest
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -184,4 +184,4 @@ class KafkaClientSuppressReceiveSpansTest extends KafkaClientPropagationBaseTest
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,4 +31,4 @@ abstract class KafkaClientPropagationBaseTest extends KafkaClientBaseTest implem
|
|||
assert record.headers().iterator().hasNext() == producerPropagationEnabled
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -100,4 +100,3 @@ class InterceptorsTest extends KafkaClientBaseTest implements LibraryTestTrait {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -107,4 +107,3 @@ class WrappersTest extends KafkaClientBaseTest implements LibraryTestTrait {
|
|||
testHeaders << [false, true]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -6,4 +6,4 @@
|
|||
import io.opentelemetry.instrumentation.test.LibraryTestTrait
|
||||
|
||||
class LibraryLog4j2Test extends Log4j2Test implements LibraryTestTrait {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,4 +35,4 @@ trait WithRabbitMqTrait {
|
|||
def stopRabbit() {
|
||||
rabbitMqContainer?.stop()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -152,4 +152,3 @@ abstract class AbstractRedissonAsyncClientTest extends AgentInstrumentationSpeci
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -315,4 +315,3 @@ abstract class AbstractRedissonClientTest extends AgentInstrumentationSpecificat
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -19,4 +19,4 @@ class RocketMqClientTest extends AbstractRocketMqClientTest implements AgentTest
|
|||
@Override
|
||||
void configureMQPushConsumer(DefaultMQPushConsumer consumer) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,4 +29,4 @@ class RocketMqClientTest extends AbstractRocketMqClientTest implements LibraryTe
|
|||
.setCaptureExperimentalSpanAttributes(true)
|
||||
.build().newTracingConsumeMessageHook())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,4 +39,4 @@ trait ApplicationConfigTrait {
|
|||
|
||||
def postProcessJob(String jobName, Job job) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,4 +33,4 @@ trait JavaxBatchConfigTrait {
|
|||
jobParams.setProperty("uniqueJobIdCounter", counter.getAndIncrement().toString())
|
||||
jobOperator.start(jobName, jobParams)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,4 +12,4 @@ class TestItemProcessor implements ItemProcessor {
|
|||
Object processItem(Object item) throws Exception {
|
||||
Integer.parseInt(item as String)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,4 +35,4 @@ class TestItemReader implements ItemReader {
|
|||
Serializable checkpointInfo() throws Exception {
|
||||
return null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,4 +29,4 @@ class TestItemWriter implements ItemWriter {
|
|||
Serializable checkpointInfo() throws Exception {
|
||||
return null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,4 +12,4 @@ class TestItemProcessor implements ItemProcessor<String, Integer> {
|
|||
Integer process(String item) throws Exception {
|
||||
Integer.parseInt(item)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,4 +14,4 @@ class TestItemReader extends ListItemReader<String> {
|
|||
TestItemReader() {
|
||||
super(IntStream.range(0, 13).mapToObj(String.&valueOf).collect(Collectors.toList()) as List<String>)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,4 +14,4 @@ class TestItemWriter implements ItemWriter<Integer> {
|
|||
void write(List<? extends Integer> items) throws Exception {
|
||||
this.items.addAll(items)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,4 +18,4 @@ class TestTasklet implements Tasklet {
|
|||
}
|
||||
RepeatStatus.FINISHED
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -100,4 +100,4 @@ trait WithRabbitProducerConsumerTrait {
|
|||
runWithSpan("consumer") {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -58,4 +58,3 @@ class SecurityConfig {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,4 +13,4 @@ class VertxLatestHttpServerTest extends AbstractVertxHttpServerTest {
|
|||
protected Class<? extends AbstractVerticle> verticle() {
|
||||
return VertxLatestWebServer
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -378,4 +378,4 @@ abstract class AppServerTest extends SmokeTest {
|
|||
[serverVersion, jdk, isWindows]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -100,4 +100,4 @@ class Jetty11Jdk11Openj9 extends JettySmokeTest {
|
|||
|
||||
@AppServer(version = "11.0.7", jdk = "16-openj9")
|
||||
class Jetty11Jdk16Openj9 extends JettySmokeTest {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -56,4 +56,4 @@ class LogsSmokeTest extends SmokeTest {
|
|||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -68,4 +68,4 @@ class Payara52021Jdk11 extends PayaraSmokeTest {
|
|||
|
||||
@AppServer(version = "5.2021.8", jdk = "11-openj9")
|
||||
class Payara52021Jdk11Openj9 extends PayaraSmokeTest {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,4 +53,4 @@ class PrometheusSmokeTest extends SmokeTest {
|
|||
jdk << [8, 11, 17]
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -57,4 +57,3 @@ class SdkDisabledSmokeTest extends SmokeTest {
|
|||
jdk << [8, 11, 17]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -112,4 +112,4 @@ class Tomcat10Jdk8Openj9 extends TomcatSmokeTest {
|
|||
|
||||
@AppServer(version = "10.0.12", jdk = "11-openj9")
|
||||
class Tomcat10Jdk11Openj9 extends TomcatSmokeTest {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -108,4 +108,4 @@ class Tomee9Jdk11Openj9 extends TomeeSmokeTest {
|
|||
|
||||
@AppServer(version = "9.0.0-M7", jdk = "16-openj9")
|
||||
class Tomee9Jdk16Openj9 extends TomeeSmokeTest {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,4 +40,4 @@ class Websphere8Jdk8Openj9 extends WebsphereSmokeTest {
|
|||
|
||||
@AppServer(version = "9.0.5.9", jdk = "8-openj9")
|
||||
class Websphere9Jdk8Openj9 extends WebsphereSmokeTest {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -157,4 +157,4 @@ class Wildfly25Jdk11Openj9 extends WildflySmokeTest {
|
|||
|
||||
@AppServer(version = "25.0.1.Final", jdk = "16-openj9")
|
||||
class Wildfly25Jdk16Openj9 extends WildflySmokeTest {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -224,5 +224,3 @@ class FieldBackedImplementationTest extends AgentInstrumentationSpecification {
|
|||
new UntransformableKeyClass().incrementContextCount() == 1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -38,4 +38,4 @@ trait RetryOnAddressAlreadyInUseTrait {
|
|||
withRetryOnAddressAlreadyInUse(closure, numRetries - 1)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue