srdo commented on a change in pull request #2996: STORM-3376: Set Server callback before opening Netty socket, so we do… URL: https://github.com/apache/storm/pull/2996#discussion_r281016954
########## File path: sql/storm-sql-core/src/test/org/apache/storm/sql/compiler/backends/streams/TestPlanCompiler.java ########## @@ -33,40 +33,36 @@ import org.apache.storm.sql.runtime.ISqlStreamsDataSource; import org.apache.storm.streams.Pair; import org.apache.storm.tuple.Values; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.BeforeClass; -import org.junit.Rule; -import org.junit.Test; -import org.junit.rules.ExternalResource; import java.time.ZoneOffset; import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import org.junit.Assert; +import org.junit.jupiter.api.AfterAll; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +@ExtendWith(TestUtils.MockBoltExtension.class) +@ExtendWith(TestUtils.MockInsertBoltExtension.class) public class TestPlanCompiler { private static LocalCluster cluster; - @Rule - public ExternalResource mockBoltValues = TestUtils.mockBoltValueResource; - - @Rule - public ExternalResource mockInsertBoltValues = TestUtils.mockInsertBoltValueResource; - - @BeforeClass + @BeforeAll public static void staticSetup() throws Exception { cluster = new LocalCluster(); } - @AfterClass + @AfterAll public static void staticCleanup() { if (cluster!= null) { cluster.shutdown(); cluster = null; } } + Review comment: Will fix ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services