Skip to content

Commit

Permalink
List type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
voroscsoki committed May 22, 2024
1 parent b3ea4e4 commit 25e38bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/main/java/ResponseTimeSampler.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public SampleResult runTest(JavaSamplerContext context) {
JButton playButton = menu.getPlayButton();
simulateButtonClick(playButton);
result.sampleStart(); // start timing
ArrayList<JButton> actionButtons = menu.getActionButtons();
ArrayList<JButton> actionButtons = (ArrayList<JButton>) menu.getActionButtons();
for (JButton bt : actionButtons) {
simulateButtonClick(bt);
}
Expand All @@ -59,7 +59,7 @@ public SampleResult runTest(JavaSamplerContext context) {
JButton playButton = menu.getPlayButton();
simulateButtonClick(playButton);
result.sampleStart(); // start timing
ArrayList<JButton> actionButtons = menu.getActionButtons();
ArrayList<JButton> actionButtons = (ArrayList<JButton>) menu.getActionButtons();
for (int i = 0; i < 1000000; i++){
if (i % 100 == 0)
System.out.println(i);
Expand Down

0 comments on commit 25e38bd

Please sign in to comment.