[ https://issues.apache.org/jira/browse/SDAP-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16711750#comment-16711750 ]
ASF GitHub Bot commented on SDAP-161: ------------------------------------- lewismc commented on a change in pull request #35: SDAP-161 MUDROD embedded unit test URL: https://github.com/apache/incubator-sdap-mudrod/pull/35#discussion_r239541715 ########## File path: core/src/test/java/org/apache/sdap/mudrod/main/AbstractElasticsearchIntegrationTest.java ########## @@ -0,0 +1,50 @@ +/* + * Licensed 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.sdap.mudrod.main; + +import org.apache.sdap.mudrod.driver.EmbeddedElasticsearchServer; +import org.apache.sdap.mudrod.driver.EmbeddedElasticsearchServer; +import org.elasticsearch.client.Client; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Before; +import org.junit.BeforeClass; + +/** + * This is a helper class the starts an embedded elasticsearch server for each + * test. + * + * @author Felix Müller + */ +public abstract class AbstractElasticsearchIntegrationTest { + + private static EmbeddedElasticsearchServer embeddedElasticsearchServer; + + @BeforeClass + public static void startEmbeddedElasticsearchServer() { + embeddedElasticsearchServer = new EmbeddedElasticsearchServer(); + } + + @AfterClass + public static void shutdownEmbeddedElasticsearchServer() { + // embeddedElasticsearchServer.shutdown(); Review comment: Why are you not shutting the server down? If you are not doing so then you need to remove this method. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > MUDROD embedded unit test > ------------------------- > > Key: SDAP-161 > URL: https://issues.apache.org/jira/browse/SDAP-161 > Project: Apache Science Data Analytics Platform > Issue Type: Improvement > Components: mudrod > Affects Versions: 1.0 > Reporter: Yun Li > Priority: Major > -- This message was sent by Atlassian JIRA (v7.6.3#76005)