From e9257d9ddcf42d367997443259f345d8b1b301ff Mon Sep 17 00:00:00 2001 From: youbowu Date: Thu, 2 Mar 2017 16:02:59 +0800 Subject: Fix in rule management the sonar detected error Issue-ID:HOLMES-50 Change-Id: Ic61e8137521617188fae1d149aad40c88b65e684 Signed-off-by: youbowu --- .../org/openo/holmes/rulemgt/db/CorrelationRuleQueryDaoTest.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'rulemgt/src/test/java/org') diff --git a/rulemgt/src/test/java/org/openo/holmes/rulemgt/db/CorrelationRuleQueryDaoTest.java b/rulemgt/src/test/java/org/openo/holmes/rulemgt/db/CorrelationRuleQueryDaoTest.java index 8df2074..f241484 100644 --- a/rulemgt/src/test/java/org/openo/holmes/rulemgt/db/CorrelationRuleQueryDaoTest.java +++ b/rulemgt/src/test/java/org/openo/holmes/rulemgt/db/CorrelationRuleQueryDaoTest.java @@ -30,28 +30,24 @@ import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; -import org.junit.runner.RunWith; import org.openo.holmes.common.api.entity.CorrelationRule; import org.openo.holmes.common.exception.CorrelationException; import org.openo.holmes.common.utils.DbDaoUtil; import org.openo.holmes.common.utils.I18nProxy; import org.openo.holmes.rulemgt.bean.request.RuleQueryCondition; import org.powermock.api.easymock.PowerMock; -import org.powermock.core.classloader.annotations.SuppressStaticInitializationFor; -import org.powermock.modules.junit4.PowerMockRunner; import org.powermock.modules.junit4.rule.PowerMockRule; import org.powermock.reflect.Whitebox; import org.skife.jdbi.v2.Handle; import org.skife.jdbi.v2.Query; - public class CorrelationRuleQueryDaoTest { @Rule public ExpectedException thrown = ExpectedException.none(); - @Rule + @Rule public PowerMockRule powerMockRule = new PowerMockRule(); private DbDaoUtil dbDaoUtil; -- cgit 1.2.3-korg