Skip to content

Commit

Permalink
LPD-22028 Use the new PerformanceTimer class in JspServletPerformance…
Browse files Browse the repository at this point in the history
…Test
  • Loading branch information
vendeltoreki authored and brianchandotcom committed Apr 24, 2024
1 parent b31dc22 commit 3dfc363
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
import com.liferay.petra.io.unsync.UnsyncByteArrayOutputStream;
import com.liferay.petra.string.StringBundler;
import com.liferay.petra.string.StringPool;
import com.liferay.portal.kernel.test.performance.PerformanceTimer;
import com.liferay.portal.kernel.test.rule.AggregateTestRule;
import com.liferay.portal.kernel.util.HtmlUtil;
import com.liferay.portal.kernel.util.LoggingTimer;
import com.liferay.portal.kernel.util.URLUtil;
import com.liferay.portal.test.rule.LiferayIntegrationTestRule;

Expand Down Expand Up @@ -109,7 +109,7 @@ public void testElExpressionWithUndefinedScopedVariablesJsp()

_test(_FILE_NAME_EL_EXPRESSION_UNDEFINED_SCOPED_VARIABLES_JSP, 1);

try (LoggingTimer loggingTimer = new LoggingTimer()) {
try (PerformanceTimer performanceTimer = new PerformanceTimer(5000)) {
_test(
_FILE_NAME_EL_EXPRESSION_UNDEFINED_SCOPED_VARIABLES_JSP,
_NUMBER_OF_REQUESTS);
Expand All @@ -120,7 +120,7 @@ public void testElExpressionWithUndefinedScopedVariablesJsp()
public void testElExpressionWithUndefinedVariablesJsp() throws Exception {
_test(_FILE_NAME_EL_EXPRESSION_UNDEFINED_VARIABLES_JSP, 1);

try (LoggingTimer loggingTimer = new LoggingTimer()) {
try (PerformanceTimer performanceTimer = new PerformanceTimer(1000)) {
_test(
_FILE_NAME_EL_EXPRESSION_UNDEFINED_VARIABLES_JSP,
_NUMBER_OF_REQUESTS);
Expand All @@ -131,7 +131,7 @@ public void testElExpressionWithUndefinedVariablesJsp() throws Exception {
public void testJsp() throws Exception {
_test(_FILE_NAME_TEST_JSP, 1);

try (LoggingTimer loggingTimer = new LoggingTimer()) {
try (PerformanceTimer performanceTimer = new PerformanceTimer(1000)) {
_test(_FILE_NAME_TEST_JSP, _NUMBER_OF_REQUESTS);
}
}
Expand Down

0 comments on commit 3dfc363

Please sign in to comment.