arne-bdt commented on code in PR #2794: URL: https://github.com/apache/jena/pull/2794#discussion_r1818141582
########## jena-integration-tests/src/test/java/org/apache/jena/sys/TestJenaSystemWithFreshJVM.java: ########## @@ -0,0 +1,95 @@ +/* + * 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.apache.jena.sys; + +import org.apache.jena.rdfconnection.RDFConnectionFuseki; +import org.junit.Assert; +import org.junit.Test; +import org.openjdk.jmh.annotations.Benchmark; +import org.openjdk.jmh.annotations.Mode; +import org.openjdk.jmh.annotations.Scope; +import org.openjdk.jmh.annotations.State; +import org.openjdk.jmh.runner.Runner; +import org.openjdk.jmh.runner.options.OptionsBuilder; +import org.openjdk.jmh.runner.options.TimeValue; + +import java.util.concurrent.TimeUnit; + +/** + * This test is not a benchmark but a test to ensure that the test methods from {@link TestJenaSystem} are executed + * in a fresh JVM. + */ +@State(Scope.Benchmark) +public class TestJenaSystemWithFreshJVM { Review Comment: I am not sure about Eclipse... I tried to integrate JMH exactly like I did with `jena-benchmarks-jmh`. Does this run in Eclipse? For maven, I thougt adding the `compilerArgs` `-proc:full` did the trick. But I might have been tricked by a JMH Plugin for IntellJ... I will try to make a clean build with Eclipse but it might take a few days until I find the time. I will also look into the output part... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
