Sonar fixes

JUnit5 test classes and methods should have default package visibility

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885319 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2021-01-09 20:25:15 +00:00
parent b0870699e3
commit 2457ece51e
7 changed files with 17 additions and 17 deletions

View File

@ -50,7 +50,7 @@ public class TestBuildFile {
@BeforeEach
public void setUp() {
void setUp() {
String filename = TestBuildFile.getDataDir() + "/../src/excelant/testcases/org/apache/poi/ss/excelant/tests.xml";
int logLevel = Project.MSG_DEBUG;
@ -76,7 +76,7 @@ public class TestBuildFile {
* test target depend on it.
*/
@AfterEach
public void tearDown() {
void tearDown() {
if (project == null) {
/*
* Maybe the BuildFileTest was subclassed and there is
@ -100,21 +100,21 @@ public class TestBuildFile {
* @param target target to run
* @param cause information string to reader of report
*/
public void expectBuildException(String target, String cause) {
void expectBuildException(String target, String cause) {
expectSpecificBuildException(target, cause, null);
}
/**
* Assert that the given substring is in the log messages.
*/
public void assertLogContaining(String substring) {
void assertLogContaining(String substring) {
assertContains(getLog(), substring);
}
/**
* Assert that the given substring is not in the log messages.
*/
public void assertLogNotContaining(String substring) {
void assertLogNotContaining(String substring) {
assertNotContained(getLog(), substring);
}
@ -133,7 +133,7 @@ public class TestBuildFile {
*
* @param targetName target to run
*/
public void executeTarget(String targetName) {
void executeTarget(String targetName) {
PrintStream sysOut = System.out;
PrintStream sysErr = System.err;
try {
@ -159,7 +159,7 @@ public class TestBuildFile {
* @param msg the message value of the build exception we are waiting
* for set to null for any build exception to be valid
*/
public void expectSpecificBuildException(String target, String cause, String msg) {
void expectSpecificBuildException(String target, String cause, String msg) {
try {
executeTarget(target);
} catch (org.apache.tools.ant.BuildException ex) {

View File

@ -28,12 +28,12 @@ public class TestExcelAntPrecision {
private ExcelAntPrecision fixture ;
@BeforeEach
public void setUp() {
void setUp() {
fixture = new ExcelAntPrecision() ;
}
@AfterEach
public void tearDown() {
void tearDown() {
fixture = null ;
}

View File

@ -36,12 +36,12 @@ public class TestExcelAntSet {
TestBuildFile.getDataDir() + "/spreadsheet/mortgage-calculation.xls" ;
@BeforeEach
public void setUp() {
void setUp() {
fixture = new ExcelAntSetDoubleCell() ;
}
@AfterEach
public void tearDown() {
void tearDown() {
fixture = null ;
}

View File

@ -35,14 +35,14 @@ public class TestExcelAntSetDoubleCell {
TestBuildFile.getDataDir() + "/spreadsheet/mortgage-calculation.xls" ;
@BeforeEach
public void setUp() {
void setUp() {
fixture = new ExcelAntSetDoubleCell() ;
util = ExcelAntWorkbookUtilFactory.getInstance(mortgageCalculatorFileName ) ;
fixture.setWorkbookUtil( util ) ;
}
@AfterEach
public void tearDown() {
void tearDown() {
fixture = null ;
}

View File

@ -27,7 +27,7 @@ public class TestExcelAntUserDefinedFunction {
private ExcelAntUserDefinedFunctionTestHelper fixture ;
@BeforeEach
public void setUp() {
void setUp() {
fixture = new ExcelAntUserDefinedFunctionTestHelper() ;
}

View File

@ -34,7 +34,7 @@ public class TestExcelAntEvaluationResult {
private String cellId = "testCell!$F$1";
@BeforeEach
public void setUp() {
void setUp() {
fixture = new ExcelAntEvaluationResult(completedWithError,
passed,
retValue,
@ -44,7 +44,7 @@ public class TestExcelAntEvaluationResult {
}
@AfterEach
public void tearDown() {
void tearDown() {
fixture = null;
}

View File

@ -49,7 +49,7 @@ public class TestExcelAntWorkbookUtil {
@AfterEach
public void tearDown() {
void tearDown() {
fixture = null ;
}