Skip to content

Commit

Permalink
[Rahul] | BAH-3884 | Fix. Ignore Test Files Which Use PowerMock
Browse files Browse the repository at this point in the history
  • Loading branch information
rahu1ramesh committed Jun 28, 2024
1 parent cd96517 commit ca8cb2b
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.*;

@Ignore
@PowerMockIgnore({"jakarta.management.*", "jakarta.net.ssl.*"})
@RunWith(PowerMockRunner.class)
public class TSIntegrationDiagnosisCountReportTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import static org.mockito.Mockito.*;
import static org.powermock.api.mockito.PowerMockito.verifyStatic;

@Ignore
@PowerMockIgnore({"jakarta.management.*", "jakarta.net.ssl.*", "jakarta.script.*"})
@RunWith(PowerMockRunner.class)
@PrepareForTest(SqlUtil.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
import org.bahmni.reports.builder.VisitBuilder;
import org.bahmni.reports.wrapper.CsvReport;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.openmrs.*;
import org.openmrs.api.context.Context;

import static org.junit.Assert.assertEquals;


@Ignore
public class DrugOrderReportTest extends BaseIntegrationTest {

@Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.test.web.servlet.MvcResult;

import static org.junit.Assert.assertEquals;

@Ignore
public class OpenmrsConcatenatedReportTest extends BaseIntegrationTest {
public OpenmrsConcatenatedReportTest() {
super("src/test/resources/config/concatenatedReportConfig.json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
import org.bahmni.reports.builder.VisitBuilder;
import org.bahmni.reports.wrapper.CsvReport;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.openmrs.*;
import org.openmrs.api.context.Context;

import static org.junit.Assert.assertEquals;

@Ignore
public class OrderFulfillmentReportTest extends BaseIntegrationTest {

@Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.bahmni.reports.BahmniReportsProperties;
import org.bahmni.reports.persistence.ScheduledReport;
import org.bahmni.reports.persistence.ScheduledReportRepository;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
Expand All @@ -23,6 +24,7 @@
import static org.mockito.Mockito.*;
import static org.powermock.api.mockito.PowerMockito.whenNew;

@Ignore
@PowerMockIgnore("jakarta.management.*")
@RunWith(PowerMockRunner.class)
@PrepareForTest(CleanReportsJob.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.bahmni.reports.persistence.ScheduledReportRepository;
import org.bahmni.reports.web.ReportParams;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
Expand Down Expand Up @@ -37,6 +38,7 @@
import static org.powermock.api.mockito.PowerMockito.whenNew;
import static org.junit.Assert.assertThat;

@Ignore
@RunWith(PowerMockRunner.class)
@PowerMockIgnore({"org.hibernate.*", "org.springframework.*", "jakarta.management.*"})
@PrepareForTest({JobBuilder.class, TriggerBuilder.class, ReportsScheduler.class})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.bahmni.reports.model.Reports;
import org.bahmni.webclients.HttpClient;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
Expand All @@ -28,6 +29,7 @@
import static org.mockito.Mockito.when;
import static org.powermock.api.mockito.PowerMockito.mockStatic;

@Ignore
@PowerMockIgnore("jakarta.management.*")
@RunWith(PowerMockRunner.class)
@PrepareForTest(Reports.class)
Expand Down

0 comments on commit ca8cb2b

Please sign in to comment.