提交 377f2363 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Make some methods of TestBase public to avoid synthetic access warnings

上级 a85cbbdb
...@@ -956,7 +956,7 @@ public abstract class TestBase { ...@@ -956,7 +956,7 @@ public abstract class TestBase {
* @param condition the condition * @param condition the condition
* @throws AssertionError if the condition is false * @throws AssertionError if the condition is false
*/ */
protected void assertTrue(String message, boolean condition) { public void assertTrue(String message, boolean condition) {
if (!condition) { if (!condition) {
fail(message); fail(message);
} }
...@@ -1058,7 +1058,7 @@ public abstract class TestBase { ...@@ -1058,7 +1058,7 @@ public abstract class TestBase {
* *
* @param stat the statement * @param stat the statement
*/ */
protected void execute(PreparedStatement stat) throws SQLException { public void execute(PreparedStatement stat) throws SQLException {
execute(stat, null); execute(stat, null);
} }
...@@ -1651,7 +1651,10 @@ public abstract class TestBase { ...@@ -1651,7 +1651,10 @@ public abstract class TestBase {
throw (E) e; throw (E) e;
} }
protected String getTestName() { /**
* @return the name of the test class
*/
public String getTestName() {
return getClass().getSimpleName(); return getClass().getSimpleName();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论