Introducing
Your new presentation assistant.
Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.
Trending searches
GUITesterModule
getAllTests() // from classpath
runAllTests
run afterTestSuite()
ProjectAModule
public void renderReport() {
renderHeader();
renderBody();
writer.append("<hr>Powered by black magic</hr>");
FileUtils.write(outputFileName, writer.toString());
}
class Test1
@Test
public void test
class Test2
@Test
public void test2
@Test
public void test3
public static void afterTestSuite()
public void pay()
for(Employee e:employees)
payIfNecessary(e);
private void payIfNecessary(Employee e)
if (e.isPayDay()) calculateAndDeliverPay(e);
private void calculateAndDeliverPay(e)
Money pay = e.calculatePay();
e.deliverPay(pay);
HttpRequestProcessor
public void pay()
for(Employeee:employees)
if(e.isPayday()) {
Money pay=e.calculatePay();
e.deliverPay(pay):
}
Why?
AbstractSeleniumTest
HttpRequestProcessor
if (timer.hasExpired() && !timer.isRecurrent())
/**
* @param sellRequest
* @throws ManagedComponentException
*/
// Previously, we calculated this way
// int totalLines = pages * linesPerPage;
int totalLines = totalLines / pages;
// This outputs employee working hours for one week
report.output(workingDaysInWeek * hoursPerDay);
int employeeOneWeekWorkingHours = workingDaysInWeek * hoursPerDay;
report.output(employeeOneWeekWorkingHours);
HttpRequestProcessor
HttpRequestProcessor