Skip to content

Commit ef9abcb

Browse files
Added comments to main method.
1 parent 1be2e8b commit ef9abcb

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/test/java/com/applitools/example/AcmeBankTests.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,32 +165,34 @@ public void printResults() {
165165

166166
public static void main(String [] args) {
167167

168-
// Construct the test object
168+
// Construct the test object.
169169
AcmeBankTests tests = new AcmeBankTests();
170170

171171
try {
172-
// Safely perform setup
172+
// Safely perform setup.
173173
tests.setUpConfigAndRunner();
174174
tests.openBrowserAndEyes();
175175

176-
// Run the test steps
176+
// Run the test steps.
177177
tests.logIntoBankAccount();
178178
}
179179
catch (Exception e) {
180+
// Dump any errors.
180181
e.printStackTrace();
181182
}
182183

183184
try {
184-
// No matter what, perform cleanup
185+
// No matter what, perform cleanup.
185186
tests.cleanUpTest();
186187
tests.printResults();
187188
}
188189
catch (Exception e) {
190+
// Dump any errors and abort any remaining tests.
189191
e.printStackTrace();
190192
tests.abortTests();
191193
}
192194
finally {
193-
// Always force execution to end
195+
// Always force execution to end.
194196
System.exit(0);
195197
}
196198
}

0 commit comments

Comments
 (0)